1. 程式人生 > >ffmpeg4.0.2編譯方法

ffmpeg4.0.2編譯方法

  • cd /opt/install/ffmpeg
  • tar -xvf ffmpeg-4.0.2.tar.bz2
  • cd ffmpeg-4.0.2
  • export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
  • export LD_LIBRARY_PATH=./:/usr/local/lib:/usr/local/lib64:$LD_LIBRARY_PATH
  • ./configure --enable-shared --enable-libxavs --enable-libx264 --enable-libx265 --enable-libvpx --enable-libfdk-aac --enable-libcodec2 --enable-libmp3lame --enable-libtwolame --enable-gpl --enable-nonfree --disable-x86asm
  • make && make install