1,sudo apt update
2,sudo apt install ffmpeg
3,安装成功后查看【版本】【编码器】【解码器】
ffmpeg -v
ffmpeg -encoders
ffmpeg -decoders
4,安装需要用的各种组件
sudo apt-get install libavutil-dev libavfilter-dev libavformat-dev libsdl2-dev libavcodec-dev libx264-dev libxvidcore-dev libvdpau-dev libva-dev libxcb-shm0-dev libwavpack-dev libvpx-dev libvorbis-dev libogg-dev libvidstab-dev libspeex-dev libopus-dev libopencore-amrnb-dev libopencore-amrwb-dev libmp3lame-dev libfreetype6-dev libfdk-aac-dev libass-dev libbz2-dev libsoxr-dev