Here's how to build and install FFmpeg from source with all the bells and whistles (i.e codec support). We'll install…