CentOS4.4实战ffmpeg、mencoder安装 不指定

root , 2007/08/21 23:14 , Linux , 评论(0) , 阅读(10902) , Via 本站原创 | |
安装lame
wget http://easynews.dl.sourceforge.net/sourceforge/lame/lame-398-2.tar.gz
tar zxvf lame-398-2.tar.gz
cd /usr/local/src/lame-398-2
make distclean
./configure
make clean
make
make install

一、安装ffmpeg
1、
tar -zxvf lame-3.97.tar.gz
lame-3.97
./configure --prefix=/usr --enable-shared
make && make install

2、
ls /usr/lib/libvorbis.a,不存再yum -y install libvorbis.a

3、
tar -zxvf xvidcore-1.1.0.tar.gz
cd xvidcore-1.1.0/build/generic/
./configure --prefix=/usr --enable-shared
make && make install
4、
tar -jxvf x264-snapshot-20070914-2245.tar.bz2
cd x264-snapshot-20070914-2245
./configure --prefix=/usr --enable-shared
make && make install

5、
tar -zxvf libdts-0.0.2.tar.tar
cd libdts-0.0.2
./configure --prefix=/usr --enable-shared
make && make install

6、
tar zxvf faad2-2.5.tar.gz
cd faad2
echo > plugins/Makefile.am
echo > plugins/xmms/src/Makefile.am
sed -i '/E_B/d' configure.in
autoreconf -vif
./configure --prefix=/usr
make && make install

7、
tar zxvf faac-1.25.tar.gz
cd faac
sed -i '/[2de].M/d' configure.in
echo "AC_OUTPUT(common/Makefile common/mp4v2/Makefile libfaac/Makefile frontend/Makefile include/Makefile Makefile)" >> configure.in
autoreconf -vif
./configure --prefix=/usr
make && make install

8、(这一步可以先不走,后面有一步会完毕这一步)
wget http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-510.zip
解压以后把里面的文件都拷贝到ffmpeg-checkout-2007-09-14/libavcodec/amrwb_float(需手工建)/
wget http://www.3gpp.org/ftp/Specs/archive/26_series/26.104/26104-510.zip
解压以后把里面的文件都拷贝到ffmpeg-checkout-2007-09-14/libavcodec/amr_float(需手工建)/

9、
-----------------
ERROR: liba52 not found
If you think configure made a mistake, make sure you are using the latest
version from SVN.  If the latest version fails, report the problem to the
ffmpeg-devel@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.err" produced by configure as this will help
solving the problem.
-----------------
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 --prefix=/usr --enable-a52 --enable-gpl
make && make install

10、
----------------
ERROR: libamrnb not found(会自动下载安装第八步的3gp支持)
If you think configure made a mistake, make sure you are using the latest
version from SVN.  If the latest version fails, report the problem to the
ffmpeg-devel@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.err" produced by configure as this will help
solving the problem.
----------------
wget http://ftp.penguin.cz/pub/users/utx/amr/amrnb-6.1.0.4.tar.bz2
tar -jxvf amrnb-6.1.0.4.tar.bz2
cd amrnb-6.1.0.4
./configure --prefix=/usr --enable-shared
make && make install

11、
---------------
ERROR: libamrwb not found(会自动下载安装第八步的3gp支持)
If you think configure made a mistake, make sure you are using the latest
version from SVN.  If the latest version fails, report the problem to the
ffmpeg-devel@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.err" produced by configure as this will help
solving the problem.
---------------
wget http://ftp.penguin.cz/pub/users/utx/amr/amrwb-7.0.0.1.tar.bz2
./configure --prefix=/usr --enable-shared
make && make install

12、
./configure --prefix=/usr/local --enable-gpl --enable-shared --enable-libmp3lame --enable-libamr_nb --enable-libamr_wb --enable-libogg --enable-libvorbis --enable-libxvid --enable-liba52 --enable-liba52bin --enable-libfaadbin --enable-pp --enable-libfaad --enable-libfaac --enable-libx264 --enable-pthreads --disable-ffserver --disable-ffplay
make && make install


输出信息:
[root@ffmpeg_mencoder]# cd ffmpeg-checkout-2007-09-14/
[root@ffmpeg-checkout-2007-09-14]# ./configure --prefix=/usr/local --enable-gpl --enable-shared --enable-libmp3lame --enable-libamr_nb --enable-libamr_wb --enable-libogg --enable-libvorbis --enable-libxvid --enable-liba52 --enable-liba52bin --enable-libfaadbin --enable-pp --enable-libfaad --enable-libfaac --enable-libx264 --enable-pthreads --disable-ffserver --disable-ffplay

install prefix            /usr/local
source path               /root/ffmpeg_mencoder/ffmpeg-checkout-2007-09-14
C compiler                gcc
make                      make
.align is power-of-two    no
ARCH                      x86_32 (generic)
big-endian                no
MMX enabled               yes
CMOV enabled              no
CMOV is fast              no
EBX available             yes
EBP available             no
gprof enabled             no
debug symbols             yes
strip symbols             yes
optimize                  yes
static                    yes
shared                    yes
postprocessing support    yes
software scaler enabled   no
video hooking             yes
Imlib2 support            no
FreeType support          no
network support           yes
IPv6 support              yes
threading support         pthreads
SDL support               no
Sun medialib support      no
AVISynth enabled          no
liba52 support            yes
liba52 dlopened           yes
libamr-nb support         yes
libamr-wb support         yes
libdc1394 support         no
libfaac enabled           yes
libfaad enabled           yes
libfaad dlopened          yes
libgsm enabled            no
libmp3lame enabled        yes
libnut enabled            no
libogg enabled            yes
libtheora enabled         no
libvorbis enabled         yes
x264 enabled              yes
XviD enabled              yes
zlib enabled              yes
License: GPL
Creating config.mak and config.h...


二、安装mencoder

wget http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc1.tar.bz2
wget http://www.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2

1、
tar vxjf essential-20061022.tar.bz2
sudo mkdir -p /usr/lib/codecs
sudo cp -rf essential-20061022/* /usr/lib/codecs;

2、
tar -jxvf MPlayer-1.0rc1.tar.bz2
cd MPlayer-1.0rc1
./configure --prefix=/usr/local --enable-largefiles  --enable-png --enable-jpeg --language=zh_CN --with-codecsdir=/usr/lib/codecs/
make && make install

//加上--enable-gif make的时候出错。

参考:
http://hi.baidu.com/weiqi228/blog/item/268dee13cc585c21dd54012f.html
http://bbs.w3china.org/blog/more.asp?name=lhwork&id=22626
Tags: ,
发表评论

昵称

网址

电邮

打开HTML 打开UBB 打开表情 隐藏 记住我 [登入] [注册]