Sign in

ffmpeg

9.0.2-cli-ls10tool

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

A tool: you run it once as a command, or the project's tooling or other images use it. It is not a long-running application and is not in the stores.

docker pull ghcr.io/linuxserver-playground/ffmpeg:latest

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)

Nvidia support requires Nvidia container toolkit and the Nvidia drivers installed on the host.

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

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

Version tags#

TagLatest buildBuiltTests
:latestStable releasesbranch master · stable9.0.2-cli-ls10amd64 · arm64–

Architectures#

Pulling :latest picks the right one for your host automatically.

  • x86_64amd64-latest
  • arm64arm64v8-latest

Inside the latest image#

ghcr.io/linuxserver-playground/ffmpeg:9.0.2-cli-ls10

Explore this build
Base image
ghcr.io/linuxserver-playground/baseimage-ubuntu:resolute
Upstream version
9.0.2-cli
amd64 compressed
250 MB · 11 layers
arm64 compressed
164 MB · 11 layers
amd64 packages
198 · Ubuntu 26.04.1 LTS
arm64 packages
184 · Ubuntu 26.04.1 LTS
Tests
not run
Built
Reason
weekly package check

In the fleet#

Live branches, their latest release, upstream version and next scheduled check.

ffmpeg on the fleet board

live branchesloading…

Branch → tagLast buildReleasedUpstreamDriftNext checkFlags
master → :latestsuccess
9.0.2-cli
? unknown––

Parameters#

Environment variables#
VariableFunctionRequired
PUID=1000User IDrequired
PGID=1000Group IDrequired
TZ=Etc/UTCTimezonerequired

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 lscr.io/linuxserver/docker-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.

Builds#

The newest five builds per branch, each with its CI report; 5 older releases are on GitHub, listed below.

TagBuiltReasonChangeResultSize
9.0.2-cli-ls10master · daf5a3e7weekly package checkbasesuccess250 MB amd64164 MB arm64
9.0.2-cli-ls9master · 8ad36d40weekly package checkbasesuccess258 MB amd64172 MB arm64
9.0.2-cli-ls8master · 2ad640e5weekly package checkbasesuccess252 MB amd64166 MB arm64
9.0.2-cli-ls7master · 98d96b92weekly package checkbasesuccess250 MB amd64164 MB arm64
9.0.2-cli-ls6master · 9d5a7b26weekly package checkbasesuccess250 MB amd64164 MB arm64
Older releases5Release, run record and run on GitHub

Support#

Questions about running ffmpeg? Start with the documentation and the community; open an issue for bugs.

Community project

Improve ffmpeg

This image is kept up by volunteers, and you can be one of them. You don't need to know how the pipeline works: point an AI agent at the harness and describe what you want. It reproduces the problem in your Docker, tests the change and drafts the pull request for you to check.

Ask your agent

  • Something is wrong with the ffmpeg image: <what you saw>. Reproduce it, fix it and draft the PR.
  • Add <package> to the ffmpeg image, test it and draft the PR.

Contributing an image Every way to help Get the harness (opens in a new tab)