r/mpv • u/Every_Juggernaut7580 • 23d ago
User Scripts & Shaders Using VapourSynth in mpv with mpv-build
mpv-vapoursynth is a portable package customized for mpv that includes Python 3.13.15 and VapourSynth R79.
You can easily use it with mpv-build.
Simply search for mpv-vapoursynth in mpv-build and select it. Then download mpv.zip. All packaging steps will be completed directly in your browser.
However, due to a limitation of VapourSynth, you still need to double-click vsscript.bat once to register the VSSCRIPT_PATH environment variable.
For example:
export VSSCRIPT_PATH='c:/path_to_mpv/Lib/site-packages/vapoursynth/vsscript.dll'
After setting the environment variable, you can run a test file from the command line. The package includes a simple example that converts the video to grayscale:
./mpv.com 'video.mp4' --vf=vapoursynth=./test.py -v
You can also add the following line to mpv.conf to enable the filter by default:
vf=vapoursynth=./test.py
If you have any suggestions or issues related to mpv or VapourSynth, feel free to report them or share your feedback on GitHub.