再次configure
[root@test generic]# ./configure --prefix=/usr
# make
---------------------------------------------------------------
---------------------------------------------------------------
# make install
x264的获取
# wget ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20080522-2245.tar.bz2
# tar -xjvf x264-snapshot-20080522-2245.tar.bz2
# cd x264-snapshot-20080522-2245
# ./configure --prefix=/usr --enable-shared
No suitable assembler found.
Please install 'yasm' to get MMX/SSE optimized code.
./version.sh: line 2: git-rev-list: command not found
Platform:
System:
avis input: no
mp4 output: no
pthread:
gtk:
debug:
gprof:
PIC:
shared:
visualize:
You can run 'make' or 'make fprofiled' now.
# make
# make install
install -d /usr/bin /usr/include
install -d /usr/lib /usr/lib/pkgconfig
install -m 644 x264.h /usr/include
install -m 644 libx264.a /usr/lib
install -m 644 x264.pc /usr/lib/pkgconfig
install x264 /usr/bin
ranlib /usr/lib/libx264.a
ln -sf libx264.so.59 /usr/lib/libx264.so
install -m 755 libx264.so.59 /usr/lib
安装mencoder需要的codecs:
http://www1.mplayerhq.hu/MPlayer/releases/codecs
[root@test ~]# wget http://www1.mplayerhq.hu/MPlayer/releases/codecs/mplayer-codecs-20061022-1.i386.rpm
[root@test ~]# rpm -ivh mplayer-codecs-20061022-1.i386.rpm
warning: mplayer-codecs-20061022-1.i386.rpm: Header V3 DSA signature: NOKEY, key ID b6d6aef5
Preparing...
[root@test lib]# rpm -qa|grep codecs
mplayer-codecs-20061022-1
可以whereis codecs
[root@test lib]# /usr/lib/codecs/
atrc.so.6.0
cook.so
安装到usr/lib/codecs
下面安装mplayer/mencoder:
http://www.mplayerhq.hu/design7/dload.html
Downloading MPlayer from Subversion
You can also get MPlayer via Subversion. Issue the following command to get the latest sources:
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
A directory named mplayer will be created in the current directory
[root@test ~]# svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
有些慢不如直接下载tar.bz2的包
http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc2.tar.bz2
# tar -xjvf MPlayer-1.0rc2.tar.bz2
# cd MPlayer-1.0rc2
[root@test MPlayer-1.0rc2]# ./configure --prefix=/usr/local --enable-gui --enable-largefiles
[root@test MPlayer-1.0rc2]# make
[root@test MPlayer-1.0rc2]# make install
[root@test MPlayer-1.0rc2]# whereis mplayer
mplayer: /usr/local/bin/mplayer /usr/local/etc/mplayer
[root@test MPlayer-1.0rc2]# whereis mencoder
mencoder: /usr/local/bin/mencoder
# /usr/local/bin/mencoder endless_love_I.avi -o avi.flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=150:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -srate 22050
测试将62M的endless_love_I.avi压成了11M 的avi.flv
说明:configure-Mplayer时提示
Checking for LIVE555 Streaming Media libraries ... no
#可以参考http://cmuch.com/article.asp?id=168
#LIVE555 provides additional support for RTP/RTCP/RTSP/SIP multimedia streaming in MPlayer. This is useful if you plan to use #the MPlayer-plugin for Mozilla/FireFox. (Note: Prior to Nov 2005, LIVE555 was known as LIVE.COM)
#Latest Release: 2006.12.18 (updated frequently)
#Download: http://www.live555.com/liveMedia/public/
关于mencoder的参数自己不晓得。都是网上看到的 参考文章如下:
http://wf.xplore.cn/read.php/90.htm
http://www.jcwcn.com/html/geshizh/14_12_25_632.html
http://www.lupaworld.com/bbs/redirect.php?fid=253&tid=5477&goto=nextnewset
http://su27.org/2007/06/12/ffmpeg-mencoder/
http://blog.verycd.com/dash/showentry=35982
http://blog.5ilinux.com/archives/2006/08/ffmpeg.html
http://cmuch.com/article.asp?id=168