FFmpeg is a cross-platform solution for streaming audio and video as well as recording and conversion. It’s also useful to convert multimedia files between various formats. FFmpeg includes libavcodec audio/video codec library in it.
This article will describe you to how to install FFmpeg on Ubuntu, Debian and LinuxMint systems with easy steps.
Step 1 – Add FFmpeg PPA
FFmpeg is also available under default repositories but an older version. To install the updated version, first of all, You need to add PPA to your system.
sudo add-apt-repository ppa:jonathonf/ffmpeg-3
sudo add-apt-repository ppa:jonathonf/tesseract
Step 2 – Install FFmpeg
After enabling the PPA, Lets exec below commands to install ffmpeg on your Ubuntu system.
sudo apt-get update sudo apt-get install ffmpeg libav-tools x264 x265
Step 3 – Check FFmpeg Version
After successfully install FFmpeg, let’s check the version installed on the system.
ffmpeg -versionffmpeg version 3.3.4-2~16.04.york0 Copyright (c) 2000-2017 the FFmpeg developers [...]
Step 4 – FFmpeg Basic Commands
Here is the list of few ffmepg basic command options used with ffmpeg command line tool.
Click here to read more about ffmpeg on its official site.
Step 5 – Basic Examples
Below are some examples of uses of ffmpeg command line.
Reduce .mov File Size:
ffmpeg -i in.mov -c:v libx264 -c:a copy -crf 20 out.mov
Convert .move To .mp4
ffmpeg -i in.mov -vcodec copy -acodec aac -strict experimental -ab 128k out.mp4