ffmpeg: error while loading shared libraries: libavdevice.so.52: cannot open shared object file: No
来源:互联网 发布:淘宝试用中心有效果吗 编辑:程序博客网 时间:2024/06/01 08:48
ffmpeg: error while loading sharedlibraries: libavdevice.so.52: cannot open shared object file: Nosuch file or directory
After installling ffmpeg on CentOS 4.8 the above error apears whenrunning ffmpeg for the first time.
Running ldd utility shows that ffmpeg binary isdynamically linked to libraries which cannot be found:
All ffmpeg required libraries have been successfully installed under /usr/local/lib/ directory:
To make ffmpeg binary look in this directory for linked libraries,edit/etc/ld.so.conf and add this path:
Now run ffmpeg again and it works:
After installling ffmpeg on CentOS 4.8 the above error apears whenrunning ffmpeg for the first time.
Code:
# ffmpeg
ffmpeg: error while loading shared libraries: libavdevice.so.52:cannot open shared object file: No such file or directory
ffmpeg: error while loading shared libraries: libavdevice.so.52:cannot open shared object file: No such file or directory
Running ldd utility shows that ffmpeg binary isdynamically linked to libraries which cannot be found:
Code:
# ldd `which ffmpeg`
libavdevice.so.52 => notfound
libavfilter.so.1 => notfound
libavformat.so.52 => notfound
libavcodec.so.52 => notfound
libswscale.so.0 => notfound
libavcore.so.0 => not found
libavutil.so.50 => notfound
libm.so.6 => /lib/libm.so.6(0x006c3000)
libpthread.so.0 =>/lib/libpthread.so.0 (0x007e9000)
libc.so.6 => /lib/libc.so.6(0x00575000)
/lib/ld-linux.so.2 (0x00557000)
All ffmpeg required libraries have been successfully installed under /usr/local/lib/ directory:
Code:
# find /usr/local/lib/ | grep -E"libavdevice.so.52|libavfilter.so.1|libavcodec.so.52|libavcore.so.0"
/usr/local/lib/libavdevice.so.52
/usr/local/lib/libavdevice.so.52.2.1
/usr/local/lib/libavfilter.so.1.38.1
/usr/local/lib/libavfilter.so.1
/usr/local/lib/libavcodec.so.52.87.0
/usr/local/lib/libavcore.so.0
/usr/local/lib/libavcore.so.0.6.0
/usr/local/lib/libavcodec.so.52
/usr/local/lib/libavdevice.so.52
/usr/local/lib/libavdevice.so.52.2.1
/usr/local/lib/libavfilter.so.1.38.1
/usr/local/lib/libavfilter.so.1
/usr/local/lib/libavcodec.so.52.87.0
/usr/local/lib/libavcore.so.0
/usr/local/lib/libavcore.so.0.6.0
/usr/local/lib/libavcodec.so.52
To make ffmpeg binary look in this directory for linked libraries,edit/etc/ld.so.conf and add this path:
Code:
include ld.so.conf.d/*.conf
/usr/local/libevent-1.4.14b/lib
/usr/local/lib
/usr/local/libevent-1.4.14b/lib
/usr/local/lib
Code:
# ldconfig
Now run ffmpeg again and it works:
Code:
# ffmpeg
FFmpeg version SVN-r24953, Copyright (c) 2000-2010 the FFmpegdevelopers
built on Aug 27 2010 12:52:01 with gcc 4.4.020090514 (Red Hat 4.4.0-6)
configuration: --cc=/usr/bin/gcc44--enable-libvorbis --enable-shared --enable-libmp3lame--enable-libfaac --enable-shared --enable-nonfree--disable-demuxer=v4l --disable-demuxer=v4l2 --disable-yasm
libavutil 50.24. 0 / 50.24. 0
libavcore 0. 6. 0 / 0. 6. 0
libavcodec 52.87. 0 / 52.87. 0
libavformat 52.78. 3 / 52.78. 3
libavdevice 52. 2. 1 / 52. 2. 1
libavfilter 1.38. 1 / 1.38. 1
libswscale 0.11. 0 / 0.11. 0
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfileoptions] outfile}...
Use -h to get full help or, even better, run 'man ffmpeg'
http://forum.ivorde.ro/ffmpeg-error-while-loading-shared-libraries-libavdevice-so-52-cannot-open-shared-object-file-no-t129.html
FFmpeg version SVN-r24953, Copyright (c) 2000-2010 the FFmpegdevelopers
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfileoptions] outfile}...
Use -h to get full help or, even better, run 'man ffmpeg'
http://forum.ivorde.ro/ffmpeg-error-while-loading-shared-libraries-libavdevice-so-52-cannot-open-shared-object-file-no-t129.html
0 0
- ffmpeg: error while loading shared libraries: libavdevice.so.52: cannot open shared object file: No
- ffmpeg: error while loading shared libraries: libavdevice.so.55: cannot open shared object file: No
- ffmpeg: error while loading shared libraries: libavdevice.so.57: cannot open shared object file: No
- error while loading shared libraries: libavdevice.so.57: cannot open shared object file: No
- ./ffmpeg: error while loading shared libraries: libx264.so.138: cannot open shared object file: No s
- error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file
- error while loading shared libraries: libXXX.so.x: cannot open shared object file: No such file
- error while loading shared libraries: libssl.so.4: cannot open shared object file: No such file.....
- error while loading shared libraries: libiw.so.29: cannot open shared object file: No such file
- error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file
- error while loading shared libraries: XXX.so: cannot open shared object file: No such file...
- jps: error while loading shared libraries: libjli.so: cannot open shared object file: No such file..
- error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file
- error while loading shared libraries: libcudart.so.6.5: cannot open shared object file: No such file
- Error: while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file
- error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file
- error while loading shared libraries: libcudart.so.8.0: cannot open shared object file: No such file
- error while loading shared libraries: libcudart.so.7.5: cannot open shared object file: No such file
- ubuntukylin下安装Xware Desktop(迅雷)
- 360公司2015年秋季校园招聘笔试考卷(技术类 D)部分试题程序验证和解析3
- 修改eclipse的背景颜色
- HDU 4123
- 织梦仿站系列教程第十四讲——特定栏目图片调用
- ffmpeg: error while loading shared libraries: libavdevice.so.52: cannot open shared object file: No
- java使用mongoDB和freemarker的注意事项
- Android framework回顾(2) sp 和 wp sp对象
- DedeCMS启用二级域名后,原网址跳转二级域名的解决办法
- android网络开源框架volley(五)——volley的一些细节
- 取石子游戏(杭电1527)
- android中popwindow的使用
- C基础 - 开发环境配置(1)
- 修改eclipse的背景颜色