Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Commit

Permalink
remove non-free and gpl libs
Browse files Browse the repository at this point in the history
  • Loading branch information
ynot01 committed Dec 5, 2023
1 parent 1408711 commit 5077c39
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ RUN chmod g+rw ./piper_cache/

# Compile and install fresh ffmpeg from sources:
# See: https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
RUN sed -i -e's/ main/ main contrib non-free/g' /etc/apt/sources.list
RUN apt-get update -qq && apt-get -y install \
autoconf \
automake \
Expand All @@ -95,13 +94,10 @@ RUN apt-get update -qq && apt-get -y install \
zlib1g-dev \
nasm \
yasm \
libx265-dev \
libnuma-dev \
libvpx-dev \
libmp3lame-dev \
libopus-dev \
libx264-dev \
libfdk-aac-dev
RUN mkdir -p ~/ffmpeg_sources ~/bin && cd ~/ffmpeg_sources && \
wget -O ffmpeg-6.1.tar.bz2 https://ffmpeg.org/releases/ffmpeg-6.1.tar.bz2 && \
tar xjvf ffmpeg-6.1.tar.bz2 && \
Expand All @@ -113,15 +109,12 @@ RUN mkdir -p ~/ffmpeg_sources ~/bin && cd ~/ffmpeg_sources && \
--extra-ldflags="-L$HOME/ffmpeg_build/lib" \
--extra-libs="-lpthread -lm" \
--bindir="$HOME/bin" \
--enable-libfdk-aac \
--enable-libass \
--enable-libfreetype \
--enable-libmp3lame \
--enable-libopus \
--enable-libvorbis \
--enable-libvpx \
--enable-libx264 \
--enable-libx265 && \
--enable-libvpx && \
PATH="$HOME/bin:$PATH" make -j8 && \
make install -j8 && \
hash -r
Expand Down

0 comments on commit 5077c39

Please sign in to comment.