按照readme 和install文件编译,安装ffmpeg源码之后,找个avi文件测试ffmpeg,ffmpeg -i test.avi image%d.jpg出现下面提示:
ffmpeg: error while loading shared libraries: libavfilter.so.1: cannot open shared object file: No such file or directory
解决办法:
1、/etc/ld.so.conf.d/libffmpeg.conf
2、vim /etc/ld.so.conf.d/libffmpeg.conf
3、输入/usr/local/ffmpeg/lib/
4、执行ldconfig
ok搞定