I would like to know how to install FFmpeg on Debian.
migrated from serverfault.com May 21 '11 at 14:08
This question came from our site for system and network administrators.
Debian Jessie and later no longer include the ffmpeg, however you have 3 options for installing ffmpeg. I'd suggest trying options 1 or 2 before installing from source.
Option 1: Use avconv instead
You may install "avconv" which has almost the same usage as "ffmpeg". The two commands often use the same syntax, but features such as srt subtitles may only work with ffmpeg.
Option 2: Install ffmpeg from deb-multimedia.org
To install ffmpeg, edit /etc/apt/sources.list and add the appropriate line for your distribution as listed here: http://www.deb-multimedia.org/
To add debian testing, either manually edit the file or run..
Example for debian testing only:
After adding the line for deb-multimedia, update the package, add the keyring, and install ffmpeg.
You will have to install the keyring as an unauthenticated package using this method.
Option 3: Install ffmpeg from source
Alternatively, you can install from source. This is how to create a .deb file using checkinstall which can then be uninstalled again. Install these packages, yasm or nasm is needed for ffmpeg specifically, the others are generally useful for building packages:
Next, clone the ffmpeg package or download the latest snapshot:
Most of the checkinstall defaults are fine, but a version number is required. The current version is displayed by "cat RELEASE". This should create a deb file in the current directory.
Finally, install the deb file you made using dpkg:
You can install it via apt-get. If the package is simply called "ffmpeg".
If that doesn't work, you can try searching for it:
Note that this will install the packaged version of FFmpeg, therefore it will always be a little outdated. In case you experience bugs, please compile FFmpeg from source.
FFMPEG uses git so you will need to use the terminal. See here for the current location
There's a pretty comprehensive walkthrough on doing it here. Have extracted pertinent code for the lazy (myself included).
One thing to note, you may get some errors when configuring that you are missing packages. I needed to use RPM to get a couple of them when running Fedora 14 but your mileage may vary on Debian.
Configure [add your own preferences if you want]
Build and install
before installing dependencies. They are:
static builds (works)
Go to this page and pick the build for your architecture:
Grab the url to the build file