Skip to content

Fully-featured FFmpeg on Ubuntu including nvidia support. Use Docker to compile.

Notifications You must be signed in to change notification settings

genevera/ubuntu-nvidia-ffffmpeg

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Full-featured FFmpeg on Ubuntu (now with NVidia support)

This project aims to provide Dockerfile(s) to compile full-featured FFmpeg executable files with dynamic-linking on Ubuntu-based Linux distributions.

Why not static?

If someone only uses Ubuntu and have no need to cross compile FFmpeg for other platform, dynamic linking can help re-using a lot of shared libraries and generating smaller and more efficient executable files.

However, this project still uses some static libraries which are useful but not provided by Ubuntu software repositories.

Getting Started

Install Docker

sudo apt install docker docker-buildx

Compile

docker build -t ffmpeg-build -f Dockerfile.<ubuntu_name> .
docker run -v "$(pwd)/output":/output --name ffmpeg-build ffmpeg-build

<ubuntu_name> can be Jammy (22.04), Noble (24.04).

Now, the executable files should be in the ./output directory.

Clean Up

docker rm ffmpeg-build
docker image rm ffmpeg-build && docker image prune

Run FFmpeg Executable Files

  1. Open the Dockerfile you used.
  2. Copy the apt install command in the runtime environment stage.
  3. Run the command in the Ubuntu system that you want to run FFmpeg executable files (to fix shared libraries not found issues).
  4. It is assumed that cuda is installed and available at /usr/local/cuda

Are these executable files Debian-compatible?

No. Even though Ubuntu is based on Debian, their software sources are somewhat different. Maybe you can find replaceable packages but I would recommend just modify the base image written in the Dockerfile of this project to a corresponding Debian image and build it.

About

Fully-featured FFmpeg on Ubuntu including nvidia support. Use Docker to compile.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published