Compare commits

..

2 Commits

Author SHA1 Message Date
4a7c0729f0 The directory for ffmpeg has to be created first 2022-11-27 19:49:54 +01:00
f170ccab33 Readd handbrake 2022-11-27 19:05:53 +01:00

View File

@ -45,11 +45,71 @@ RUN apt-get update && \
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \
intel-media-va-driver-non-free \ intel-media-va-driver-non-free \
vainfo \ vainfo \
mesa-va-drivers; \ mesa-va-drivers && \
# HandBrake deps
apt-get install -y \
autoconf \
automake \
autopoint \
appstream \
build-essential \
cmake \
git \
libass-dev \
libbz2-dev \
libfontconfig1-dev \
libfreetype6-dev \
libfribidi-dev \
libharfbuzz-dev \
libjansson-dev \
liblzma-dev \
libmp3lame-dev \
libnuma-dev \
libogg-dev \
libopus-dev \
libsamplerate-dev \
libspeex-dev \
libtheora-dev \
libtool \
libtool-bin \
libturbojpeg0-dev \
libvorbis-dev \
libx264-dev \
libxml2-dev \
libvpx-dev \
m4 \
make \
meson \
nasm \
ninja-build \
patch \
pkg-config \
python \
tar \
zlib1g-dev \
libva-dev \
libdrm-dev && \
rm -rdf /tmp/handbrake && \
mkdir -p /tmp/handbrake && \
git clone \
--branch ${HANDBRAKE} \
--depth 1 https://github.com/HandBrake/HandBrake.git \
/tmp/handbrake && \
cd /tmp/handbrake && \
./configure \
--enable-nvenc \
--enable-qsv \
--enable-x265 \
--disable-gtk \
--launch-jobs=14 \
--launch \
--force && \
make --directory=build install && \
cp /tmp/handbrake/build/HandBrakeCLI /usr/local/bin/HandBrakeCLI && \
rm -rdf /tmp/handbrake/ ; \
fi fi
# former handbrake stuff
# other architectures # other architectures
# handle tdarr binaries # handle tdarr binaries
@ -78,7 +138,8 @@ RUN if [ "$MODULE" = "Tdarr_Node" ]; then \
apt-get autoremove -y apt-get autoremove -y
# link jellyfin-ffmpeg version 5.1.2 to tdarr node ffmpeg # link jellyfin-ffmpeg version 5.1.2 to tdarr node ffmpeg
RUN ln -sf /usr/local/bin/ffmpeg /app/Tdarr_Node/node_modules/ffmpeg-static/ffmpeg RUN mkdir -p /app/Tdarr_Node/node_modules/ffmpeg-static/ && \
ln -sf /usr/local/bin/ffmpeg /app/Tdarr_Node/node_modules/ffmpeg-static/ffmpeg
EXPOSE ${NODE_PORT} EXPOSE ${NODE_PORT}
EXPOSE ${WEB_UI_PORT} EXPOSE ${WEB_UI_PORT}