Linux下ffmpeg 4.2编译过程
程序员文章站
2022-03-03 22:31:31
...
ffmpeg地址:
git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
libopus安装:
sudo apt-get install opus
mp3lame安装:
sudo apt-get install mp3lame
libx264-dev:
sudo apt-get install libx264-dev
libvpx编译过程:
wget https://github.com/webmproject/libvpx/archive/v1.6.1.zip
unzip libvpx-1.6.1.zip
cd libvpx-1.6.1/
./configure --prefix=/home/v/workspace/libvpx-1.6.1/build_lib --enable-realtime-only --enable-pic --enable-error-concealment --enable-examples --enable-vp8 --enable-pic --enable-shared --as=yasm
make
make install
ffmpeg编译脚本:
PKG_CONFIG_PATH=/home/v/workspace/libvpx-1.6.1/build_lib/lib/pkgconfig ./configure --prefix=~/workspace/ffmpeg/build --enable-shared --enable-pic --enable-static --enable-libx264 --enable-gpl --enable-libmp3lame --enable-libopus --enable-libvpx
上一篇: Linux学习笔记二(常用的命令)