View Full Version : BRAWSource plugin for Vapoursynth & Avisynth


ChaosKing
2nd July 2026, 11:56
Uses the Blackmagic RAW SDK to decode audio /video files.
Supports Windows, Mac, Linux. It's a dual plugin, works in Vapoursynth / Avisynth. Every usefull information is exported as frame props.

It's an AI created plugin, took about ~4h to build. For fun and Ai tesing.

Works great on Linux :D

Vapoursynth: pip install vapoursynth-brawsource
Avisynth: extract the release into your plugins fodler

Download here: https://github.com/theChaosCoder/vapoursynth-blackmagicraw-source

Please test and report back if it works on your machine or something is missing.


Inspired by https://forum.doom9.org/showthread.php?t=185608

https://i.imgur.com/hKa2eiCh.jpg (https://i.imgur.com/hKa2eiC.jpg)

ChaosKing
2nd July 2026, 12:35
The SDK has GPU support, not sure if it's really faster in vs/avs context.
It supports 3 Pipelines — CUDA (NVIDIA), Metal (macOS) und OpenCL. CUDA only is enough?

EDIT:
clip: Mountains.braw 6048x4032 290 frames x4
best CPU: 25.8 fps best CUDA: 26.2 fps speedup: 1.02x

Raw decode performance in cuda is 5x faster (200+fps) - moving frame data between cpu<->gpu is expensive
Mac could be much faster with its Unified Memory.

Adub
3rd July 2026, 21:23
Well that's pretty dang cool to see. And cheers to another Zig plugin!

ChaosKing
3rd July 2026, 23:32
v0.2.1-beta is out https://github.com/theChaosCoder/vapoursynth-blackmagicraw-source/releases
- much faster 8bit decoding
- gpu support metal & cuda (still room for improvement)


A 6K Video decodes with ~200fps (metal) on my m1 Macbook vs ~80fps (cpu)
Same Video with CUDA on RTX3080 ~175fps


Todo: Pypi release

ChaosKing
4th July 2026, 15:45
v.0.3.1
- GPU optimizations
- You can now install via pip install vapoursynth-brawsource
- v3 builds (AVX2)

It would be nice if someone can test the avisynth plugin. I only tested this in a vm.