Tnimni
Tnimni

Reputation: 53

Compiling and packging FFmpeg with special configuration

I need to compile FFmepg with specific configuration, that support nvidia cuda hardware acceleration. In order to achive that, I'm compiling the code using the nvidia-cude-10.2 devel docker image.

I want to take the files I compiled and move them to a python alpine docker after which.

question is, if i follow the instructions here

to be exact this part

   cd ~/ffmpeg_sources && \
   wget -O ffmpeg-snapshot.tar.bz2 https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 && \
   tar xjvf ffmpeg-snapshot.tar.bz2 && \
   cd ffmpeg && \
   PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
     --prefix="$HOME/ffmpeg_build" \
     --pkg-config-flags="--static" \
     --extra-cflags="-I$HOME/ffmpeg_build/include" \
     --extra-ldflags="-L$HOME/ffmpeg_build/lib" \
     --extra-libs="-lpthread -lm" \
     --bindir="$HOME/bin" \
     --enable-gpl \
     --enable-gnutls \
     --enable-libaom \
     --enable-libass \
     --enable-libfdk-aac \
     --enable-libfreetype \
     --enable-libmp3lame \
     --enable-libopus \
     --enable-libvorbis \
     --enable-libvpx \
     --enable-libx264 \
     --enable-libx265 \
     --enable-nonfree && \
   PATH="$HOME/bin:$PATH" make && \
   make install && \
   hash -r

and than copy the files in the $HOME/bin directory will it be enough?

Should I use cuda container instead of python alpine and install python on it? I'm not sure if the cuda runtime is required after compilation

Upvotes: 0

Views: 976

Answers (1)

the kamilz
the kamilz

Reputation: 1988

Ok, After make install you can call FFmpeg from where bindir is set. And you will be good to go.

Upvotes: 1

Related Questions