VS作为新兴的压制源处理工具,强大的性能、合理的内存分配也算是公认的,这次我尝试在linux平台上利用源码进行编译。
Contents
首先安装VS本体:
1.解决依赖
sudo apt-get install build-essential yasm git libass-dev python3-pip python3-dev cython3 autoconf libtool libmagick++-dev
2.安装zimg
git clone https://github.com/sekrit-twc/zimg.git ./autogen.sh ./configure --enable-x86simd make make install
3.编译VS
git clone https://github.com/vapoursynth/vapoursynth.git ./autogen.sh ./configure make make install ldconfig
完成后运行,确认是否正常。
vspipe -v
如果报错为:Failed to initialize VapourSynth environment
则运行一下代码:
LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/local/lib" export LD_LIBRARY_PATH PYTHONPATH="${PYTHONPATH}:/usr/local/lib/python3.4/site-packages" export PYTHONPATH
编译Vapoursynth-Plugins
1.解决依赖
sudo apt-get install git nasm yasm libtool pkg-config libfftw3-dev libpng-dev libsndfile1-dev libxvidcore-dev zlib1g-dev libopencv-dev ocl-icd-libopencl1 opencl-headers
2.编译:
git clone https://github.com/darealshinji/vapoursynth-plugins.git cd vapoursynth-plugins ./autogen.sh ./configure make make install
如果不想安装model weights
则:
make install INSTALL_MODEL_WEIGHTS=0
注:若Ubuntu平台则可以使用PPA简易安装:
sudo add-apt-repository ppa:djcj/vapoursynth sudo apt-get update sudo apt-get install vapoursynth-extra-plugins
如果编译出来的plugins无法自动加载,则首先创建$HOME/.config/vapoursynth文件夹,在其中新建文件vapoursynth.conf。
默认状态下,是空的,可以通过在编译时设定$libdir/vapoursynth,或者–with-plugindir来配置(configure)
格式如下:
UserPluginDir=/home/asdf/vapoursynth/plugins SystemPluginDir=/special/non/default/location