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