Public Repository

Last pushed: 2 years ago
Short Description
go + ffmpeg + godep
Full Description

per : https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu

FROM golang:1.4

MAINTAINER Greg Zuro greg@zuro.net

Godep dependency manager

#RUN go get github.com/tools/godep

WORKDIR ~

RUN wget http://ffmpeg.org/releases/ffmpeg-2.6.2.tar.bz2

Update packages

RUN apt-get update
RUN apt-get install bzip2 yasm

build ffmpeg

RUN tar vjxf ffmpeg-2.6.2.tar.bz2

RUN apt-get -y --force-yes install autoconf automake build-essential libass-dev libfreetype6-dev libgpac-dev libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev pkg-config texi2html zlib1g-dev

RUN mkdir ~/ffmpeg_sources
RUN mkdir ~/ffmpeg_build

RUN apt-get install -y yasm
RUN apt-get install -y libx264-dev
RUN apt-get install -y libmp3lame-dev
RUN apt-get install -y libopus-dev
RUN apt-get install -y libvpx-dev

libfdk-aac-dev:

RUN apt-get install -y unzip
RUN wget -O fdk-aac.zip https://github.com/mstorsjo/fdk-aac/zipball/master
RUN unzip fdk-aac.zip
RUN cd mstorsjo-fdk-aac ; autoreconf -fiv
RUN cd mstorsjo-fdk-aac
; ./configure --prefix="$HOME/ffmpeg_build" --disable-shared
RUN cd mstorsjo-fdk-aac ; make
RUN cd mstorsjo-fdk-aac
; make install
RUN cd mstorsjo-fdk-aac* ; make distclean

libx265-dev:

RUN apt-get install -y cmake mercurial
RUN hg clone https://bitbucket.org/multicoreware/x265
RUN cd x265/build/linux ; PATH="$HOME/bin:$PATH" cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$HOME/ffmpeg_build" -DENABLE_SHARED:bool=off ../../source
RUN cd x265/build/linux ; make
RUN cd x265/build/linux ; make install

there is no distclean here...

#RUN cd x265/build/linux ; make distclean

RUN cd ffmpeg-2.6.2 ; 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" --bindir="$HOME/bin" --enable-version3 --enable-avresample --disable-debug --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree
RUN cd ffmpeg ; PATH="$HOME/bin:$PATH" make
RUN cd ffmpeg
; make install
RUN cd ffmpeg ; make distclean
RUN cd ffmpeg
; hash -r

todo: clean up sources and dev libraries

Docker Pull Command
Owner
softboyled