• 欢迎访问显哥博客,本网站纯属学习技术,绝无商业用途,欢迎小伙伴们共同学习!研究技术!QQ:52249909 加我QQ
  • 世界75亿人,这么小的概率,能认识你,是我一生的幸运,不妨加个QQ接触一下:52249909 加我QQ

运行FFmpeg报错error while loading shared libraries: libavdevice.so.58解决【显哥出品,必为精品】

技术栈 lixian 4年前 (2020-09-17) 21489次浏览 4个评论 扫描二维码

报错

编译完成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

本站博主 , 版权所有丨如未注明 , 均为原创
转载请注明原文链接:运行FFmpeg报错error while loading shared libraries: libavdevice.so.58解决【显哥出品,必为精品】
喜欢 (1)

您必须 登录 才能发表评论!

(4)个小伙伴在吐槽
  1. At the beginning, I was still puzzled. Since I read your article, I have been very impressed. It has provided a lot of innovative ideas for my thesis related to gate.io. Thank u. But I still have some doubts, can you help me? Thanks.
    gateio2023-05-11 23:45
  2. Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
  3. 感谢,解决问题了
    匿名2021-04-13 14:32