Public Repository

Last pushed: 2 years ago
Short Description
ffmpeg docker with centos:centos6 , including ssl (hhtps) support !
Full Description

FFMPEG for Docker on Centos6

This repo has a Dockerfile to create a Docker image wth FFMPEG. It compiles FFMPEG from sources following instructions from the Centos Compilation Guide.
this ffmpeg implementation includes the openssl option, to support https.

You can install the latest build of this image by running docker pull send2moran/ffmpeg.

This image can likely be used as a base for a networked encoding farm, based on centos.

Test

$ docker run send2moran/ffmpeg
 ffmpeg version 2.4 Copyright (c) 2000-2014 the FFmpeg developers
  built on Sep 16 2014 18:39:18 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-4)
  configuration: --prefix=/usr/local --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --bindir=/usr/local/bin --extra-libs=-ldl --enable-version3 --enable-libfaac --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-gpl --enable-postproc --enable-nonfree --enable-avresample --enable-libfdk_aac --disable-debug --enable-small --enable-openssl
  libavutil      54.  7.100 / 54.  7.100
  libavcodec     56.  1.100 / 56.  1.100
  libavformat    56.  4.101 / 56.  4.101
  libavdevice    56.  0.100 / 56.  0.100
  libavfilter     5.  1.100 /  5.  1.100
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  0.100 / 53.  0.100
Hyper fast Audio and Video encoder
[...]

Capture output from the container to the host running the command

 docker run send2moran/ffmpeg \
            -i http://url/to/media.mp4 \
            -stats \
            $ffmpeg_options    -   > out.mp4

Example

 docker run send2moran/ffmpeg -stats  \
        -i http://archive.org/download/thethreeagesbusterkeaton/Buster.Keaton.The.Three.Ages.ogv \
        -loop 0  \
        -final_delay 500 -c:v gif -f gif -ss 00:49:42 -t 5 - > trow_ball.gif

See what's inside the beast

$ docker run -ti --entrypoint='bash'  send2moran/ffmpeg
bash-4.1#
Docker Pull Command
Owner
send2moran

Comments (1)
jpravetz
3 years ago

An example of running ffprobe on a file is as follows:

docker run --entrypoint="ffprobe" send2moran/ffmpeg -loglevel error -show_format -show_streams 'https://dl.dropboxusercontent.com/u/4971781/20141225_EllaMTB.mp4' -print_format json