1

(15 replies, posted in Using SVP)

Chainik wrote:

you can build mpv by yourself big_smile

https://gist.github.com/dreamer2908/f56 … e6b2bed3e5

Actually good luck building Vapoursynth's libs on Linux. That guide you posted doesn't work anymore since they changed the entire build system.

I've been trying to get it to build it, but all I've found are errors, and there really isn't an INSTALL.md or an equivalent in their repository teaching you how to do it.


About the ppa, it seems it has been moved to https://launchpad.net/~djcj/+archive/ubuntu/hybrid so a

sudo add-apt-repository ppa:djcj/hybrid
sudo apt-get update
sudo apt install vapoursynth

should work. On the other hand, mpv still needs to be built manually, and that's troublesome.


Edit: Phewww.... I finally got it to work, after some 6 hours tinkering to fix that (and get ffmpeg to find Nvidia's hardware encoder/decoder libs):

So, the vapoursynth package above does install almost everything, binaries and shared libraries, but it was missing the header files required for the mpv build to find it.

I fixed it by downloading the vapoursynth source code from https://github.com/vapoursynth/vapoursynth/releases, extracting it and then:

sudo mkdir -p /usr/local/include/vapoursynth
sudo cp VAPOURSYNTH_SOURCE_FOLDER/include/*.h /usr/local/include/vapoursynth
sudo mkdir -p /usr/local/lib/pkgconfig
sudo cp VAPOURSYNTH_SOURCE_FOLDER/pc/*.pc /usr/local/lib/pkgconfig

To get mpv to build, I got it from a special branch from https://github.com/avih/mpv-build:

git clone --branch=mpv-build-rewrite --depth=1 https://github.com/avih/mpv-build
cd mpv-build
echo '--enable-gpl' >> ffmpeg_options
echo '--enable-libx264' >> ffmpeg_options
echo '--enable-libmp3lame' >> ffmpeg_options
echo '--enable-libfdk-aac' >> ffmpeg_options
echo '--enable-nonfree' >> ffmpeg_options

echo '--enable-vapoursynth' >> mpv_options
echo '--enable-libmpv-shared' >> mpv_options

# the ones below are for Nvidia's, you should install their video sdk first
echo '--enable-cuda' >> ffmpeg_options
echo '--enable-cuvid' >> ffmpeg_options
echo '--enable-nvenc' >> ffmpeg_options
echo '--enable-libnpp' >> ffmpeg_options

Then you follow the guide at https://github.com/avih/mpv-build/blob/ … README.rst to build and install it. Please read the whole guide first, there are some Debian/Ubuntu-specific steps one should do first.

Finally, in my case, it installed mpv to /usr/local/bin/mpv, and SVP could not find it (nor I could find a place to change that behavior). I ran the following to fix it:

sudo ln -s /usr/local/bin/mpv /usr/bin/mpv