./ffmpeg: error while loading shared libraries: libx264.so.138: cannot open shared object file: No s
生活随笔
收集整理的這篇文章主要介紹了
./ffmpeg: error while loading shared libraries: libx264.so.138: cannot open shared object file: No s
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
在安裝ffmpeg時,執(zhí)行完
./configure--enable-libx264 --enable-gpl --disable-yasm --prefix=/usr/local/ffmpeg
make
都沒有錯誤
但是在向rtmp服務(wù)器推流的時候
./ffmpeg -re -i /media/jxs2.rmvb -vcodec libx264 -f flv"rtmp://192.168.5.200:1935/live/a2"
出現(xiàn)以下錯誤
./ffmpeg: error while loading shared libraries: libx264.so.138: cannot open shared object file: No such file or directory
解決方法:
1. 查看ld.so.conf文件
vi /etc/ld.so.conf
添加/usr/local/x264/lib,如下
include ld.so.conf.d/*.conf
/usr/local/x264/lib
wq退出ld.so.conf文件
2. 執(zhí)行?ldconfig
3. 重新推流,問題解決
總結(jié)
以上是生活随笔為你收集整理的./ffmpeg: error while loading shared libraries: libx264.so.138: cannot open shared object file: No s的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: ffmpeg 常用基本命令和ffmpeg
- 下一篇: Linux共享库路径配置