1.官网地址,去官网下载ffmpeg源码
https://ffmpeg.org
2.安装ffmpeg基础依赖
sudo apt-get update sudo apt-get install build-essential yasm texi2html libvorbis-dev libmp3lame-dev libopus-dev libx264-dev libx265-dev libvpx-dev libfdk-aac-dev libass-dev libfreetype6-dev libfontconfig1-dev
3.解压源码,进入源码目录编译安装ffmpeg源码
./configure --prefix=/usr/local/ffmpeg --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libx264 --enable-libx265 --enable-libvpx --enable-libass make sudo make install
4.配置环境变量
export PATH=/usr/local/ffmpeg/bin:$PATH
标签:enable,ffmpeg,--,sudo,dev,源码,安装 From: https://www.cnblogs.com/navysummer/p/17341369.html