Use ffmpeg 4.4.1

This commit is contained in:
Johannes Zellner 2021-12-14 11:26:06 +01:00
parent 10148592ae
commit 40c23012e7

View file

@ -3,14 +3,17 @@ FROM cloudron/base:3.0.0@sha256:455c70428723e3a823198c57472785437eb6eab082e79b3f
RUN mkdir -p /app/code/server /app/pkg RUN mkdir -p /app/code/server /app/pkg
WORKDIR /app/code/server WORKDIR /app/code/server
# we require ffmpeg 4.4.1 - https://github.com/Chocobozzz/PeerTube/releases/tag/v4.0.0
# https://lindevs.com/install-ffmpeg-on-ubuntu/
RUN add-apt-repository -y ppa:savoury1/ffmpeg4 && \
apt install -y ffmpeg
ARG NODE_VERSION=16.13.1 ARG NODE_VERSION=16.13.1
RUN mkdir -p /usr/local/node-${NODE_VERSION} && \ RUN mkdir -p /usr/local/node-${NODE_VERSION} && \
curl -L https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.gz | tar zxf - --strip-components 1 -C /usr/local/node-${NODE_VERSION} curl -L https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.gz | tar zxf - --strip-components 1 -C /usr/local/node-${NODE_VERSION}
ENV PATH /usr/local/node-${NODE_VERSION}/bin:$PATH ENV PATH /usr/local/node-${NODE_VERSION}/bin:$PATH
# note: node 10 does not work. ffmpeg 4.4 does not work - https://github.com/Chocobozzz/PeerTube/releases/tag/v3.2.0 (https://github.com/Chocobozzz/PeerTube/issues/3990)
ARG VERSION=4.0.0 ARG VERSION=4.0.0
# install peertube. the chown is required for some reason for ffmpeg. it fails with EROFS without it when transcoding # install peertube. the chown is required for some reason for ffmpeg. it fails with EROFS without it when transcoding