Update getnative (now packaged as python module)
parent
f3a9fadbe9
commit
1091457530
22
Dockerfile
22
Dockerfile
|
@ -58,13 +58,13 @@ RUN cd /tmp \
|
||||||
&& cd .. \
|
&& cd .. \
|
||||||
&& rm -rf VS-ContinuityFixer
|
&& rm -rf VS-ContinuityFixer
|
||||||
|
|
||||||
# double speed for getnative
|
# TODO: Remove when newer version is in deb-multimedia
|
||||||
RUN cd /tmp \
|
RUN cd /tmp \
|
||||||
&& git clone --depth=1 https://github.com/OrangeChannel/vapoursynth-descale \
|
&& git clone --depth=1 https://github.com/Irrational-Encoding-Wizardry/vapoursynth-descale \
|
||||||
&& cd vapoursynth-descale \
|
&& cd vapoursynth-descale \
|
||||||
&& g++ -std=c++17 -shared -fPIC -O2 descale.cpp -o libdescale_getnative.so \
|
&& meson build \
|
||||||
&& cp descale.py /usr/lib/python3/dist-packages/descale_getnative.py \
|
&& ninja -C build \
|
||||||
&& cp libdescale_getnative.so /usr/lib/x86_64-linux-gnu/vapoursynth/ \
|
&& cp build/libdescale.so /usr/lib/x86_64-linux-gnu/vapoursynth/ \
|
||||||
&& cd .. \
|
&& cd .. \
|
||||||
&& rm -rf vapoursynth-descale
|
&& rm -rf vapoursynth-descale
|
||||||
|
|
||||||
|
@ -104,7 +104,6 @@ RUN apt-get -y install \
|
||||||
RUN cp -r /usr/share/vapoursynth-waifu2x-models/ /usr/lib/x86_64-linux-gnu/vapoursynth/models/
|
RUN cp -r /usr/share/vapoursynth-waifu2x-models/ /usr/lib/x86_64-linux-gnu/vapoursynth/models/
|
||||||
|
|
||||||
RUN pip3 --no-cache-dir install \
|
RUN pip3 --no-cache-dir install \
|
||||||
matplotlib \
|
|
||||||
tqdm \
|
tqdm \
|
||||||
yuuno 'prompt-toolkit<2.1.0,>=2.0.0' \
|
yuuno 'prompt-toolkit<2.1.0,>=2.0.0' \
|
||||||
&& yuuno jupyter install
|
&& yuuno jupyter install
|
||||||
|
@ -131,9 +130,14 @@ RUN mkdir /usr/local/lib/vapoursynth-scripts/ \
|
||||||
https://github.com/theChaosCoder/lostfunc/raw/master/lostfunc.py \
|
https://github.com/theChaosCoder/lostfunc/raw/master/lostfunc.py \
|
||||||
&& chmod 755 /usr/local/lib/vapoursynth-scripts/*
|
&& chmod 755 /usr/local/lib/vapoursynth-scripts/*
|
||||||
|
|
||||||
RUN git clone --depth=1 https://github.com/Infiziert90/getnative /usr/local/lib/vapoursynth-scripts/getnative \
|
# Installing that way because I use the system (dmo) VapourSynth and want to
|
||||||
&& echo "#!/bin/sh\npython3 /usr/local/lib/vapoursynth-scripts/getnative/getnative.py \$@" >> /usr/local/bin/getnative \
|
# avoid conflicts
|
||||||
&& chmod +x /usr/local/bin/getnative
|
RUN git clone --depth=1 https://github.com/Infiziert90/getnative \
|
||||||
|
&& cd getnative \
|
||||||
|
&& sed -i -e 's/VapourSynth.*//' requirements.txt \
|
||||||
|
&& pip3 install . \
|
||||||
|
&& cd .. \
|
||||||
|
&& rm -rf getnative
|
||||||
|
|
||||||
RUN adduser --disabled-password --gecos '' vapoursynth
|
RUN adduser --disabled-password --gecos '' vapoursynth
|
||||||
USER vapoursynth
|
USER vapoursynth
|
||||||
|
|
Reference in New Issue