encoder/docker/build/vapoursynth4-plugins/build.sh

108 lines
4.1 KiB
Bash
Executable file

#!/bin/bash
set -e
set -o pipefail
curl https://raw.githubusercontent.com/dubhater/vapoursynth-fieldhint/v3/src/fieldhint.c | gcc -x c -I /usr/include/vapoursynth \
-shared -o /usr/lib/vapoursynth/fieldhint.so \
-O3 -fPIC \
-
git-shallow-clone "r10.1" https://github.com/HomeOfVapourSynthEvolution/VapourSynth-TDeintMod.git /src/VapourSynth-TDeintMod
pushd /src/VapourSynth-TDeintMod
./autogen.sh
./configure
make -j$(nproc)
cp .libs/libtdeintmod.so /usr/lib/vapoursynth/
git-shallow-clone "r30" https://github.com/EleonoreMizo/fmtconv.git /src/fmtconv
pushd /src/fmtconv
cd build/unix
sed -i 's/ -fexperimental-new-pass-manager//g' configure.ac
./autogen.sh
./configure --prefix=/usr
make -j$(nproc)
cp .libs/libfmtconv.so /usr/lib/vapoursynth/
git-shallow-clone "d2c491b3030415c4b416f048e236f5f327d7cb89" https://github.com/dubhater/vapoursynth-mvtools.git /src/vapoursynth-mvtools
pushd /src/vapoursynth-mvtools
./autogen.sh
./configure --prefix=/usr
make -j$(nproc)
cp .libs/libmvtools.so /usr/lib/vapoursynth/
git-shallow-clone "R2" https://github.com/myrsloik/VapourSynth-FFT3DFilter.git /src/VapourSynth-FFT3DFilter
pushd /src/VapourSynth-FFT3DFilter
mkdir b
pushd b
meson ..
ninja
cp libfft3dfilter.so /usr/lib/vapoursynth/
git-shallow-clone "68dc130bc37615fd912d1dc1068261f00f54b146" https://github.com/sekrit-twc/znedi3.git /src/znedi3
pushd /src/znedi3
sed -i -r 's/\(nullptr_t/(std::nullptr_t/g' vsxx/VapourSynth4++.hpp
#TODO: remove X86 hardcode
make X86=1 -j$(nproc)
cp vsznedi3.so /usr/lib/vapoursynth/
cp nnedi3_weights.bin /usr/lib/vapoursynth/
git-shallow-clone "8c53f5d1297dee286e5a854ae5731103614a0583" https://github.com/Irrational-Encoding-Wizardry/descale.git /src/descale
pushd /src/descale
mkdir b
pushd b
meson ..
ninja
cp libdescale.so /usr/lib/vapoursynth/
cp ../descale.py /usr/lib/vapoursynth/
git-shallow-clone "8fe5aec894a3b90224a2014619af8b8c6cf372ad" https://github.com/jackb992/flash3kyuu_deband.git /src/flash3kyuu_deband
pushd /src/flash3kyuu_deband
sed -i 's/env python/env python3/' ./waf
chmod +x waf
./waf configure
./waf build
cp build/libf3kdb.so /usr/lib/vapoursynth/
git-shallow-clone "r9" https://github.com/HomeOfVapourSynthEvolution/VapourSynth-BM3D.git /src/VapourSynth-BM3D
pushd /src/VapourSynth-BM3D
mkdir b
pushd b
LDFLAGS=-lfftw3f_threads meson ..
ninja
cp libbm3d.so /usr/lib/vapoursynth/
git-shallow-clone "bc5e0186a7f309556f20a8e9502f2238e39179b8" https://github.com/HomeOfVapourSynthEvolution/VapourSynth-DFTTest.git /src/VapourSynth-DFTTest
pushd /src/VapourSynth-DFTTest
mkdir b
pushd b
LDFLAGS=-lfftw3f_threads meson ..
ninja
cp libdfttest.so /usr/lib/vapoursynth/
git-shallow-clone "r10.1" https://github.com/HomeOfVapourSynthEvolution/VapourSynth-Yadifmod.git /src/VapourSynth-Yadifmod
pushd /src/VapourSynth-Yadifmod
./autogen.sh
./configure --prefix=/usr
make -j$(nproc)
cp .libs/libyadifmod.so /usr/lib/vapoursynth/
git-shallow-clone "ef243ab40b8d4b6d18874c6cef0da1a2f55a6a45" https://github.com/FFMS/ffms2.git /src/ffms2
pushd /src/ffms2
./autogen.sh
./configure --prefix=/usr
make -j$(nproc)
make install
curl https://raw.githubusercontent.com/HomeOfVapourSynthEvolution/havsfunc/0f6a7d9d9712d59b4e74e1e570fc6e3a526917f9/havsfunc.py > /usr/lib/vapoursynth/havsfunc.py
curl https://raw.githubusercontent.com/Irrational-Encoding-Wizardry/fvsfunc/076dbde68227f6cca91304a447b2a02b0e95413e/fvsfunc.py > /usr/lib/vapoursynth/fvsfunc.py
curl https://raw.githubusercontent.com/WolframRhodium/muvsfunc/e90bd4e7157aaf32c6ec61ddc60191e75259c3d7/muvsfunc.py > /usr/lib/vapoursynth/muvsfunc.py
sed -i 's/core\.nnedi3/core\.znedi3/' /usr/lib/vapoursynth/fvsfunc.py
pip3 install git+https://github.com/Irrational-Encoding-Wizardry/vs-tools.git@48f116f23509c2ef5015d90003ec259a625a9a6e
pip3 install git+https://github.com/Irrational-Encoding-Wizardry/vs-exprtools.git@b1da8cc97f8d36b8405b127f92d9ddff6d01e9be
pip3 install git+https://github.com/Irrational-Encoding-Wizardry/vs-aa.git@2f0c7308f416b63a6b26e4c84883349db4d55062
pip3 install git+https://github.com/Irrational-Encoding-Wizardry/vs-denoise.git@38291d4821973bdca4d54d89a91dc4d7b1ac8e73
pip3 install git+https://github.com/HomeOfVapourSynthEvolution/mvsfunc.git@865c7486ca860d323754ec4774bc4cca540a7076