How To Install FFmpeg On Ubuntu 16.04

How To Install FFmpeg On Ubuntu 16.04

FFmpeg is a popular multimedia framework, that enables the users to easily ncode, transcode, mux, demux, stream, filter and play audio and video content.

1. First add the repository

root@linuxhelp1:~# add-apt-repository ppa:djcj/hybrid
Hybrid is a multi platform (Linux/Mac OS X/Windows) Qt based frontend for a bunch of other tools which can convert nearly every input to x264/x265/Xvid/VP9/... + ac3/ogg/mp3/aac/flac inside an mp4/m2ts/mkv/webm/mov/avi container, a Blu-ray or an AVCHD structure.
http://www.selur.de/
http://forum.selur.de/topic612-hybrid-tools-ubuntu-packages.html
More info: https://launchpad.net/~djcj/+archive/ubuntu/hybrid
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keyring `/tmp/tmpi9do1tof/secring.gpg'  created
gpg: keyring `/tmp/tmpi9do1tof/pubring.gpg'  created
gpg: requesting key D4B4972B from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpi9do1tof/trustdb.gpg: trustdb created
gpg: key D4B4972B: public key " Launchpad PPA for djcj"  imported
gpg: Total number processed: 1
gpg:imported: 1(RSA: 1)
OK

2. Update the newly added repository.

root@linuxhelp1:~# apt-get update
Hit:1 http://in.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:3 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease
Get:4 http://ppa.launchpad.net/djcj/hybrid/ubuntu xenial InRelease [17.5 kB]
Hit:5 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease
Get:6 http://ppa.launchpad.net/djcj/hybrid/ubuntu xenial/main amd64 Packages [14.3 kB]
Get:7 http://ppa.launchpad.net/djcj/hybrid/ubuntu xenial/main i386 Packages [14.2 kB]
Get:8 http://ppa.launchpad.net/djcj/hybrid/ubuntu xenial/main Translation-en [9,308 B]
Fetched 55.3 kB in 2s (20.1 kB/s)
Reading package lists... Done

3. Now install the ffmpeg

root@linuxhelp1:~# apt-get install ffmpeg -y
Reading package lists... Done
Building dependency free
Reading state information... Done
The following additional packages will be installed:
binutils cpp-5 g++-5 gcc-5 gcc-5-base i965-va-driver libaacs0 libaec0 libasan2 libass5 libatomic1 libbdplus0 libbluray1 libbs2b0
libcc1-0 libcilkrts5 libcrystalhd3 libdc1394-22 libfdk-aac0 libflite1 libgcc-5-dev libgfortran3 libgme0 libgomp1 libgsm1
libhdf5-10 libitm1 libkvazaar3 liblsan0 libmodplug1 libmp3lame0 libmpx0 libnetcdf11 libopenal-data libopenal1 libopencore-amrnb0
libopencore-amrwb0 libopencv-core2.4v5 libopencv-imgproc2.4v5 libopenh264-3 libopenjpeg5 libquadmath0 libschroedinger-1.0-0
libsdl2-2.0-0 libshine3 libsnappy1v5 libsndio6.1 libsodium18 libsoxr0 libstdc++-5-dev libstdc++6 libsz2 libtbb2 libtsan0
libtwolame0 libubsan0 libva-drm1 libva-x11-1 libva1 libvdpau1 libvo-amrwbenc0 libx264-148 libx265-95 libxvidcore4 libzmq5
libzvbi-common libzvbi0 mesa-vdpau-drivers va-driver-all vdpau-driver-all vdpau-va-driver
After this operation, 107 MB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 g++-5 amd64 5.4.0-6ubuntu1~16.04.4 [8,300 kB]
Get:2 http://ppa.launchpad.net/djcj/hybrid/ubuntu xenial/main amd64 libkvazaar3 amd64 1.0.0-1~xenial1 [165 kB]
Get:3 http://ppa.launchpad.net/djcj/hybrid/ubuntu xenial/main amd64 libopenh264-3 amd64 1.6.0-0ppa1~xenial2 [337 kB]
Get:4 http://ppa.launchpad.net/djcj/hybrid/ubuntu xenial/main amd64 libx265-95 amd64 2.1-0ppa1~xenial [940 kB]
Get:5 http://ppa.launchpad.net/djcj/hybrid/ubuntu xenial/main amd64 ffmpeg amd64 7:3.2.2-1~xenial [7,880 kB]

For opening the ffmpeg for that type ffpmeg on the terminal.

root@linuxhelp1:~# ffmpeg
ffmpeg version 3.2.2-1~xenial Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
configuration: --prefix=/usr --extra-version=' 1~xenial'  --libdir=/usr/lib/ffmpeg --shlibdir=/usr/lib/ffmpeg --disable-static --disable-debug --toolchain=hardened --enable-pthreads --enable-runtime-cpudetect --enable-gpl --enable-shared --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-netcdf --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv --enable-libkvazaar --enable-libopenh264 --enable-nonfree --enable-libfdk-aac
libavutil55. 34.100 / 55. 34.100
libavcodec57. 64.101 / 57. 64.101
libavformat57. 56.100 / 57. 56.100
libavdevice57.1.100 / 57.1.100
libavfilter6. 65.100 /6. 65.100
libavresample3.1.0 /3.1.0
libswscale4.2.100 /4.2.100
libswresample2.3.100 /2.3.100
libpostproc54.1.100 / 54.1.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
Use -h to get full help or, even better, run ' man ffmpeg' 

For removing the ffmpeg for that command.

root@linuxhelp1:~# apt-get remove ffmpeg -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
ffmpeg
0 upgraded, 0 newly installed, 1 to remove and 388 not upgraded.
After this operation, 21.7 MB disk space will be freed.
(Reading database ... 177152 files and directories currently installed.)
Removing ffmpeg (7:3.2.2-1~xenial) ...
Processing triggers for man-db (2.7.5-1) ...
Tag : ffmpeg
FAQ
Q
which command to open the ffmpeg application in terminal?
A
run the following command to open the ffmpeg package
# ffmpeg
Q
How to completely remove ffmpeg package?
A
use the below command to remove the ffmpeg
# apt-get remove ffmpeg -y
Q
What are its essential properties of ffmpeg?
A
that enables the users to easily encode, transcode, mux, demux, stream, filter and play audio and video content.
Q
how to add repo for installing the ffmpeg package?
A
use the below command to add repo for ffmpeg package
# add-apt-repository ppa:djcj/hybrid
Q
Did I install ffmpeg package in Linuxmint?
A
Yes, you can install the ffmpeg package in linuxmint