ffmpeg install in ubuntu linux step by step

step 1 ppa

sudo add-apt-repository ppa:jonathonf/ffmpeg-4

step 2 update

sudo apt-get update

step 3 ffmpeg install

sudo apt-get install ffmpeg

 

Step 3  Check FFmpeg Version

ffmpeg -version

ffmpeg version 4.0.3-1~18.04.york0 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7 (Ubuntu 7.3.0-27ubuntu1~18.04)
...

 

Step 4   FFmpeg Basic Commands

ffmpeg -version:            show version
ffmpeg -formats:            show available formats
ffmpeg -codecs:             show available codecs
ffmpeg -decoders:           show available decoders
ffmpeg -encoders:           show available encoders
ffmpeg -bsfs:               show available bit stream filters
ffmpeg -protocols:          show available protocols
ffmpeg -filters:            show available filters
ffmpeg -pix_fmts:           show available pixel formats
ffmpeg -layouts:            show standard channel layouts
ffmpeg -sample_fmts:        show available audio sample formats

 

 Basic Examples

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