I'm trying to understand how to install the ffmpeg
package from Launchpad.
The ffmpeg website links to that page when you try to download it for Linux.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityI'm trying to understand how to install the ffmpeg
package from Launchpad.
The ffmpeg website links to that page when you try to download it for Linux.
ffmpeg
is available in the official Ubuntu repositories :
- xenial | xenial-updates | yakkety | yakkety-updates -
apt policy ffmpeg
ffmpeg:
Installed: 7:3.0.5-0ubuntu0.16.10.1
Candidate: 7:3.0.5-0ubuntu0.16.10.1
Version table:
*** 7:3.0.5-0ubuntu0.16.10.1 500
500 http://archive.ubuntu.com/ubuntu yakkety-updates/universe amd64 Packages
500 http://archive.ubuntu.com/ubuntu yakkety-security/universe amd64 Packages
100 /var/lib/dpkg/status
7:3.0.2-1ubuntu3 500
500 http://archive.ubuntu.com/ubuntu yakkety/universe amd64 Packages
To install it open a terminal and execute this command :
sudo apt install ffmpeg
There is no need to download ffmpeg
from launchpad.
Update addressing your comment about missing packages after an installation using apt
When you install ffmpeg
using apt
, the 'additional packages' are getting installed alongside automatically, maybe something went wrong in your case. For example - here my initial setup - these packages were installed after I had executed the command sudo apt install ffmpeg
:
ffmpeg (7:3.0.2-1ubuntu3)
i965-va-driver (1.7.1-1)
libaacs0 (0.8.1-1)
libass5 (0.13.2-1)
libavcodec57 (7:3.0.2-1ubuntu3)
libavdevice57 (7:3.0.2-1ubuntu3)
libavfilter6 (7:3.0.2-1ubuntu3)
libavformat57 (7:3.0.2-1ubuntu3)
libavresample3 (7:3.0.2-1ubuntu3)
libavutil55 (7:3.0.2-1ubuntu3)
libbdplus0 (0.1.2-1)
libbluray1 (1:0.9.3-2)
libbs2b0 (3.1.0+dfsg-2.2)
libchromaprint0 (1.3-1build1)
libcrystalhd3 (1:0.0~git20110715.fdd2f19-11build1)
libdc1394-22 (2.2.4-1)
libflite1 (2.0.0-release-2)
libgme0 (0.6.0-3)
libgsm1 (1.0.13-4)
libmodplug1 (1:0.8.8.5-2)
libmp3lame0 (3.99.5+repack1-9build1)
libopenal-data (1:1.17.2-1)
libopenal1 (1:1.17.2-1)
libopenjpeg5 (1:1.5.2-3.1)
libpostproc54 (7:3.0.2-1ubuntu3)
librubberband2v5 (1.8.1-6ubuntu2)
libschroedinger-1.0-0 (1.0.11-2.1build1)
libsdl1.2debian (1.2.15+dfsg1-4)
libshine3 (3.1.0-4)
libsoxr0 (0.1.2-1)
libssh-gcrypt-4 (0.7.3-1)
libswresample2 (7:3.0.2-1ubuntu3)
libswscale4 (7:3.0.2-1ubuntu3)
libtwolame0 (0.3.13-1.2)
libva1 (1.7.1-2)
libvdpau1 (1.1.1-3ubuntu1)
libx264-148 (2:0.148.2699+gita5e06b9-1)
libx265-79 (1.9-3)
libxvidcore4 (2:1.3.4-1)
libzvbi-common (0.2.35-11)
libzvbi0 (0.2.35-11)
mesa-va-drivers (12.0.3-1ubuntu2)
mesa-vdpau-drivers (12.0.3-1ubuntu2)
va-driver-all (1.7.1-2)
vdpau-driver-all (1.1.1-3ubuntu1)
This is from an Ubuntu 16.10 installation - packages and versions are different in other editions.
Other packages like libavcodec-extra57
, which provides some additional de/encoders or any dev-versions have to be installed manually.
If you are still running Ubuntu 14.04, you can install libav-tools
(a fork of ffmpeg
which temporarily replaced ffmpeg
in Ubuntu 14.04) instead.
sudo find / -name "avcodec.h"
(it should return the location of the header file avcodec.h
that is supposed to be installed with the package libavcodec), I get nothing. So that confirms that the other packages aren't being installed.
You copied the Ubuntu - packages for Vivid, Wily, Xenial link from the ffmpeg website incorrectly. The correct link is: https://launchpad.net/ubuntu/+source/ffmpeg. At this webpage you can show the ffmpeg .deb packages that are available to be downloaded by unfolding the white triangles on the left side of the page. The ffmpeg packages at this website were last updated two weeks ago.
In Ubuntu 12.04, 16.04, 16.10, 17.04, 17.10 and 18.04 and later (but not 14.04) you can also install ffmpeg from the terminal with the following command:
sudo apt-get install ffmpeg
Precompiled binaries of Paraview don't need or use ffmpeg libs so I'll assume that you are looking to build Paraview with ffmpeg support.
In that case this should do it, it will install all 9 -dev packages. Likely that you don't need them all, if desired remove the last package to get a shortlist of 4 -dev packages.
sudo apt install libavcodec-dev libavformat-dev libavdevice-dev
It doesn't hurt to have a couple of extra -dev's installed & many sources will only use what they need/support.
First look for the packaged deb
file for your version of Ubuntu (a deb
for Debian/Mint etc may work for Ubuntu - RPMs are for fedora/centos/redhat/suse, other packaging formats are available for different distros). This can a annoying to find on launchpad (the link may just be out of date) - but is still possible to something usable (NOTE: Read the last part of the answer before trying for ffmpeg...):
amd64
if possible for 64bit, else use the i*86
packages (for 32bit).If you can't find that, you can usually get a source code download (e.g. for 14.04, here - the ffmpeg site version is https://www.ffmpeg.org/download.html). You then should be able to compile and install that - instructions are available here, and usually in a README
file in the stuff you download. Please note that if you do not use checkinstall
etc, you may need to remove the package with sudo make uninstall
or similar to remove the compile program, hence why it is usually better to use packaged versions
Launchpad can better used with PPAs, instructions for using them can be found here.
The method you use to install ffmpeg
depends on the version of Ubuntu you are using. For recent supported versions (since 15.04 (vivid), so 16.04 & 16.10 currently), this should work and will get ffmpeg
from the offical repos (here):
sudo apt-get install ffmpeg
However if you are using 14.04 (and some other versions from around that point), you can use libav-tools
a fork of that project
sudo apt-get install libav-tools
This was because ffmpeg
was removed from the offical ubuntu repositories for a few versions. however ffmpeg is still available from third party sources for them (such as ffmpeg
source code, PPAs, and deb
downloads. This is covered extensively here.