红联Linux门户
Linux帮助

FC5下MPlayer安装指引

发布时间:2006-11-19 09:49:46来源:红联作者:fitness
一、解决依赖关系

1、DivX
下载:http://download.divx.com/divx/divx4linux-std-20030428.tar.gz
安装:
[root@charon mm]# gunzip -c divx4linux-std-20030428.tar.gz | tar xvf -
[root@charon mm]# cd divx4linux-20030428
[root@charon divx4linux-20030428]# ./install.sh

2、Lame(播放mp3)
下载:http://lame.sourceforge.net/download/download.html
安装:
[root@charon mm]# gunzip -c lame-3.96.1.tar.gz | tar xvf -
[root@charon mm]# cd lame-3.96.1
[root@charon lame-3.96.1]# ./configure --prefix=/usr
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
-- LOTS OF CHECKS... --
config.status: creating mac/Makefile
config.status: creating config.h
config.status: executing default-1 commands
[root@charon lame-3.96.1]# make
-- COMPILING... --
[root@charon lame-3.96.1]# make install

3、XviD
下载:
http://downloads.xvid.org/downloads/
http://www.xvid.org/downloads.html
安装:
[root@charon mm]# bzip2 -cd xvidcore-1.1.0.tar.bz2 | tar xvf -
[root@charon mm]# cd xvidcore-1.1.0/build/generic/
[root@charon generic]# ./configure
... Configuring ...
[root@charon generic]# make
... Compiling ...
[root@charon generic]# make install

4、RealPlayer
下载:http://www.real.com/linux/
安装:
[root@charon fc5]# rpm -q HelixPlayer
[root@charon fc5]# rpm -e HelixPlayer
[root@charon fc5]# rpm -ivh RealPlayer10GOLD.rpm
不过要先安装:
[root@charon fc5]# yum install compat-libstdc++-33 compat-libstdc++-296
或在第3张盘找:compat-libstdc++-33

5、LIVE555 Streaming 支持(RTP/RTCP/RTSP/SIP )
下载:
http://www.live555.com/liveMedia/public/
安装:
[root@charon mm]# gunzip -c live555-latest.tar.gz | tar xvf -
[root@charon mm]# cd live
[root@charon live]# ./genMakefiles linux
[root@charon live]# make
[root@charon live]# cd ..
[root@charon mm]# cp -a live /usr/local/lib/live

注意已安装gcc3.2,再make
[root@charon fc5]# yum install compat-gcc-32 compat-gcc-32-c++
[root@charon live]# make CPLUSPLUS_COMPILER=g++32

更详细的说明:
http://www.mjmwired.net/linux/20 ... lternate-compilers/

二、安装MPlayer

下载:
src: MPlayer-1.0pre7try2.tar.bz2

skin: Blue-1.5.tar.bz2 (pick ANY)

codecs: all-20050412.tar.bz2

http://www.mplayerhq.hu/homepage/dload.html
http://www.mplayerhq.hu/homepage/design7/codecs.html

安装:
[root@charon mm]# mkdir /usr/local/lib/codecs/
[root@charon mm]#
[root@charon mm]# bzip2 -cd all-20050412.tar.bz2 | tar xvf -
[root@charon mm]# cp all-20050412/* /usr/local/lib/codecs/

注意如果把 codecs 放在/usr/lib/win32可以与XINE共享
[root@charon mm]# ln -s /usr/local/lib/codecs /usr/lib/win32

[root@charon mm]# ln -s /usr/lib/win32 /usr/local/lib/codecs

接着:
[root@charon mm]# bzip2 -cd MPlayer-1.0pre7try2.tar.bz2 | tar xvf -
[root@charon mm]# cd MPlayer-1.0pre7try2/
[root@charon MPlayer-1.0pre7try2]# ./configure --help
[root@charon MPlayer-1.0pre7try2]# ./configure --enable-gui --enable-largefiles --enable-menu --prefix=/ --cc=gcc32
确认已安装:
gtk+ 1.2
glib 1.2
和他们的devel
这里可以找到:
http://download.fedora.redhat.co ... 386/os/Fedora/RPMS/
或光盘
成功的提示:
Config files successfully generated by ./configure !

Install prefix: /usr
Data directory: /usr/share/mplayer
Config direct.: /etc/mplayer

Byte order: little-endian
Optimizing for: athlon-4 mmx mmx2 3dnow 3dnowex sse mtrr

Languages:
Messages/GUI: en
Manual pages: en

Enabled optional drivers:
Input: ftp network edl tv live.com matroska mpdvdkit2 vcd dvb smb
Codecs: qtx xvid libavcodec real dshow/dmo win32 faad2(internal) libmpeg2 liba52 mp3lib tremor(internal)
Audio output: alsa esd arts oss sdl mpegpes(dvb)
Video output: xvidix cvidix sdl vesa md5sum pnm jpeg png mpegpes(dvb) opengl dga xv x11 xover tga
Audio filters:
Disabled optional drivers:
Input: vstream tv-v4l2 tv-v4l tv-bsdbt848 cdda dvdread
Codecs: opendivx x264 libdv amr_wb amr_nb xanim libdts libtheora toolame lib mad liblzo gif
Audio output: sgi sun jack polyp dxr2 nas dsound win32 macosx
Video output: winvidix bl zr zr2 dxr3 dxr2 directx gif89a fbdev svga caca aa ggi xmga mga xvmc directfb tdfx_vid tdfxfb 3dfx quartz
Audio filters: ladspa

接续安装:

[root@charon MPlayer-1.0pre7try2]# make
[root@charon MPlayer-1.0pre7try2]# make install

安装皮肤和字体:
下载字体放到:/usr/share/mplayer/font/
http://www.mplayerhq.hu/homepage/dload.html

下载皮肤放到:/usr/share/mplayer/Skin/
http://www.mplayerhq.hu/homepage/dload.html

确认有如下字体:xorg-x11-fonts-truetype
安装方法:
下载
http://www.mjmwired.net/resource ... ts-1.3-4.noarch.rpm
[root@charon fc5]# rpm -ivh msttcorefonts-1.3-4.noarch.rpm
[root@charon fc5]# /etc/init.d/xfs restart
之前要安装好,再往下走
[user@charon user]# mkdir ~/.mplayer/
[user@charon user]# ln -s /usr/share/X11/fonts/TTF ~/.mplayer/subfont.ttf

安装皮肤:
[root@charon mm]# bzip2 -cd Blue-1.5.tar.bz2 | tar xvf - -C /usr/share/mplayer/Skin/
[root@charon mm]# mv /usr/share/mplayer/Skin/Blue/ /usr/share/mplayer/Skin/default/

同样可以安装其他皮肤:
[root@charon mm]# bzip2 -cd Blue-1.5.tar.bz2 | tar xvf - -C /usr/share/mplayer/Skin/
[root@charon mm]# bzip2 -cd proton-1.2.tar.bz2 | tar xvf - -C /usr/share/mplayer/Skin/
[root@charon mm]# bzip2 -cd hwswskin-1.1.tar.bz2 | tar xvf - -C /usr/share/mplayer/Skin/
设置默认:
[root@charon mm]# cd /usr/share/mplayer/Skin/
[root@charon Skin]# ln -s Blue default
以上基本完成,介绍几个备用命令:

卸载软件:
[root@charon MPlayer-1.0pre7try2]# make uninstall
使用软件:
[mirandam@charon media]$ mplayer ipod-vertigo_m480.mov
[mirandam@charon media]$ gmplayer sarah_mclachlan-world_on_fire.mov
建立快捷键:
进入桌面:
Select Create Launcher
Enter: "MPlayer" for Name
Enter: "/usr/bin/gmplayer" for Command
For Icon select /usr/share/pixmaps/mplayer-desktop.xpm
文章评论

共有 0 条评论