Vapoursynth linux 编译记录

Vapoursynth linux 编译记录

IT, 其他

VS作为新兴的压制源处理工具,强大的性能、合理的内存分配也算是公认的,这次我尝试在linux平台上利用源码进行编译。

首先安装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
IT, Linux, Vapoursynth
上一篇文章
BDMV结构认识与内容抽取
下一篇文章
有关Linux平台编译tmodx264、Vapoursynth的一些感想

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

Fill out this field
Fill out this field
请输入有效的电子邮箱地址。

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据

keyboard_arrow_up