LinuxSir.cn,穿越时空的Linuxsir!

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

困绕我一个月的问题 mplayer安装

[复制链接]
发表于 2006-4-1 23:32:38 | 显示全部楼层 |阅读模式
我在一个月前装拉mplayer 不知道怎么搞的当时可以放出mp3 和wma 还有很多都是播放不了,比如下面我播放rm格式的文件时就会出现
[zylinux@localhost porns]$ mplayer juedeui.rm

MPlayer 1.0pre5-3.2.3 (C) 2000-2004 MPlayer Team

CPU: Intel Pentium 4/Xeon/Celeron Foster 3296 MHz (Family: 8, Stepping: 9)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Reading config file /usr/local/etc/mplayer/mplayer.conf: 没有那个文件或目录
Reading config file /home/zylinux/.mplayer/config
Reading /home/zylinux/.mplayer/codecs.conf: Can't open '/home/zylinux/.mplayer/codecs.conf': 没有那个文件或目录
Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/codecs.conf': 没有那个文件或目录
Using built-in default codecs.conf.
font: can't open file: /home/zylinux/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Linux RTC init error in ioctl (rtc_irqp_set 1024): 权限不够
Try adding "echo 024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
Using usleep() timing
Can't open input config file /home/zylinux/.mplayer/input.conf: 没有那个文件或目录
Can't open input config file /usr/local/etc/mplayer/input.conf: 没有那个文件或目录
Falling back on default (hardcoded) input config

Playing juedeui.rm.
REAL file format detected.
======= WAVE Format =======
Format Tag: 28515 (0x6F63)
Channels: 1
Samplerate: 22050
avg byte/sec: 32115
Block align: 558
bits/sample: 16
cbSize: 18
Unknown extra header dump: [5d] [0] [10] [0] [7] [0] [2e] [2] [8] [0] [1] [0] [0] [2] [2] [0] [0] [18]
===========================
Not audio/video stream or unsupported!
VIDEO:  RV30 [30202002,010A9030]  320x240  (aspect 0.00)  30.00 fps
Clip info:
copyright: c2002
==========================================================================
Opening audio decoder: [realaud] RealAudio decoder
opening shared obj '/usr/local/lib/codecs/cook.so.6.0'
Error: /usr/local/lib/codecs/cook.so.6.0: 无法打开共享对象文件: 没有那个文件或目录
opening win32 dll 'cook.so.6.0'
Win32 LoadLibrary failed to load: cook.so.6.0, /usr/local/lib/codecs/cook.so.6.0, /usr/lib/win32/cook.so.6.0, /usr/local/lib/win32/cook.so.6.0
Error loading dll
ERROR: Could not open required DirectShow codec cook.so.6.0.
Read the RealAudio section of the DOCS!
ADecoder preinit failed
ADecoder init failed
Opening audio decoder: [realaud] RealAudio decoder
opening win32 dll 'cook3260.dll'
Win32 LoadLibrary failed to load: cook3260.dll, /usr/local/lib/codecs/cook3260.dll, /usr/lib/win32/cook3260.dll, /usr/local/lib/win32/cook3260.dll
Error loading dll
ERROR: Could not open required DirectShow codec cook3260.dll.
Read the RealAudio section of the DOCS!
ADecoder preinit failed
ADecoder init failed
Opening audio decoder: [realaud] RealAudio decoder
opening shared obj '/usr/local/lib/codecs/cook.shlb'
Error: /usr/local/lib/codecs/cook.shlb: 无法打开共享对象文件: 没有那个文件或目录opening win32 dll 'cook.shlb'
Win32 LoadLibrary failed to load: cook.shlb, /usr/local/lib/codecs/cook.shlb, /usr/lib/win32/cook.shlb, /usr/local/lib/win32/cook.shlb
Error loading dll
ERROR: Could not open required DirectShow codec cook.shlb.
Read the RealAudio section of the DOCS!
ADecoder preinit failed
ADecoder init failed
Cannot find codec for audio format 0x6B6F6F63.
Read DOCS/HTML/en/codecs.html!
==========================================================================
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
==========================================================================
Opening video decoder: [realvid] RealVideo decoder
opening shared obj '/usr/local/lib/codecs/drv3.so.6.0'
Error: /usr/local/lib/codecs/drv3.so.6.0: 无法打开共享对象文件: 没有那个文件或目录
opening win32 dll 'drv3.so.6.0'
Win32 LoadLibrary failed to load: drv3.so.6.0, /usr/local/lib/codecs/drv3.so.6.0, /usr/lib/win32/drv3.so.6.0, /usr/local/lib/win32/drv3.so.6.0
Error loading dll
ERROR: Could not open required DirectShow codec drv3.so.6.0.
Read the RealVideo section of the DOCS!
VDecoder init failed
Opening video decoder: [realvid] RealVideo decoder
opening win32 dll 'drv33260.dll'
Win32 LoadLibrary failed to load: drv33260.dll, /usr/local/lib/codecs/drv33260.dll, /usr/lib/win32/drv33260.dll, /usr/local/lib/win32/drv33260.dll
Error loading dll
ERROR: Could not open required DirectShow codec drv33260.dll.
Read the RealVideo section of the DOCS!
VDecoder init failed
Opening video decoder: [realvid] RealVideo decoder
opening shared obj '/usr/local/lib/codecs/drv3.shlb'
Error: /usr/local/lib/codecs/drv3.shlb: 无法打开共享对象文件: 没有那个文件或目录opening win32 dll 'drv3.shlb'
Win32 LoadLibrary failed to load: drv3.shlb, /usr/local/lib/codecs/drv3.shlb, /usr/lib/win32/drv3.shlb, /usr/local/lib/win32/drv3.shlb
Error loading dll
ERROR: Could not open required DirectShow codec drv3.shlb.
Read the RealVideo section of the DOCS!
VDecoder init failed
Cannot find codec matching selected -vo and video format 0x30335652.
Read DOCS/HTML/en/codecs.html!
==========================================================================

这几天我又在是着重新安装
我用的命令是
[zylinux@localhost MPlayer-1.0pre5]$ sudo ./configure -cc=gcc32 --with-reallibdir=/usr/lib/essential-20050412 --language=zh_CN
然后就出现拉下面这些提示错误信息


Adding untranslated messages to help_mp.h

Config files successfully generated by ./configure !

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

  Byte order: Little Endian
  Optimizing for: pentium4 mmx mmx2 sse sse2 mtrr

  Languages:
    Messages/GUI: zh_CN
    Manual pages: en (no localization selected, use --language=all)

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

'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/devices.html#mtrr)


Check configure.log if you wonder why an autodetection failed (check whether
the development headers/packages are installed).

If you suspect a bug, please read DOCS/HTML/en/bugreports.html.

还有我前两天学会拉yum的在线安装 我又装拉一编mplayer.i386 用的是yum -y的命令,最后也complete!拉,可是后来播放的时候还是很多都播放不了;
这样多次安装能不能覆盖原来的??
请高手指点 及及及及及及及!!!!!!!!!!!!!!!!!!!!!
发表于 2006-4-2 04:15:42 | 显示全部楼层
看log啊,其实第一个日志最主要的是不能找到codecs所以mplayer尝试在以下路径寻找,所以你只要将相应的解码器放置到寻找的路径就可以了

/usr/local/lib/codecs/cook3260.dll,
/usr/lib/win32/cook3260.dll,
/usr/local/lib/win32/cook3260.dll

如果需要的话再用chown更改用户组为root用chmod更改访问权限为644
chown -R root:root /usr/local/lib/codecs
chmod -R 644 /usr/local/lib/codecs

至于这个我也不知道怎么回事,也许你可以根据它的建议来设置,

Linux RTC init error in ioctl (rtc_irqp_set 1024): 权限不够
Try adding "echo 024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.

其它的我建议你阅读包里的安装文档罗,我记得从0.92还是哪个版本开始就使用--with-codecsdir=%{_libdir}/mplayer/codecs \来代替--with-reallibdir参数了,至于更新的版本是否支持就不清楚罗。论坛上的有些文档是有错误的比如支持real rtsp://协议之类的。

yum不知道你要的是否是RH发行版,如果是的话在mplayerhq.hu下载页面有提供一个RH系统包的链接,你可以尝试阅读一下他们的SPEC文件就能解决很多问题了。

还有我前两天学会拉yum的在线安装 我又装拉一编mplayer.i386 用的是yum -y的命令,最后也complete!拉,可是后来播放的时候还是很多都播放不了;
这样多次安装能不能覆盖原来的??
请高手指点 及及及及及及及!!!!!!!!!!!!!!!!!!!!!

至于这个吗,关键还是取决于打包的人的设定,比如像你那样./configure的话,就默认在/usr/local/lib里寻找解码器,而我可能将其置于/usr/lib/mplayer/codecs里,这些一般你可以在终端里就能找到相应的提示。一般情况下使用RPM SPEC会建立相应的子包,除了mplayer *.rpm之类的主程序,应该还会有类似的 mplayer-codecs mplayer-skins分别提供编码器和皮肤文件
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-2 09:10:37 | 显示全部楼层

谢谢你

很感谢你  我按你的去做拉 但是提示还是一样 我想问一下我怎么才能在我的电脑上完全的删除mplayer  就是很彻底的 删除
然后我在从新装 试试看能不能装上
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-2 09:24:02 | 显示全部楼层

新手

我是个新手 SPEC 是??我的系统是fc4 我还没有升级内核,因为网速 不行除非要早上六点多起来才行要不等学校上网的人多拉就很慢很慢拉  我在网上看到升级内核的时候要是出拉问题是很麻烦的,
那天我是按照linuxsir上的 yum 提示给自给装拉个包 然后就在终端 用sudo yum -y insatll mplayer.i386  不是说yum是可以自己解决安装时的包的链接问题吗 是不是就不用管拉再说我又加拉-y一切都是以yes 安装, 应该是没有问题的吧 等都提示complete!以后 我再在终端里面mplayer也是没好 这个让我很头疼
回复 支持 反对

使用道具 举报

发表于 2006-4-2 23:07:35 | 显示全部楼层
没用过fedora也不知道这个yum具体是个什么样子

刚刚搜索了曾经在turbolinux 10d编绎mplayer-1.0pre3时出现的问题,你也许可以尝试一下--disable-mencoder如果不行再加个--disable-libavcodec,不过编绎过程实在是漫长啊

或者为什么不尝试一下最新的1.0pre7try2版本
http://mplayerhq.hu/homepage/design7/dload.html
RH系列的源,它们也有提供SRC.RPM仔细看看页面的信息
http://rpm.greysector.net/mplayer/

至于卸载,通常是rpm -e mplayer
如果源码安装的,你得参照原来的配置参数配置,./configure --option make然后make uninstall就可以了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-3 17:25:32 | 显示全部楼层

很难 ?

我不记得以前安装的时候的参数拉 怎么办应该怎么卸载?
还有我在装realplayer的时候 出现拉这个是怎么回事 ?
[zylinux@localhost realplayer]$ sudo rpm -ivh RealPlayer-10.0.7.785-20060201.i586.rpm
Preparing...                ########################################### [100%]
   1:RealPlayer             ########################################### [100%]
error: unpacking of archive failed on file /usr/local/RealPlayer/codecs/colorcvt.so;4430e983: cpio: read
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-3 18:35:34 | 显示全部楼层

还是装不上

我没有卸载就直接下拉 个又装 可是出现拉这个
[zylinux@localhost inmplayer]$ sudo rpm -Uvh mplayer-1.0pre8-0.4.20051128.i386.rpm
Preparing...                ########################################### [100%]
        file /usr/share/mplayer/font from install of mplayer-1.0pre8-0.4.20051128 conflicts with file from package mplayer-fonts-1.1-3.fc
[zylinux@localhost inmplayer]$
后来我就把/usr/share/mplayer/里面的东西都删除拉 我以为是已经有拉冲突 但是后来还是没有用
回复 支持 反对

使用道具 举报

发表于 2006-4-4 06:36:40 | 显示全部楼层
http://www.rpm.org/max-rpm/index.html

最近才在看Maximum RPM,至于上面的错误信息不知道具体在哪个页面。

rpm -Uvh mplayer-1.0pre8-0.4.20051128.i386.rpm时
/usr/share/mplayer/font 文件又同时属于mplayer-fonts-1.1-3.fc包,所以出现冲突提示。

一般可以使用两个参数--nodeps 不检测依赖--force 强制安装
rpm -Uvh mplayer-1.0pre8-0.4.20051128.i386.rpm --nodeps --force

不过这两个参数是非常危险的,特别是不同系统之间的二进制包,比如使用fedora2的包来安装于fedora4,所以使用这两个参数至少要系统一样,不然可能导致整个系统都挂掉。
回复 支持 反对

使用道具 举报

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

本版积分规则

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