marciopuga / ffmpeg

Minimal FFmpeg Docker image built on Alpine Linux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minimal FFmpeg Docker image built on Alpine Linux

Current FFmpeg version: 5.1.2

FFmpeg Build Configuration

ffmpeg version 5.1.2 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 10.3.1 (Alpine 10.3.1_git20210424) 20210424
  configuration: --enable-version3 --enable-gpl --enable-nonfree --enable-small --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libvpx --enable-libtheora --enable-libvorbis --enable-libopus --enable-libass --enable-libwebp --enable-librtmp --enable-postproc --enable-libfreetype --enable-openssl --disable-debug
  libavutil      57. 28.100 / 57. 28.100
  libavcodec     59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter     8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100

  configuration:
    --enable-version3
    --enable-gpl
    --enable-nonfree
    --enable-small
    --enable-libmp3lame
    --enable-libx264
    --enable-libx265
    --enable-libvpx
    --enable-libtheora
    --enable-libvorbis
    --enable-libopus
    --enable-libass
    --enable-libwebp
    --enable-librtmp
    --enable-postproc
    --enable-libfreetype
    --enable-openssl
    --disable-debug

Usage

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 marciopuga/ffmpeg -i localfile.mp4 out.webm

You can create an alias so you use the Docker container like if FFmpeg is installed on your computer:

In ~/.bashrc:

alias ffmpeg='docker run -v=`pwd`:/tmp/ffmpeg marciopuga/ffmpeg'

Now we can execute FFmpeg with just:

$ ffmpeg -buildconf

About

Minimal FFmpeg Docker image built on Alpine Linux

License:MIT License


Languages

Language:Dockerfile 100.0%