红联Linux门户
Linux帮助

Fedora9下安装mplayer成功

发布时间:2008-05-23 10:23:07来源:红联作者:lixingemail
Fedora9下安装mplayer
下载下列四个文件放到/root/download/mplayer/下
MPlayer-1.0rc2.tar 下载:http://www.mplayerhq.hu/MPlayer/releases/

编解码codecs:all-20071007.tar.bz2、windows-all-20071007.zip 下载:http://www.mplayerhq.hu/MPlayer/releases/codecs/

皮肤:Blue-1.7.tar.bz2 下载:http://www.mplayerhq.hu/MPlayer/skins/


安装codecs:
#mkdir /usr/lib/wincodecs/
#mkdir /usr/lib/codecs/
#cd /root/download/mplayer/
#tar vjxf all-20071007.tar.bz2
#mv all-20071007/* /usr/lib/codecs/
#chmod 644 /usr/lib/codecs/*
#chown root.root /usr/lib/codecs/*

#unzip windows-all-20071007.zip
#mv windows-all-20071007/* /usr/lib/wincodecs
#chmod 644 /usr/lib/wincodes/*
#chown root.root /usr/lib/wincodecs/*

安装mplayer:

#cd /root/download/mplayer/
#tar vjxf MPlayer-1.0rc2.tar.ba2
#cd MPlayer-1.0rc2
#./configure --enable-gui --win32codecsdir=/usr/lib/win32 --codecsdir=/usr/lib/codecs --language=zh_CN
(不要用--prefix=/usr/local/mplayer等,我用了后mplayer安装出错
#make
#make install

安装皮肤
复制皮肤到/usr/local/share/mplayer/skins/default下
#cd /root/download/mplayer/
#tar vjxf Blue-1.7.tar.bz2
#mv Blue /usr/local/share/mplayer/skins/default

安装字体
如 XP系统windows目录下Font文件夹中 simhei.ttf 放到/home/<你的用户名>/.mplayer 下(root用户放到/root/.mplayer下)并且改名为subfont.ttf .
以root账户为例:
mkdir /root/.mplayer
cp /root/simsun.ttf /root/.mplayer/
改名:
mv /root/.mplayer/simsun.ttf /root/.mplayer/subfont.ttf

运行
图形模式:
#gmplayer
文本:
#mplayer
文章评论

共有 9 条评论

  1. 李彪 于 2008-08-09 18:14:42发表:


    对Linux真是爱恨交加阿。
    我就随便装了一个Audacious ,能用就 可以了 ,以后慢慢摸索咯。

  2. chiww 于 2008-07-17 01:24:23发表:

    难道要回复才能够看?

  3. hbshlhy 于 2008-06-04 15:46:56发表:

    谢谢呀,真是高兴死了,我的fefora 终于可以放音乐了。。。

  4. gulch 于 2008-06-03 19:49:42发表:

    好复杂,我安英文指引装的

    再稍为修改就可以了
    #mplayer
    sudo gedit /etc/mplayer/mplayer.conf
    fontconfig=no
    mv *.ttf ~/.mplayer/subfont.ttf
    [AO_ALSA] Unable to find simple control 'PCM',0.
    Run gmplayer, Right-Click, goto Preferences > Audio > Available drivers:, Select pulse
    cp936

  5. ljaiii1988 于 2008-06-03 10:12:54发表:

    :0wmjh(1 谢谢楼主

  6. guixiaolan 于 2008-05-23 13:39:09发表:

    windows-all-20071007.zip没有必要安装,win32跟codecs是一样的

  7. yourfriend 于 2008-05-23 11:47:40发表:

    需要一个叫libavcodec的东西来支持图形界面

    到rpm.pbone.net找找

  8. hqg250 于 2008-05-23 11:22:10发表:

    [root@localhost MPlayer-1.0rc2]# ./configure --enable-gui --win32codecsdir=/usr/lib/win32 --codecsdir=/usr/lib/codecs --language=zh_CN
    Detected operating system: Linux
    Detected host architecture: i386
    Checking for cc version ... 4.3.0, ok
    Checking for host cc ... cc
    Checking for cross compilation ... no
    Checking for CPU vendor ... GenuineIntel (6:13:8)
    Checking for CPU type ... Intel(R) Pentium(R) M processor 1.73GHz
    Checking for kernel support of mmx ... yes
    Checking for kernel support of mmxext ... yes
    Checking for kernel support of sse ... yes
    Checking for kernel support of sse2 ... yes
    Checking for kernel support of cmov ... yes
    Checking for mtrr support ... yes
    Checking for GCC & CPU optimization abilities ... native
    Checking for assembler support of -pipe option ... yes
    Checking for compiler support of named assembler arguments ... yes
    Checking for assembler (as 2.18.50.0.6) ... ok
    Checking for .align is a power of two ... no
    Checking for Linux kernel version ... 2.6.25.3-18.fc9.i686, ok
    Checking for -lposix ... no
    Checking for -lm ... yes
    Checking for langinfo ... yes
    Checking for language ... using zh_CN (man pages: en )
    Checking for enable sighandler ... yes
    Checking for runtime cpudetection ... no
    Checking for restrict keyword ... __restrict
    Checking for __builtin_expect ... yes
    Checking for kstat ... no
    Checking for posix4 ... no
    Checking for lrintf ... yes
    Checking for mkstemp ... yes
    Checking for nanosleep ... yes
    Checking for socklib ... yes
    Checking for inet_pton() ... yes (using )
    Checking for network ... yes
    Checking for inttypes.h (required) ... yes
    Checking for int_fastXY_t in inttypes.h ... yes
    Checking for word size ... 32
    Checking for malloc.h ... yes
    Checking for memalign() ... yes
    Checking for alloca.h ... yes
    Checking for mman.h ... yes
    Checking for dynamic loader ... yes
    Checking for dynamic a/v plugins support ... no
    Checking for pthread ... yes (using -lpthread)
    Checking for w32threads ... no (using pthread instead)
    Checking for rpath ... no
    Checking for iconv ... yes
    Checking for soundcard.h ... yes (sys/soundcard.h)
    Checking for sys/dvdio.h ... no
    Checking for sys/cdio.h ... no
    Checking for linux/cdrom.h ... yes
    Checking for dvd.h ... no
    Checking for termcap ... no
    Checking for termios ... yes (sys/termios.h)
    Checking for shm ... yes
    Checking for strsep() ... yes
    Checking for vsscanf() ... yes
    Checking for swab() ... yes
    Checking for POSIX select() ... yes
    Checking for gettimeofday() ... yes
    Checking for glob() ... yes
    Checking for setenv() ... yes
    Checking for sys/sysinfo.h ... yes
    Checking for pkg-config ... yes
    Checking for Samba support (libsmbclient) ... no
    Checking for tdfxfb ... no
    Checking for s3fb ... no
    Checking for tdfxvid ... no
    Checking for xvr100 ... no
    Checking for tga ... yes
    Checking for md5sum support ... yes
    Checking for bl ... no
    Checking for DirectFB ... no
    Checking for X11 headers presence ... no (check if the dev(el) packages are installed)
    Checking for X11 ... no (check if the dev(el) packages are installed)
    Checking for DPMS ... no
    Checking for Xv ... no
    Checking for XvMC ... no
    Checking for Xinerama ... no
    Checking for Xxf86vm ... no
    Checking for XF86keysym ... no
    Checking for DGA ... no
    Checking for 3dfx ... no
    Checking for OpenGL ... no
    Checking for VIDIX ... yes (internal)
    Checking for /dev/mga_vid ... no
    Checking for xmga ... no
    Checking for GGI ... no
    Checking for GGI extension: libggiwmh ... no
    Checking for AA ... no
    Checking for CACA ... no
    Checking for SVGAlib ... no
    Checking for FBDev ... yes
    Checking for DVB ... no
    Checking for DVB HEAD ... yes
    Checking for zr ... no
    Checking for PNG support ... no
    Checking for JPEG support ... no
    Checking for PNM support ... yes
    Checking for GIF support ... no
    Checking for VESA support ... no
    Checking for SDL ... no
    Checking for NAS ... no
    Checking for DXR2 ... no
    Checking for DXR3/H+ ... no
    Checking for IVTV TV-Out ... no
    Checking for V4L2 MPEG Decoder ... yes
    Checking for OSS Audio ... yes
    Checking for aRts ... no
    Checking for EsounD ... no
    Checking for Polyp ... no
    Checking for JACK ... no
    Checking for OpenAL ... no
    Checking for ALSA audio ... no
    Checking for Sun audio ... no
    Checking for VCD support ... yes
    Checking for dvdread ... yes (internal)
    Checking for internal libdvdcss ... yes
    Checking for cdparanoia ... no
    Checking for libcdio ... no
    Checking for bitmap font support ... yes
    Checking for freetype >= 2.0.9 ... no
    Checking for fontconfig ... no (freetype support needed)
    Checking for SSA/ASS support ... no (FreeType support needed)
    Checking for fribidi with charsets ... no
    Checking for ENCA ... no
    Checking for zlib ... no
    Checking for RTC ... yes
    Checking for liblzo2 support ... no
    Checking for mad support ... no
    Checking for Twolame ... no
    Checking for Toolame ... no
    Checking for OggVorbis support ... yes (internal Tremor)
    Checking for libspeex (version >= 1.1 required) ... no
    Checking for OggTheora support ... no
    Checking for internal mp3lib support ... yes
    Checking for internal liba52 support ... yes
    Checking for libdca support ... no
    Checking for internal libmpeg2 support ... yes
    Checking for libmpcdec (musepack, version >= 1.2.1 required) ... no
    Checking for FAAC (AAC encoder) support ... no (in libavcodec: )
    Checking for FAAD2 (AAC) support ... yes (internal floating-point)
    Checking for LADSPA plugin support ... no
    Checking for Win32 codecs ... yes (using /usr/lib/win32)
    Checking for XAnim codecs ... yes (using /usr/lib/codecs)
    Checking for RealPlayer codecs ... yes (using /usr/lib/codecs)
    Checking for QuickTime codecs ... yes
    Checking for Nemesi Streaming Media libraries ... no
    Checking for LIVE555 Streaming Media libraries ... no
    Checking for FFmpeg libavutil ... yes (static)
    Checking for FFmpeg libavcodec ... yes (static)
    Checking for FFmpeg libavformat ... yes (static)
    Checking for FFmpeg libpostproc ... yes (static)
    Checking for libamr narrowband ... no
    Checking for libamr wideband ... no
    Checking for libdv-0.9.5+ ... no
    Checking for XviD ... no
    Checking for x264 ... no (in libavcodec: no)
    Checking for libnut ... no
    Checking for libmp3lame (for mencoder) ... no
    Checking for mencoder ... yes
    Checking for fastmemcpy ... yes
    Checking for UniquE RAR File Library ... yes
    Checking for TV interface ... yes
    Checking for Video 4 Linux TV interface ... yes
    Checking for Video 4 Linux 2 TV interface ... yes
    Checking for TV teletext interface ... no
    Checking for Radio interface ... no
    Checking for Capture for Radio interface ... no
    Checking for Video 4 Linux 2 Radio interface ... no
    Checking for Video 4 Linux Radio interface ... no
    Checking for Video 4 Linux 2 MPEG PVR interface ... yes
    Checking for audio select() ... yes
    Checking for ftp ... yes
    Checking for vstream client ... no
    Checking for byte order ... little-endian
    Checking for OSD menu ... no
    Checking for Subtitles sorting ... yes
    Checking for XMMS inputplugin support ... no
    Checking for inet6 ... yes
    Checking for gethostbyname2 ... yes
    Checking for GUI ... yes

    Error: The GUI requires libavcodec with PNG support (needs zlib).

    Check "configure.log" if you do not understand why it failed.

    出现这个情况,是为啥?

  9. xiaolin3325 于 2008-05-23 10:26:43发表:

    Congratulations!!!