Sign inSign up

stvfccn/ffmpeg

By stvfccn

Updated about 7 years ago

Minimal FFmpeg Docker image built on Alpine Linux

Image
1

1.1K

stvfccn/ffmpeg repository overview

FFmpeg version 4.0.2 running on Alpine 3.8

  ffmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developers
  ffprobe version 4.0.2 Copyright (c) 2007-2018 the FFmpeg developers

  built with gcc 6.2.1 (Alpine 6.2.1) 20160822

  configuration:
    --disable-debug
    --disable-doc
    --disable-ffplay
    --enable-shared
    --enable-avresample
    --enable-libopencore-amrnb
    --enable-libopencore-amrwb
    --enable-gpl
    --enable-libass
    --enable-libfreetype
    --enable-libvidstab
    --enable-libmp3lame
    --enable-libopenjpeg
    --enable-libopus
    --enable-libtheora
    --enable-libvorbis
    --enable-libvpx
    --enable-libx265
    --enable-libxvid
    --enable-libx264
    --enable-nonfree
    --enable-openssl
    --enable-libfdk_aac
    --enable-libkvazaar
    --enable-libaom
    --extra-libs=-lpthread
    --enable-postproc
    --enable-small
    --enable-version3
    --extra-cflags=-I/opt/ffmpeg/include
    --extra-ldflags=-L/opt/ffmpeg/lib
    --extra-libs=-ldl

    libavutil      56. 14.100 / 56. 14.100
    libavcodec     58. 18.100 / 58. 18.100
    libavformat    58. 12.100 / 58. 12.100
    libavdevice    58.  3.100 / 58.  3.100
    libavfilter     7. 16.100 /  7. 16.100
    libavresample   4.  0.  0 /  4.  0.  0
    libswscale      5.  1.100 /  5.  1.100
    libswresample   3.  1.100 /  3.  1.100
    libpostproc    55.  1.100 / 55.  1.100

To use this Docker container like FFmpeg is installed on your machine, you can create an alias. To make it available for a single user, in ~/.bashrc do:

alias ffmpeg='docker run -v=`pwd`:/tmp/ffmpeg stvfccn/ffmpeg'
alias ffprobe='docker run -it -v=`pwd`:/tmp/ffmpeg --entrypoint=ffprobe stvfccn/ffmpeg'

After reloading the console or calling source ~/.bashrc, FFmpeg can be called like:

$ ffmpeg -buildconf

Usage

To encode a remote file run:

$ docker run stvfccn/ffmpeg -i http://files.coconut.co.s3.amazonaws.com/test.mp4 -f webm -c:v libvpx -c:a libvorbis - > test.webm

or if you are using aliases, like this:

$ ffmpeg -i http://files.coconut.co.s3.amazonaws.com/test.mp4 -f webm -c:v libvpx -c:a libvorbis test.webm

To encode a local file, you can mount the current path on the Docker host's filesystem as a volume inside the container like this:

$ docker run -v=`pwd`:/tmp/ffmpeg stvfccn/ffmpeg -i localfile.mp4 out.webm

or if you are using aliases:

$ ffmpeg -i localfile.mp4 out.webm

Tag summary

Content type

Image

Digest

Size

23.4 MB

Last updated

about 7 years ago

docker pull stvfccn/ffmpeg