FFMpeg安装

 

FFmpeg安装

svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg

./configure --enable-shared --disable-yasm --prefix=/usr/local/ffmpeg

make && make install

cd /usr/lib

ln -s /usr/local/ffmpeg/lib/* .

 

 

ffmpeg正常安装后执行ffmpeg时出现如下错误:

ffmpeg: error while loading shared libraries: libavdevice.so.52: cannot open shared object file: No such file or directory

解决办法:

vi /etc/ld.so.conf

加入:/usr/local/lib

执行ldconfig

 

获取MP3播放时间命令:

ffmpeg -i test.mp3 2>&1|grep Duration

or

ffprobe -show_format test.mp3|grep duration

参考资料:

http://www.linuxdiyf.com/viewarticle.php?id=104214

http://seaskys.iteye.com/blog/983341

http://hi.baidu.com/injava/blog/item/04580c4cbb32b1f9d72afcbb.html

http://www.oschina.net/code/snippet_220255_7784

http://iamcaihuafeng.blog.sohu.com/143419334.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值