一、安装相关依赖库
sudo apt-get -y install autoconf automake build-essential libass-dev libfreetype6-dev libsdl2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev pkg-config texinfo zlib1g-dev
二、安装汇编库
sudo apt-get install yasm
sudo apt-get install nasm
三、安装音视频编解码库
sudo apt-get install libx264-dev
sudo apt-get install libx265-dev
sudo apt-get install libfdk-aac-dev
sudo apt-get install libmp3lame-dev
sudo apt-get install libopus-dev
四、ffmpeg安装
参考https://blog.csdn.net/qq_36512295/article/details/102785750
sudo snap install ffmpeg
sudo apt-get install ffmpeg
命令行输入ffmpeg:
显示:
即说明安装成功。