mikeluwen

ffmpeg功能很强大,这里参数如下:

./configure --prefix=/opt/app/ffmpeg_build --pkg-config-flags=--static --enable-gpl --enable-nonfree --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libx264

注意centos 7管理安装的一些文件通过pkg-config

安装libfdk-aac,opus,lame,x264

编译之前要:

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH,不然会报错找不到各个安装了的软件

make && make install

报错:

./ffmpeg: error while loading shared libraries: libmp3lame.so.0: cannot open shared object file: No such file or directory

解决办法:

ln -s /usr/local/lib/libmp3lame.so.0.0.0 /usr/lib64/libmp3lame.so.0

报错:

./ffmpeg: error while loading shared libraries: libfdk-aac.so.1: cannot open shared object file: No such file or directory

解决办法:

ln -s /usr/local/lib/libfdk-aac.so.1.0.0 /usr/lib64/libfdk-aac.so.1

 

分类:

技术点:

相关文章:

  • 2018-03-29
  • 2022-01-28
  • 2022-02-18
  • 2021-11-12
  • 2021-06-17
  • 2022-12-23
猜你喜欢
  • 2022-03-01
  • 2022-01-20
  • 2021-12-05
  • 2022-02-10
  • 2021-04-11
  • 2021-10-30
  • 2022-02-03
相关资源
相似解决方案