Compare commits

...

3 Commits

Author SHA1 Message Date
Simon Bruder a7c4566bea
Fix DFTTest 2020-10-23 18:13:22 +02:00
Simon Bruder c2aa4e2dfe
Move adg build step
Cargo takes a long time to run, this improves the cache efficiency.
2020-10-23 18:12:51 +02:00
Simon Bruder 131a54dfaf
Build libplacebo from source 2020-10-23 18:12:35 +02:00
2 changed files with 51 additions and 10 deletions

View File

@ -24,11 +24,19 @@ RUN apt-get -y install \
cargo \
git \
libfftw3-dev \
libplacebo-dev \
libtool \
meson \
vapoursynth-dev
RUN cd /tmp \
&& git clone --depth=1 --recursive https://git.kageru.moe/kageru/adaptivegrain \
&& cd adaptivegrain \
&& cargo build --release \
&& cp target/release/libadaptivegrain_rs.so /usr/lib/x86_64-linux-gnu/vapoursynth/ \
&& cd .. \
&& rm -rf adaptivegrain \
&& rm -rf ~/.cargo
# required by hvf.Deblock_QED (required by fvf.AutoDeblock)
RUN cd /tmp \
&& git clone --depth=1 https://github.com/HomeOfVapourSynthEvolution/VapourSynth-DCTFilter \
@ -61,6 +69,43 @@ RUN cd /tmp \
&& cd .. \
&& rm -rf vapoursynth-descale
# TODO: Remove when working version is in deb-multimedia (current one crashes
# with symbol lookup error:
# /usr/lib/x86_64-linux-gnu/vapoursynth/libdfttest.so: undefined symbol:
# fftwf_make_planner_thread_safe
COPY dfttest-dummy /tmp/
RUN cd /tmp/ \
&& apt-get -y install equivs \
&& equivs-build dfttest-dummy \
&& dpkg -i vapoursynth-dfttest_7-dmo2_all.deb \
&& apt-get purge -y equivs \
&& apt-get autoremove --purge -y \
&& rm dfttest-dummy vapoursynth-dfttest_7-dmo2_all.deb
RUN cd /tmp \
&& git clone --depth=1 https://github.com/HomeOfVapourSynthEvolution/VapourSynth-DFTTest \
&& cd VapourSynth-DFTTest \
&& meson build --prefix /usr/local \
&& ninja -C build \
&& ninja -C build install \
&& cd .. \
&& rm -rf VapourSynth-DFTTest
# TODO: Remove once debian has compatible libplacebo version
RUN echo "deb-src" http://deb.debian.org/debian testing main >> /etc/apt/sources.list.d/src.list \
&& apt-get update \
&& apt-get -y build-dep libplacebo \
&& cd /tmp/ \
&& git clone --depth=1 https://code.videolan.org/videolan/libplacebo.git \
&& cd libplacebo \
&& meson build \
&& ninja -C build \
&& ninja -C build install \
&& cd .. \
&& rm -rf libplacebo \
&& rm /etc/apt/sources.list.d/src.list
RUN cd /tmp \
&& git clone --depth=1 --recursive https://github.com/Lypheo/vs-placebo \
&& cd vs-placebo \
@ -71,15 +116,6 @@ RUN cd /tmp \
&& cd /tmp/ \
&& rm -rf vs-placebo
RUN cd /tmp \
&& git clone --depth=1 --recursive https://git.kageru.moe/kageru/adaptivegrain \
&& cd adaptivegrain \
&& cargo build --release \
&& cp target/release/libadaptivegrain_rs.so /usr/lib/x86_64-linux-gnu/vapoursynth/ \
&& cd .. \
&& rm -rf adaptivegrain \
&& rm -rf ~/.cargo
# Runtime dependencies
RUN apt-get -y install \
beignet-opencl-icd \

5
dfttest-dummy Normal file
View File

@ -0,0 +1,5 @@
Section: video
Priority: optional
Package: vapoursynth-dfttest
Version: 1000
Description: Dummy