今天有兴趣研究下ffmpeg安装:
在官网下载源码包
编译参数
#./configure --enable-shared
make && make install
./ffmpeg 报错了
#./ffmpeg: error while loading shared libraries: libavdevice.so.55: cannot open shared object file: No such file or direc
#find 查找这个库确定有的,那只能是系统没有加载的问题。
/usr/local/ffmpeg/lib/libavdevice.so.55
#/etc/ld.so.conf
/usr/local/ffmpeg/lib
#ldconfig
运行一切OK。