Skip to content

Instantly share code, notes, and snippets.

@developius
Created November 4, 2017 16:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save developius/b08ebdca7a87aacdfd2a6b123a21e814 to your computer and use it in GitHub Desktop.
Save developius/b08ebdca7a87aacdfd2a6b123a21e814 to your computer and use it in GitHub Desktop.
ffmpeg + opencv dockerfile
FROM python:2.7
RUN apt-get update -qy && apt-get install -qy libmp3lame-dev libopenjpeg-dev pkg-config yasm libav-tools libspeex-dev libtheora-dev libvorbis-dev libx264-dev
WORKDIR /root
RUN wget http://ffmpeg.org/releases/ffmpeg-3.4.tar.bz2
RUN tar xvjf ffmpeg-3.4.tar.bz2
WORKDIR /root/ffmpeg-3.4
RUN ./configure --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame \
--enable-libvorbis --enable-libtheora --enable-libx264 --enable-libspeex --enable-shared --enable-pthreads \
--enable-libopenjpeg --enable-nonfree
RUN make
RUN make install
RUN /sbin/ldconfig
WORKDIR /root
RUN rm -rf /root/ffmpeg-3.4*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment