Ubuntu下编译安装FFmpeg

从官网下载最新版的FFmpeg:http://www.ffmpeg.org/download.html

目前最新版为ffmpeg v0.6.1

终端下依次运行以下命令:

1
2
3
4
5
#tar zxvf ffmpeg-0.6.1.tar.gz
#cd ffmpeg-0.6.1
#./configure --prefix=/usr/local --enable-memalign-hack --enable-shared
#make
#make install

安装完成,运行ffmepg,提示以下错误信息:

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

解决方法是用vi编辑/etc/ld.so.conf文件,末尾增加以下代码

1
/usr/local/lib

保存后,运行以下命令

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
# ldconfig
# ffmpeg -version
FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers
built on Nov 23 2010 04:50:57 with gcc 4.4.5
configuration: --prefix=/usr/local --enable-memalign-hack --enable-shared
libavutil 50.15. 1 / 50.15. 1
libavcodec 52.72. 2 / 52.72. 2
libavformat 52.64. 2 / 52.64. 2
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0.11. 0 / 0.11. 0
FFmpeg 0.6.1
libavutil 50.15. 1 / 50.15. 1
libavcodec 52.72. 2 / 52.72. 2
libavformat 52.64. 2 / 52.64. 2
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0.11. 0 / 0.11. 0

参考资料:

1.FFMEPG 安装

2.Ffmpeg快速安装

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值