ubuntu安装ffmpeg4.2

1、安装依赖库

sudo apt install yasm libogg-dev pkg-config libopus-dev libvpx-dev libx264-dev libx265-dev libfdk-aac-dev libsdl2-dev libfdk-aac-dev libmp3lame-dev libopencore-amrwb-dev libopencore-amrnb-dev libvorbis-dev libxvidcore-dev

 

2、下载ffmpeg源码

wget http://www.ffmpeg.org/releases/ffmpeg-4.2.tar.gz

3、编译

./configure --prefix=/opt/ffmpeg --enable-shared --enable-static --enable-ffplay --enable-libx264 --enable-libx265 --enable-gpl --enable-libxvid --enable-libvpx --enable-libvorbis --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-libfdk-aac --enable-nonfree --enable-postproc --enable-libxcb --disable-vaapi



 

你可能感兴趣的:(编译ffmpeg,ubuntu)