• Stars
    star
    109
  • Rank 308,134 (Top 7 %)
  • Language
    Dockerfile
  • License
    GNU General Publi...
  • Created almost 5 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

linuxserver.io

Blog Discord Discourse Fleet GitHub Open Collective

The LinuxServer.io team brings you another container release featuring :-

  • regular and timely application updates
  • easy user mappings (PGID, PUID)
  • custom base image with s6 overlay
  • weekly base OS updates with common layers across the entire LinuxServer.io ecosystem to minimise space usage, down time and bandwidth
  • regular security updates

Find us at:

  • Blog - all the things you can do with our containers including How-To guides, opinions and much more!
  • Discord - realtime support / chat with the community and the team.
  • Discourse - post on our community forum.
  • Fleet - an online web interface which displays all of our maintained images.
  • Open Collective - please consider helping us by either donating or contributing to our budget

Scarf.io pulls GitHub Stars GitHub Release GitHub Package Repository GitLab Container Registry Quay.io Docker Pulls Docker Stars Jenkins Build

FFmpeg - A complete, cross-platform solution to record, convert and stream audio and video.

ffmpeg

Supported Architectures

We utilise the docker manifest for multi-platform awareness. More information is available from docker here and our announcement here.

Simply pulling lscr.io/linuxserver/ffmpeg:latest should retrieve the correct image for your arch, but you can also pull specific arch images via tags.

The architectures supported by this image are:

Architecture Available Tag
x86-64 amd64-<version tag>
arm64 arm64v8-<version tag>
armhf arm32v7-<version tag>

Usage

Unlike most of our container library this image is meant to be run ephemerally from the command line parsing user input for a custom FFmpeg command. You will need to understand some Docker basics to use this image and be familiar with how to construct an FFmpeg command. In the commands below we will be bind mounting our current working directory from the CLI to /config, the assumption is that input.mkv is in your current working directory.

If an input file is detected we will run FFmpeg as that user/group so the output file will match its permissions. The image supports Hardware acceleration on x86 pay close attention to the variables for the examples below.

Included Intel Drivers (latest versions compiled):

  • iHD Driver: Supports gen8+ (default for Intel)
  • i965 Driver: Supports gen5+ (for gen5-gen9.5 it can be enabled by setting env var LIBVA_DRIVER_NAME=i965 in docker arguments)
  • Libva (VAAPI): Supports gen5+ with i965 driver and gen8+ with iHD driver
  • Qsv Dispatcher: OneVPL (supports both OneVPL and MSDK runtimes and should automatically switch)
  • Qsv Runtime:
    • OneVPL: Supports gen12+
    • MSDK (libmfx): Supports gen8 - gen12

Basic Transcode

docker run --rm -it \
  -v $(pwd):/config \
  linuxserver/ffmpeg \
  -i /config/input.mkv \
  -c:v libx264 \
  -b:v 4M \
  -vf scale=1280:720 \
  -c:a copy \
  /config/output.mkv

Hardware accelerated (VAAPI) (click for more info)

docker run --rm -it \
  --device=/dev/dri:/dev/dri \
  -v $(pwd):/config \
  linuxserver/ffmpeg \
  -vaapi_device /dev/dri/renderD128 \
  -i /config/input.mkv \
  -c:v h264_vaapi \
  -b:v 4M \
  -vf 'format=nv12|vaapi,hwupload,scale_vaapi=w=1280:h=720' \
  -c:a copy \
  /config/output.mkv

Hardware accelerated (QSV) (click for more info)

docker run --rm -it \
  --device=/dev/dri:/dev/dri \
  -v $(pwd):/config \
  linuxserver/ffmpeg \
  -hwaccel qsv \
  -c:v h264_qsv \
  -i /config/input.mkv \
  -c:v h264_qsv \
  -global_quality 25 \
  /config/output.mkv

Nvidia Hardware accelerated (click for more info)

docker run --rm -it \
  --runtime=nvidia \
  -v $(pwd):/config \
  linuxserver/ffmpeg \
  -hwaccel nvdec \
  -i /config/input.mkv \
  -c:v h264_nvenc \
  -b:v 4M \
  -vf scale=1280:720 \
  -c:a copy \
  /config/output.mkv

Vulkan support

Vulkan support has been added to x86_64 (tested with Intel and AMD iGPU) (click for more info).

docker run --rm -it \
  --device=/dev/dri:/dev/dri \
  -v $(pwd):/config \
  -e ANV_VIDEO_DECODE=1 \
  linuxserver/ffmpeg \
  -init_hw_device "vulkan=vk:0" \
  -hwaccel vulkan \
  -hwaccel_output_format vulkan \
  -i /config/input.mkv \
  -f null - -benchmark

Note: Vulkan supports three drivers:

  • ANV: To enable for Intel, set the env var ANV_VIDEO_DECODE=1
  • RADV: To enable on AMD, set the env var RADV_PERFTEST=video_decode
  • NVIDIA: To enable on Nvidia, install Nvidia Vulkan Beta drivers on the host per this article

Building locally

If you want to make local modifications to these images for development purposes or just to customize the logic:

git clone https://github.com/linuxserver/docker-ffmpeg.git
cd docker-ffmpeg
docker build \
  --no-cache \
  --pull \
  -t linuxserver/ffmpeg:latest .

The ARM variants can be built on x86_64 hardware using multiarch/qemu-user-static

docker run --rm --privileged multiarch/qemu-user-static:register --reset

Once registered you can define the dockerfile to use with -f Dockerfile.aarch64.

Versions

  • 16.03.24: - Bump libaom, mesa, openjpeg, opus, shaderc and svtav1.
  • 11.02.24: - Add Zimg support.
  • 09.02.24: - Bump ffmpeg to 6.1.1, bump other deps.
  • 08.02.24: - Enable cuda-llvm, clean up rustc.
  • 01.02.24: - Bump Mesa to v24.
  • 21.01.24: - Add alsa support.
  • 18.01.24: - Let the wrapper pass the ffmpeg exit code to docker run. Bump various libs.
  • 01.01.24: - Add rav1e support. Bump libaom, fdkaac, libdrm, libvmaf, libvpl, mesa and svt-av1.
  • 06.12.23: - Add libplacebo and libdobi to x86_64.
  • 05.12.23: - Bump Mesa. Fix vdpau. Fix AMD VAAPI.
  • 25.11.23: - Compile Mesa from source. Add proper Vulkan support (env var ENABLE_VULKAN=true no longer needed)(tested with Intel).
  • 22.11.23: - Add shaderc and (preliminary) Vulkan support (via env var ENABLE_VULKAN=true) to x86_64. Bump Intel drivers and other libs.
  • 13.11.23: - Bump FFmpeg to 6.1.
  • 02.11.23: - Remove --enable-small from ffmpeg build options to add back some features.
  • 05.10.23: - Add support for SVT-AV1. Update various libraries.
  • 16.08.23: - Added support for WebP formats.
  • 11.08.23: - Add optional i965 driver for gen5+ support.
  • 14.06.23: - Switch to latest iHD for Intel, add qsv support.
  • 13.06.23: - Bump to 6.0, update shared libraries, deprecate armhf, combine bin stage.
  • 14.12.22: - Rebase to Jammy, bump to 5.1.2.
  • 19.06.22: - Rebase to Focal.
  • 26.08.21: - Add support for libOpenCL.
  • 01.07.21: - Bump to 4.4.
  • 17.06.20: - Bump to 4.3.
  • 16.06.20: - Add support for libvmaf.
  • 01.08.19: - Initial release.

More Repositories

1

Heimdall

An Application dashboard and launcher
PHP
7,126
star
2

docker-wireguard

Dockerfile
2,471
star
3

docker-swag

Nginx webserver and reverse proxy with php support and a built-in Certbot (Let's Encrypt) client. It also contains fail2ban for intrusion prevention.
Dockerfile
2,461
star
4

docker-code-server

Dockerfile
1,415
star
5

docker-webtop

Ubuntu, Alpine, Arch, and Fedora based Webtop images, Linux in a web browser supporting popular desktop environments.
Dockerfile
1,275
star
6

reverse-proxy-confs

These confs are pulled into our SWAG image: https://github.com/linuxserver/docker-swag
1,229
star
7

docker-plex

Dockerfile
992
star
8

docker-unifi-controller

Dockerfile
844
star
9

docker-mods

Documentation and Examples of base container modifications
Dockerfile
808
star
10

docker-letsencrypt

DEPRECATED: Please use linuxserver/swag instead
Dockerfile
727
star
11

docker-sonarr

Dockerfile
672
star
12

docker-calibre-web

Dockerfile
663
star
13

budge

JavaScript
579
star
14

docker-nextcloud

Dockerfile
571
star
15

docker-jellyfin

Dockerfile
563
star
16

docker-bookstack

A Docker container for the BookStack documentation wiki
Dockerfile
556
star
17

docker-qbittorrent

Dockerfile
554
star
18

docker-radarr

Dockerfile
501
star
19

docker-transmission

Dockerfile
486
star
20

docker-openssh-server

Dockerfile
473
star
21

docker-emulatorjs

Web based retro emulation frontend with rom scanning and automated art ingestion.
Dockerfile
439
star
22

docker-unifi-network-application

Dockerfile
419
star
23

docker-jackett

Dockerfile
346
star
24

emulatorjs

Self hosted web based retro emulation front end with rom and art management.
JavaScript
331
star
25

docker-calibre

Dockerfile
291
star
26

docker-smokeping

Shell
287
star
27

Heimdall-Apps

Apps for Heimdall
PHP
283
star
28

docker-heimdall

Dockerfile
282
star
29

docker-grocy

A container for grocy - the ERP application for your kitchen https://grocy.info
Dockerfile
256
star
30

docker-prowlarr

Docker image for Prowlarr/Prowlarr
Dockerfile
249
star
31

docker-syncthing

Dockerfile
235
star
32

docker-deluge

Dockerfile
223
star
33

docker-netbootxyz

Dockerfile
222
star
34

docker-kasm

Kasm Workspaces platform provides enterprise-class orchestration, data loss prevention, and web streaming technology to enable the delivery of containerized workloads to your browser.
Shell
218
star
35

docker-sabnzbd

Dockerfile
210
star
36

docker-duplicati

Dockerfile
207
star
37

docker-bazarr

Dockerfile
200
star
38

docker-rdesktop

Dockerfile
191
star
39

docker-tautulli

Dockerfile
184
star
40

docker-duckdns

Shell
183
star
41

docker-mariadb

Dockerfile
181
star
42

docker-homeassistant

Dockerfile
170
star
43

docker-lidarr

Dockerfile
169
star
44

docker-healthchecks

Dockerfile
163
star
45

docker-baseimage-kasmvnc

Base Images for remote web based Linux desktops using KasmVNC for many popular distros.
Shell
159
star
46

docker-couchpotato

Dockerfile
153
star
47

davos

Web-based FTP automation for Linux servers.
Java
151
star
48

docker-rutorrent

DEPRECATED
PHP
151
star
49

docker-ombi

Dockerfile
147
star
50

docker-nzbget

Dockerfile
140
star
51

docker-tvheadend

Dockerfile
134
star
52

docker-freshrss

HTML
124
star
53

docker-baseimage-alpine

Dockerfile
124
star
54

docker-docker-compose

Shell
123
star
55

docker-nginx

Dockerfile
122
star
56

docker-kodi-headless

Dockerfile
122
star
57

Clarkson

Web-based fuel logging dashboard
TypeScript
120
star
58

docker-firefox

Dockerfile
113
star
59

fleet

Status and image fleet metadata management application for Docker images
Java
110
star
60

docker-ddclient

Dockerfile
106
star
61

docker-piwigo

Dockerfile
104
star
62

docker-resilio-sync

Dockerfile
102
star
63

docker-snipe-it

Alpine/Nginx container for the Asset Management software Snipe-IT
Dockerfile
101
star
64

docker-baseimage-guacgui

Dockerfile
98
star
65

docker-beets

Dockerfile
97
star
66

docker-baseimage-ubuntu

Dockerfile
97
star
67

docker-daapd

Dockerfile
96
star
68

docker-readarr

Container for readarr.com
94
star
69

docker-wireshark

Dockerfile
87
star
70

docker-openvscode-server

Dockerfile
83
star
71

docker-dokuwiki

Dockerfile
82
star
72

docker-ubooquity

Dockerfile
82
star
73

docker-emby

Dockerfile
80
star
74

docker-overseerr

Dockerfile
77
star
75

docker-lazylibrarian

Dockerfile
77
star
76

heimdalljs

JavaScript
77
star
77

docker-baseimage-rdesktop-web

Custom all in one container for running GUI apps from a web browser
Dockerfile
73
star
78

docker-netbox

Python
72
star
79

docker-pyload-ng

Dockerfile
72
star
80

docker-mastodon

Dockerfile
71
star
81

gclient

NodeJS application replacement for the default Guacamole Client
JavaScript
66
star
82

docker-ldap-auth

Python
66
star
83

docker-librespeed

HTML
66
star
84

docker-steamos

Vanilla Arch modified into SteamOS with web based Desktop access, useful for remote play and lower end games
Dockerfile
66
star
85

docker-tt-rss

Dockerfile
65
star
86

docker-libreoffice

Dockerfile
64
star
87

docker-wikijs

Dockerfile
64
star
88

docker-diskover

A Docker container for the Diskover space mapping application
Dockerfile
64
star
89

docker-nzbhydra2

Dockerfile
61
star
90

docker-organizr

DEPRECATED
Dockerfile
61
star
91

docker-budge

Dockerfile
56
star
92

docker-remmina

Dockerfile
56
star
93

docker-projectsend

Dockerfile
55
star
94

docker-scrutiny

Dockerfile
54
star
95

docker-endlessh

Dockerfile
53
star
96

docker-snapdrop

HTML
52
star
97

docker-chromium

Web accessible Chromium inside an Alpine Container
Dockerfile
52
star
98

docker-paperless-ngx

Dockerfile
48
star
99

docker-headphones

Dockerfile
48
star
100

docker-papermerge

Dockerfile
47
star