报错
编译完成ffmpeg,且配置好环境变量,执行时报以下错误
ffmpeg: error while loading shared libraries: libavdevice.so.58: cannot open shared object file: No such file or directory
[root@lixian ~/ffmpeg]# ffmpeg -encoders ffmpeg: error while loading shared libraries: libavdevice.so.58: cannot open shared object file: No such file or directory
原因:
没有配置库路径
解决:
#编辑ld.so.conf文件,并且在最下面插入两行路径 [root@lixian ~]# vim /etc/ld.so.conf /usr/local/ffmpeg/lib /usr/local/x264/lib [root@ecs-7f06-10 ~]# ldconfig