1.下载源码
git clone https://git.ffmpeg.org/ffmpeg.git
2.创建编译之后的目录
mkdir bin
image.png
3.安装环境
sudo apt-get update -qq && sudo apt-get -y install
autoconf
automake
build-essential
cmake
git-core
libass-dev
libfreetype6-dev
libsdl2-dev
libtool
libva-dev
libvdpau-dev
libvorbis-dev
libxcb1-dev
libxcb-shm0-dev
libxcb-xfixes0-dev
pkg-config
texinfo
wget
zlib1g-dev
4.编译静态库
//生成静态库, 安装目录
../configure --enable-shared --prefix=/home/wang/ffmpeg
image.png
4.编译
make
make install
image.png
5.文件
image.png
网友评论