I tried to install ffmpeg in trusty/Ubuntu 14.04 and got the following message:
$sudo apt-get install ffmpeg
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ffmpeg is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'ffmpeg' has no installation candidate
Why isn't the package available?
Latest news
FFmpeg and libav
libav from the Ubuntu repositories
Ubuntu started shipping the libav fork instead of FFmpeg in recent releases. If you installed the ffmpeg package, then you actually installed the libav-tools package and a program that told you to use
avconv
instead offfmpeg
in the future, giving the impression that ffmpeg is deprecated, which it is not.The transitional
ffmpeg
package seems to have been removed from trusty/Ubuntu 14.04 (compare the package files listing for saucy and trusty of the source package).So one option is to install the libav-tools package and use
avconv
instead (NB that this is not "mainline" FFmpeg but a prominent fork instead).FFmpeg from a PPA on Launchpad
Another option is to use a PPA that provides FFmpeg. Please have a look at the FFmpeg download page for details of available PPAs and packages. You should check individual PPAs every once in a while if they are still up to date.
Related questions:
Install from source
Another option is to install FFmpeg dependency packages, then manually compile+install it from source.
Use static builds
While it may look a bit awkward from the packaging perspective, you could also use any static build from trusted sources. In my case I keep FFmpeg Windows 32-Bit and 64-Bit binaries along with x264-10-Bit binaries in a folder to run them in Wine or Windows whenever I need to.
How did the fork happen?
Wikipedia states that the forked project as well as the initial release were announced on March 13th 2011, however there is a bit more that was going on.
Digging through Git commits
18 Jan 2011 - commit f4f5cab94e0881cd30965b28f3d78d9c63d6918e
The FFmpeg project leader Michael Niedermayer is removed from the
MAINTAINERS
file.27 Jul 2011 - commit 6291d7e41605c0b1e9debfae8a2b1d4cf7b0e0b3
avconv
is introduced:27 Jul 2011 - commit 791a86c37a03b94207bc2d0ad4cbe7f39d7e495a
A warning is added to the forked version of
ffmpeg.c
source code, that may be misleading to users who haven't noticed about the fork and that they are not using FFmpeg anymore.12 Jan 2012 - commit 0fec2cb15cc6ff1fcc724c774ec36abadcb7b6ad
ffmpeg.c
is removed from the source code.Official announcements on libav.org
The following posts are from the news section (with the oldest in last):
And earlier in 2011:
Note that FFmpeg development has in fact moved to a Git repository by now and that there are two Git repositories. See the corresponding projects download page.
ffmpeg
was replaced in previous releases by theavconv
program from the libav project.To install
avconv
you need to install thelibav-tools
package:avconv
is very similar toffmpeg
, but they also have some differences in syntax.Edit: It seems Ubuntu 16.04LTS has again
ffmpeg
in their repositories, so libav-tools is a dummy package and only creates an aliasavconv -> ffmpeg
(and others)ffmpeg had removed repo of Ubuntu, instead of libav. you should add ppa:
watch your output
You can also use this PPA: ppa:jon-severinsson/ffmpeg
Edit: This ppa has been deleted from Launchpad, I don't know why. Instead of it, you can use the samrog131 PPA (for Trusty, Utopic & Vivid)
The PPA also contains other packages that you may not want. Remove the ppa after installation.
FFMPEG package was removed since some time now from Debian repositories. There's still an ongoing debate about including the package again in the repositories. Ubuntu as Debian derivative, depends of the decitions made upstream. Since long ago, the package was just empty with an dependency to libav. This was changed in 12 May 2012 when the package was dropped and removed from the archives:
I had the same error when trying to run
So I combined a few other answers, as well as the content from this site, to obtain the following recipe that worked for me:
Now I can see that ffmpeg has been installed:
returns
/opt/ffmpeg/bin/ffmpeg
From the bash prompt, the command
ffmpeg
should now work from any folder.If you want to install ffmpeg 2.2.1 (from source) in Ubuntu 14.04, you can give it a try using the following options:
For 64-bit OS:
List of Dependencies:
Compilation options:
For a 32 bit OS:
List of Dependencies:
Compilation options:
For more information see my youtube video.
If you want the latest release fresh off github which satisfies the likes of errors generated from youtube-dl
then issue these cmds :
enjoy,
First install
avconv
:Then create a soft link to
avconv
namedffmpeg
:Now you can use
ffmpeg
normally.I was spent 2 weeks to install newest version ffmpeg 2.8.11. This version is used for Ubuntu 16.04. I advise you should install this version. I tested on Ubuntu 12.04 and Ubuntu 14.04 and it worked well. You can install libav-tools like directions above but you will have a problem about compatibility. Because libav-tools and ffmpeg now was developed by two different group. Following my directions. If you have any problem can sent me via an email: [email protected]
Check ffmpeg, ffserver, ffplay, ffprobe in terminal. Good luck