ffmpeg安装步骤(linux)

 

软件需求:

http://www.pudn.com/downloads324/sourcecode/multimedia/streaming/detail1430584.html

http://www.pudn.com/downloads324/sourcecode/multimedia/streaming/detail1430582.html


wget http://www.tortall.net/projects/yasm/releases/yasm-0.8.0.tar.gz
wget http://downloads.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20090705-2245.tar.bz2
wget http://ftp.penguin.cz/pub/users/utx/amr/amrwb-7.0.0.3.tar.bz2
wget http://ftp.penguin.cz/pub/users/utx/amr/amrnb-7.0.0.2.tar.bz2
wget http://nchc.dl.sourceforge.net/sourceforge/faac/faad2-2.7.tar.bz2
wget http://nchc.dl.sourceforge.net/sourceforge/faac/faac-1.28.tar.bz2
wget http://downloads.xvid.org/downloads/xvidcore-1.2.1.tar.gz
wget http://debian.unnet.nl/pub/videolan/libdts/0.0.2/libdts-0.0.2.tar.gz

         http://down1.chinaunix.net/distfiles/libdts-0.0.2.tar.gz
wget http://jaist.dl.sourceforge.net/sourceforge/lame/lame-398-2.tar.gz

wget http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz

ffmpeg

http://download.chinaunix.net/download.php?id=5530&ResourceID=2990

 

 

 

1.yasm          
#wget http://www.tortall.net/projects/yasm/releases/yasm-0.8.0.tar.gz
# tar -zxvf yasm-0.8.0.tar.gz |cd -
# cd yasm-0.8.0
# ./configure
# make && make install

2.H.264code
# wget http://downloads.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20090705-2245.tar.bz2
# tar -jxvf x264-snapshot-20090705-2245.tar.bz2
# cd x264-snapshot-20090705-2245
# ./configure --enable-shared --prefix=/usr
# make && make install                          //如果yasm版本太低,编译时会报错,此文件需要git支持,如果configure找不到lib路径,需在/etc/ld.so.conf文件里加入/usr/local/lib, 之后执行ldconfig使其生效

3.amrwb          
# wget http://ftp.penguin.cz/pub/users/utx/amr/amrwb-7.0.0.3.tar.bz2
# tar -jxvf amrwb-7.0.0.3.tar.bz2
# cd amrwb-7.0.0.3
# ./configure && make && make install

4.amrnb
# wget http://ftp.penguin.cz/pub/users/utx/amr/amrnb-7.0.0.2.tar.bz2
# tar -jxvf amrnb-7.0.0.2.tar.bz2
# cd amrnb-7.0.0.2
# ./configure && make && make install

5.FAAD2
# wget http://nchc.dl.sourceforge.net/sourceforge/faac/faad2-2.7.tar.bz2
# cd faad2-2.7
# ./configure --enable-shared
# make && make install

6.FAAC
# wget http://nchc.dl.sourceforge.net/sourceforge/faac/faac-1.28.tar.bz2
# cd faac-1.28
# ./configure --enable-shared --with-mp4v2
# make && make install

7.XviD (DivX)
# wget http://downloads.xvid.org/downloads/xvidcore-1.2.1.tar.gz
# tar -zxvf xvidcore-1.2.1.tar.gz
# cd xvidcore/build/generic/
# ./configure
# make && make install

8.libdts


http://download.videolan.org/pub/videolan/libdca/0.0.2/libdca-0.0.2.tar.gz

# wget http://down1.chinaunix.net/distfiles/libdts-0.0.2.tar.gz
#  tar zxvf  libdts-0.0.2.tar.gz
# cd libdts-0.0.2
# ./configure --enable-shared
# make && make install

9.LAME (MP3encoder)
#  wget http://jaist.dl.sourceforge.net/sourceforge/lame/lame-398-2.tar.gz
# tar zxvf lame-398-2.tar.gz
# cd lame-398-2
# ./configure --enable-shared
# make && make install

10.a52

#  wget http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz

# tar zxvf a52dec-0.7.4.tar.gz

# cd a52dec-0.7.4

# ./configure --enable-shared
# make && make install


11.FFMPEG
# svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg

http://download.chinaunix.net/download.php?id=25235&ResourceID=2990

 

# tar jxvf ffmpeg-0.5.tar.bz2

# cd ffmpeg-0.5

# ./configure --prefix=/opt/ffmpeg --enable-shared --enable-gpl --enable-pthreads

#make clean
# make && make install

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值