【FFmpeg】FFmpeg5.1在ubuntu18.04上编译

【目录】郭老二博文之:图像视频汇总

1、FFmpeg5.1源码下载

https://github.com/FFmpeg/FFmpeg/tree/release/5.1

2、配置

./configure --prefix=[您的安装目录] --enable-libfreetype --enable-libfdk-aac --enable-libx264 --enable-libx265 --enable-gpl --enable-shared --enable-pthreads --enable-libspeex --enable-debug  --enable-nonfree --disable-x86asm

3、安装依赖

sudo apt install libx264-dev
sudo apt install libx265-dev
sudo apt install libsdl2-dev // ffplay依赖库
sudo apt install libfdk-aac-dev
sudo apt install libfreetype6-dev
sudo apt install libspeex-dev 

如果安装时报错,尝试更新下:sudo apt update

4、错误处理

4.1 libfdk_aac is incompatible<

你可能感兴趣的:(视频,ffmpeg,ubuntu,linux)