centos7 ffmpeg安装

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

 

posted @ 2017-11-13 22:37  行知散人  阅读(773)  评论(0编辑  收藏  举报