LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1276|回复: 9

安装mplayer很简单

[复制链接]
发表于 2007-12-26 21:10:29 | 显示全部楼层 |阅读模式
安装livna 源
#rpm -ivh http://rpm.livna.org/livna-release-8.rpm

安装 mplayer
#yum install mplayer mplayer-gui mplayer-fonts mplayerplug-in mencoder compat-libstdc++-33

安装 codecs
http://www.mplayerhq.hu/MPlayer/releases/codecs/ 下载 all-20071007.tar.bz2
#mkdir -p /usr/lib/codecs
#tar -jxvf all-20071007.tar.bz2 --strip-components 1 -C /usr/lib/codecs/

解决RMVB解码文件与selinux类型与调用类型不一致。
#chcon -t textrel_shlib_t /usr/lib/codecs/drvc.so
#chcon -t textrel_shlib_t /usr/lib/codecs/drv2.so.6.0
#chcon -t textrel_shlib_t /usr/lib/codecs/drv3.so.6.0
#chcon -t textrel_shlib_t /usr/lib/codecs/drv4.so.6.0

使mplayerplug-in (mozilla插件) 生效
#/usr/bin/mozilla-plugin-config -i -f

mplayer-1.0rc2无法播放中文名文件
修改/usr/share/applications/livna-mplayer.desktop中,将exec=gmplayer %U改为gmplayer %f即可。

mplayer的audio问题
[AO_ALSA] Unable to find simple control 'PCM',0.
把audio输出设置为pulse或其他

这样应该没什么问题了
发表于 2007-12-26 22:47:16 | 显示全部楼层
[root@YEDADA MPlayer-1.0rc2]# ./configure --enable-gui --enable-largefiles --enable-menu --prefix=/usr --confdir=/etc/mplayer --cc=gcc32
Detected operating system: Linux
Detected host architecture: i386
Checking for gcc32 version ... not found
Checking for gcc version ... 4.1.2, ok
Checking for host cc ... gcc
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 ... pentium-m
Checking for assembler support of -pipe option ... yes
Checking for compiler support of named assembler arguments ... yes
Checking for assembler (as 2.17.50.0.18) ... ok
Checking for .align is a power of two ... no
Checking for Linux kernel version ... 2.6.23.1-42.fc8, ok
Checking for -lposix ... no
Checking for -lm ... yes
Checking for langinfo ... yes
Checking for language ... using en (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 ... yes (using -lncurses)
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 ... yes
Checking for X11 ... yes
Checking for DPMS ... yes (using Xdpms 4)
Checking for Xv ... yes
Checking for XvMC ... no
Checking for Xinerama ... yes
Checking for Xxf86vm ... yes
Checking for XF86keysym ... yes
Checking for DGA ... yes (using DGA 2.0)
Checking for 3dfx ... no
Checking for OpenGL ... yes
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 ... yes
Checking for JPEG support ... yes
Checking for PNM support ... yes
Checking for GIF support ... yes
Checking for broken giflib workaround ... disabled
Checking for VESA support ... no
Checking for SDL ... yes (using sdl-config)
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 ... yes
Checking for EsounD ... yes
Checking for esd_get_latency() ... yes
Checking for Polyp ... no
Checking for JACK ... no
Checking for OpenAL ... no
Checking for ALSA audio ... yes (using alsa 1.0.x and alsa/asoundlib.h)
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 ... yes
Checking for fontconfig ... yes
Checking for SSA/ASS support ... yes
Checking for fribidi with charsets ... no
Checking for ENCA ... no
Checking for zlib ... yes
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/codecs)
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 ... yes
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 ... yes
Checking for Subtitles sorting ... yes
Checking for XMMS inputplugin support ... no
Checking for inet6 ... yes
Checking for gethostbyname2 ... yes
Checking for GUI ... yes
Checking for XShape extension ... yes
Checking for GTK+ version ... 2.12.1
Checking for glib version ... 2.14.2
Checking for automatic gdb attach ... no
Checking for compiler support for noexecstack ... yes
Checking for joystick ... no
Checking for lirc ... no
Checking for lircc ... no
Checking for color console output ... no
Checking for DVD support (libdvdnav) ... no
Creating config.mak
Creating config.h

Config files successfully generated by ./configure --enable-gui --enable-largefiles --enable-menu --prefix=/usr --confdir=/etc/mplayer --cc=gcc32 !

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

  Byte order: little-endian
  Optimizing for: pentium-m

  Languages:
    Messages/GUI: en
    Manual pages: en  

  Enabled optional drivers:
    Input: ftp pvr tv-teletext tv-v4l2 tv-v4l tv libdvdcss(internal) dvdread(internal) vcd dvb network
    Codecs: libavcodec qtx real xanim win32 faad2 libmpeg2 liba52 mp3lib tremor(internal) gif
    Audio output: alsa esd arts oss v4l2 sdl mpegpes(dvb)
    Video output: v4l2 sdl gif89a pnm jpeg png mpegpes(dvb) fbdev xvidix cvidix opengl dga xv x11 xover md5sum tga
    Audio filters:
  Disabled optional drivers:
    Input: dvdnav vstream radio live555 nemesi cddb cdda smb
    Codecs: x264 xvid libdv libamr_wb libamr_nb faac musepack libdca libtheora speex toolame twolame libmad liblzo
    Audio output: sun openal jack polyp ivtv dxr2 nas
    Video output: ivtv dxr3 dxr2 vesa zr zr2 svga caca aa ggi xmga mga winvidix 3dfx xvmc dfbmga directfb bl xvr100 tdfx_vid s3fb tdfxfb
    Audio filters: ladspa

'config.h' and 'config.mak' contain your configuration options.
Note: If you alter theses files (for instance CFLAGS) MPlayer may no longer
      compile *** DO NOT REPORT BUGS if you tweak these files ***

'make' will now compile MPlayer and 'make install' will install it.
Note: On non-Linux systems you might need to use 'gmake' instead of 'make'.

Please check mtrr settings at /proc/mtrr (see DOCS/HTML/en/video.html#mtrr)

Check configure.log if you wonder why an autodetection failed (make sure
development headers/packages are installed).

NOTE: The --enable-* parameters unconditionally force options on, completely
skipping autodetection. This behavior is unlike what you may be used to from
autoconf-based configure scripts that can decide to override you. This greater
level of control comes at a price. You may have to provide the correct compiler
and linker flags yourself.
If you used one of these options (except --enable-gui and similar ones that
turn on internal features) and experience a compilation or linking failure,
make sure you have passed the necessary compiler/linker flags to configure.

If you suspect a bug, please read DOCS/HTML/en/bugreports.html.
回复 支持 反对

使用道具 举报

发表于 2007-12-26 22:51:45 | 显示全部楼层
请问楼主看出来了我这个是什么问题了么?我是FC8的 下的最新的MPLAYER GCC我强制到了3.2不过好像没有 可否帮我看一下我是下载安装的
不过看上面好像有很多东西都没有啊 怎么会事呢?我安装时是完全安装的 整个光盘里的东西全装了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-12-27 00:55:24 | 显示全部楼层
编译的问题,我不了解。抱歉。
回复 支持 反对

使用道具 举报

发表于 2007-12-27 11:28:59 | 显示全部楼层
现在编译mplayer为什么还要强制用gcc32呢 !看你的编译过程没有什么不妥!只是一些链接库文件没有而已!
回复 支持 反对

使用道具 举报

发表于 2007-12-27 11:48:43 | 显示全部楼层
Post by zhouyuhen;1800225
请问楼主看出来了我这个是什么问题了么?我是FC8的 下的最新的MPLAYER GCC我强制到了3.2不过好像没有 可否帮我看一下我是下载安装的
不过看上面好像有很多东西都没有啊 怎么会事呢?我安装时是完全安装的 整个光盘里的东西全装了


抛开你用的GCC不谈,其余其实不算问题。
因为光盘本身并没有把所有的软件包都包括进去,所以即使你把整个安装盘里面的软件包都装上也一样会少很多东西。
至于你所谈到的少的那些东西其实对你编译安装Mplayer没有什么影响,编译安装以后Mplayer大部分时候照样可以正常使用。
另外,我觉得你的configure时候的选项并不很好。没有添加win32codec,没有添加essential的codec等等,最好把这些东西加上。
回复 支持 反对

使用道具 举报

发表于 2007-12-27 12:44:46 | 显示全部楼层
Post by deepwhite;1800350
抛开你用的GCC不谈,其余其实不算问题。
因为光盘本身并没有把所有的软件包都包括进去,所以即使你把整个安装盘里面的软件包都装上也一样会少很多东西。
至于你所谈到的少的那些东西其实对你编译安装Mplayer没有什么影响,编译安装以后Mplayer大部分时候照样可以正常使用。
另外,我觉得你的configure时候的选项并不很好。没有添加win32codec,没有添加essential的codec等等,最好把这些东西加上。


win32codec essential在安装之前已经搞定了的 还有一个问题就是我下载的RPM的REALPLAY10 用rpm -ivh xxxxxxx.rpm安装完成后不能启动 也不知道什么问题呢?
回复 支持 反对

使用道具 举报

发表于 2007-12-27 15:07:54 | 显示全部楼层
再终端启动realplayer看看出错信息,
回复 支持 反对

使用道具 举报

发表于 2007-12-27 22:54:58 | 显示全部楼层
mark
收藏了...
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-12-27 23:57:45 | 显示全部楼层
Post by zhouyuhen;1800364
还有一个问题就是我下载的RPM的REALPLAY10 用rpm -ivh xxxxxxx.rpm安装完成后不能启动 也不知道什么问题呢?


它需要这个 compat-libstdc++-33 。
其实你不需要安装REALPLAY,mplayer是全能播放器,应是LINUX下最好的。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表