Is FFmpeg missing from the official repositories in 14.04?

482,859

Solution 1

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 of ffmpeg 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.


The following is what I could find, when researching this topic. I haven't been following the development of both projects closely and it is not my intention to blame anyone. You as a reader shouldn't do either.

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

Official announcements on libav.org

The following posts are from the news section (with the oldest in last):

August 09 2011

Updated on 12.09.2011.

For consistency with our new name we have renamed ffplay to avplay, ffserver to avserver and ffprobe to avprobe. Their behavior is the same, just the names were changed.

With ffmpeg (the command line tool) we decided to use this opportunity to fix some longstanding usability problems, which involves breaking compatibility. Therefore we have added a new tool named avconv which is based on ffmpeg, but has a different (hopefully more powerful and easier to use) syntax for some options. ffmpeg will be kept in its current state for some time, so no scripts or frontends using it will break. However it will not be developed further.

Differences between avconv and ffmpeg are:

[...]

Note that the avconv interface is not considered stable yet. More incompatible changes may come in the following weeks. We will announce here when avconv is stable.

And earlier in 2011:

Mar 18, 2011

We have just pushed another point release from our 0.6 release branch: Libav 0.6.2. This is another maintenance-only release addressing two security issues.

From now on, we will be using our new project name libav. But don't worry, compared to the preceding release 0.6.1, the only functional changes are the two security fixes for the VC1 and APE decoders. This means that libav provides a painless drop-in replacement for existing FFmpeg installations.

Moreover, we are proud to accompany this source release with executables and libraries for the win32 platform. These binaries include H.264 encoding using the bundled x264 library. Enjoy!

Distributors and system integrators are encouraged to update and share their patches against our release branches.

Mar 17, 2011

We have just pushed another point release from our 0.5 release branch: FFmpeg 0.5.4. This is another maintenance-only release that addresses a number of security issues.

Distributors and system integrators are encouraged to update and share their patches against our release branches.

March 13, 2011

We, as a group of FFmpeg developers, have decided to continue developing FFmpeg under the name Libav. All existing infrastructure will be transferred to the libav.org domain.

You can update your git repository using the following command:

git remote set-url origin 'git://git.libav.org/libav'

For now we are still reachable over FFmpeg's mailing lists and IRC channels but we will migrate to libav.org counterparts. For a transition period both the website and source might still contain references to FFmpeg. These will disappear over time, except where historically relevant.

February 24, 2011

FFmpeg development has moved to Git, and the SVN repository is no longer updated. The SVN repository may be removed in a near future, so you're recommended to use a Git repository instead.

The last revision committed to SVN was r26402 on 2011-01-19 and replaced the svn:external libswscale with a standalone copy.

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.

Solution 2

ffmpeg was replaced in previous releases by the avconv program from the libav project.

To install avconv you need to install the libav-tools package:

sudo apt-get install libav-tools

avconv is very similar to ffmpeg, 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 alias avconv -> ffmpeg (and others)

Solution 3

ffmpeg had removed repo of Ubuntu, instead of libav. you should add ppa:

sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install ffmpeg gstreamer0.10-ffmpeg

watch your output

Solution 4

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)

sudo add-apt-repository ppa:samrog131/ppa
sudo apt-get update
sudo apt-get install ffmpeg-set-alternatives

The PPA also contains other packages that you may not want. Remove the ppa after installation.

sudo add-apt-repository --remove ppa:samrog131/ppa
sudo apt-get update

Solution 5

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:

libav (6:0.8.99-1537-gacb2c79-1) experimental; urgency=low

  * New upstream snapshot
    - Drop patches applied upstream
    - Longer build libpostproc, dropped upstream
    - follow soname bump of libavcodec and libavformat 53->54
    - New library: libswresample
  * no longer build and use dirac, removed upstream in favor of libschroedinger
  * remove deprecated ffmpeg package
  * bump shlibs version

 -- Reinhard Tartler <[email protected]>  Sat, 12 May 2012 22:02:03 +0200
Share:
482,859

Related videos on Youtube

user254877
Author by

user254877

Updated on September 18, 2022

Comments

  • user254877
    user254877 almost 2 years

    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?

    • wyas
      wyas over 10 years
      What is the output of: apt-cache search ffmpeg | grep "ffmpeg" If you don't see ffmpeg in the list of returned results, then something has gone wrong with your repo manager. For now, I'd suggest installing by building from source. Download from here.
    • Owl
      Owl about 6 years
      Note that as of 2018, avconv is not in ffmpeg, and libav-tools is not in the Ubuntu repository!
  • web.learner
    web.learner over 10 years
    When did this change happen?
  • Csabi Vidó
    Csabi Vidó over 10 years
    @Seth Do you mean shipping of libav instead of FFmpeg or dropping of the transitional package? I found a mail that points to a Team Report from the Technical Board and and also added a link to the source package on launchpad where one can compare the saucy and trusty package listings, but I don't know the details.
  • web.learner
    web.learner over 10 years
    I was referring to dropping the package, although I'm interested in the time-frames for both if possible.
  • RobotHumans
    RobotHumans over 10 years
    I might move the how to install ffmpeg from ppa to the end. As a "If you're really in to swimming against the tide, and you already read all these things... then you can do this." Instead of putting it all the way at the front. Like, encourage using things that are in main/uni/multi if you can avoid PPAs.
  • Csabi Vidó
    Csabi Vidó over 10 years
    @Seth I just added what I could find by digging through libav's git tree and what they published as news on the project page. Some mails from the FFmpeg mailing list seem to have been removed (e.g. lists.mplayerhq.hu/pipermail/ffmpeg-devel/2011-January/…). This answer may now be a bit to lengthy, but give some directions for the ones that are curious.
  • Braiam
    Braiam over 10 years
    @LiveWireBT could you use the package alone? That single file was just a binary to link avconv binary. Transitional packages are always deemed as empty packages.
  • Csabi Vidó
    Csabi Vidó over 10 years
    We may just be thinking the same thing and are misunderstanding each other. :)
  • Csabi Vidó
    Csabi Vidó over 10 years
    @hbdgaf I added askubuntu.com/q/35629 as a heads up. The FFmpeg PPA was already last, not considering the newly added history section. Instead of pure politics (and probably hatred), I'd like to discuss different functionality like the new deinterlace filter w3fdif in FFmpeg (but that's off-topic for this question). I don't understand why I'm obviously getting downvoted (I'm not blaming you in particular.), for trying to objectively explain what happened. I don't have any affiliation with one of these projects and intend to be as objective as possible.
  • RedPixel
    RedPixel about 10 years
    Fixed apt-add-repository -> add-apt-repository. If apt-add-repository doesnt work for you anymore, try this: stackoverflow.com/questions/13018626/…
  • doug
    doug about 10 years
    Why suggest building as shared for amd64??, there is little to be gained & may break other apps that depend on those shared libs.
  • IndexOutOfBoundsException
    IndexOutOfBoundsException about 10 years
    It has to be: `sudo add-apt-repository ppa:mc3man/trusty-media :) can't edit this, not enough characters changed.
  • Csabi Vidó
    Csabi Vidó about 10 years
    That is not the PPA listed on FFmpeg.org as the current official PPA. (Also the project member maintaining the PPA may change, that's the reason why I decided to not includ instructions on how to add a certain PPA.) Also if you look at this PPA it updates a whole lot more packages than just ffmpeg.
  • Csabi Vidó
    Csabi Vidó about 10 years
    That's basically the same information I posted in my answer, but without the warning that should always be given before advising users to install packages from PPAs. Also there is the possibility that someone else will take over maintenance of an ffmpeg PPA in the future or that the PPA will just be moved or renamed. Therefore linking to official instructions is the right way, as it reduces redundancy and maintenance effort.
  • Victor Sergienko
    Victor Sergienko almost 10 years
    This one doesn't provide GStreamer-ffmpeg integration. @Duong's answer (mc3man's PPA) does.
  • Pablo Reyes
    Pablo Reyes over 9 years
    Installing this on my ubuntu 14.04 LTS allowed me to display mp4 videos on ipython notebooks.
  • Penghe Geng
    Penghe Geng over 9 years
    +1. From https://launchpad.net/~jon-severinsson/+archive/ubuntu/ffmpe‌​g: "Please note that this is actual FFmpeg, from ffmpeg.org. Recent Debian and Ubuntu packages feature Libav (from libav.org), a prominent FFmpeg fork"
  • MadeOfAir
    MadeOfAir about 9 years
    This doesn't work anymore.
  • Muhammad bin Yusrat
    Muhammad bin Yusrat almost 9 years
    It does work. I just added this PPA and am now installing FFMPEG.
  • Asela Sampath
    Asela Sampath almost 9 years
    It doesn't work for Utopic Unicorn though :(
  • Luca Steeb
    Luca Steeb almost 9 years
    Great! It works for me with Linux Mint 17.2.
  • Wilf
    Wilf almost 9 years
    @LiveWireBT (and others) that PPA is now provided as the Ubuntu link on the FFmpeg downloads page...
  • Aaron Hall
    Aaron Hall about 8 years
    Easy answer but all the directions online say how to use ffmpeg to do stuff, not avconv, and that's what brought me to this page. With apologies to Rutrus: minus one. - Maybe if you explained the differences, we'd be able to work with it.
  • Rutrus
    Rutrus about 8 years
    @aaron-hall I think your -1 is unfair. You expect something wrong. The question made in 2014 is very clear: Is it missing in 14.04? And the answer is yes, in some previous versions ffmpeg as much was only an alias for avconv. It doesn't matter what you were looking for. Maybe you don't read the title of the page before click this page. But don't worry, I will edit with a disclaimer for people with reputation 184 who doesn't know how to stackexchange works.
  • Aaron Hall
    Aaron Hall about 8 years
    I still have 14.04, and I want to use ffmpeg - is avconv a drop-in replacement or what? What are the differences?
  • Aaron Hall
    Aaron Hall about 8 years
    The vast majority of your rep on this site is due to this answer, which I could have written based solely on the material in the top answer. You shoud earn your rep by writing a decent answer that says, at least in short and in general what the differences are. Hand-waving is a waste of time. Unless it truly is just an alias, in which case there shouldn't be any differences in syntax. And if you do, you'll reverse my opinion of the answer, but as it currently stands, it contradicts itself! Let me know when I can delete these comments.
  • Rutrus
    Rutrus about 8 years
    libav-tools is a fork from ffmpeg. ffmpeg was replaced by avconv from 2012 to 2014 in Ubuntu repos. You can ask this new question for your answer, or find one yourself. You can use ffmpeg again since Ubuntu 15.04. Abstract: libav is compatible with ffmpeg syntax, but not in the reverse.
  • matanster
    matanster about 8 years
    Returns in 15.04, but absent in 16.04 (?!?)
  • llogan
    llogan almost 8 years
    Polluting /usr/bin with symlinks is generally not a good idea. What will happen if you upgrade to a moden Ubuntu version and try to install ffmpeg from the repo? Also, avconv is a poor substitute for ffmpeg: it is missing many features, filters, etc.
  • Wlerin
    Wlerin almost 8 years
    @Rutrus If I'm not mistaken you've written that backwards. ffmpeg supports libav syntax (though there may be some incompatibilities), but the reverse is not true.
  • SmallChess
    SmallChess about 7 years
    This still work in 2017 and is perfect.
  • Akira Yamamoto
    Akira Yamamoto about 4 years
    You forgot to mention where to download the sources