libavdevice.so.58: cannot open shared object file: No such file or directory
File Cannot No or object open Directory such
2023-09-14 09:12:44 时间
安装好ffmpeg后,在终端使用ffmpeg命令时报:
libavdevice.so.58: cannot open shared object file: No such file or
directory
执行命令:
sudo ldconfig
ldd ffmpeg
发现连接不到库。
这是因为ffmpeg这个编译好的可执行文件执行时连接不到它的动态库导致。
在centos7/ubuntu中:
vim /etc/ld.so.conf
添加:
/usr/local/lib
这个路径是libavdevice.so.58等ffmpeg编译好的动态或静态库所在的路径。
然后再执行命令查看:
sudo ldconfig
ldd ffmpeg
发现都可以连接到库了。
如果想进行视频h264编码,和音频aac编码需要配置./config命令,见另一篇文章:libfdk-aac和x264安装编译
哎呦喂ヾ(✿゚▽゚)ノ~路长馆小,雪轻帘薄,酒热乎,这位爷~您ヾ(✿゚▽゚)ノ~ 里面坐~
本公众号专注分享C++,ffmpeg,opencv等相关音视频知识
webrtc,udp,tcp,rtsp,rtmp,srt/nginx+rtmp等流媒体协议和服务器
同时也会有大厂音视频技术专家不定期直播分享…
国人开发流媒体srs服务器,及yangrtc(国人版的webrtc)协议新动向
偶尔分享下程序员梦呓碎碎念(๑•॒̀ ູ॒•́๑)啦啦啦
目前刚刚开通,接受读者的优质投稿…
鉴于国内音视频圈子小,起步晚,以致分享少,门槛高,特开通分享,一起扇动这阵风吧!
微信扫描下方二维码,关注公众号,赶快进入音视频开发者社区吧!
![](https://img-blog.csdnimg.cn/32ebb60e13f9449496052c247d2ccf65.png)
![](https://img-blog.csdnimg.cn/bfd8a35f631f44059d8d1d228a22d54b.jpg)
![](https://img-blog.csdnimg.cn/1b3e3fc19f5f4837a6514769eabf4e10.png)
相关文章
- dtools: error while loading shared libraries: libicui18n.so.55: cannot open shared object file: No such file or directory ninja: build stopped: subcommand failed.
- Cannot attach the file as database
- chmod: cannot access `/usr/local/apache2/modules/libphp5.so': No such file
- 解决:CentOS下的 error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or dir
- /bin/dd if=/path/to/source-file of=/path/to/backup-file
- libpthread.so.0: cannot open shared object file解决方法(原创)
- File对象转MultipartFile 如何new出高仿MultipartFile对象
- javaioIOException - Cannot run program javac error 2 No such file or direct
- 成功解决Exception: Graph file doesn't exist, path=F:File_PythonPython_exampleHuman_Posture_Detection
- 【异常】File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
- Android file 文件重命名删除详解
- 已解决raise BadZipFile(“File is not a zip file”)
- 已解决zipfile.BadZipFile: File is not a zip file
- 【Qt】libxcb-xinerama.so.0: cannot open shared object file: No such file
- idea常用且好用的十几个插件,比如CamelCase,any-rule,CodeGlance,Convert YAML and Properties File,Lombok,Maven Helper
- html中#include file的使用方法
- chroumium electron apply_all_patches.py patch git error WindowsError: [Error 2] The system cannot find the file specified
- 013-java中的IO操作-InputStream/Reader、OutputStream/Writer,Spring操作file,File转bytearray
- Cannot create __weak reference in file using manual reference counting
- Qt开发,编译报错:Cannot find file: xxx.pro.
- 嵌入式linux开发,配置uboot报错:<command-line>:0:12: fatal error: curses.h: No such file or directory
- android报错:prebuilts/misc/linux-x86/bison/bison: cannot execute binary file解决(七十六)
- cocos2d-x 新建项目 Cannot open include file: ‘cocos2d.h’