找回密码
 注册
楼主: llc

mplayer安装手册!(20040119更新)

  [复制链接]
发表于 2002-8-6 21:44:04 | 显示全部楼层

怎么办?

用RPM包装的,运行时说少了个libSDL-1.2.so.0的东东
回复

使用道具 举报

发表于 2002-8-7 13:06:57 | 显示全部楼层
把你安装光盘里的SDL包和SDL-devel包装上。
回复

使用道具 举报

 楼主| 发表于 2002-9-10 10:05:21 | 显示全部楼层
从0.90 pre 6开始,mplayer正式加入播放rm功能,前提是需要安装realone或realplay8,推荐用realplay8
如果安装的是realplay8的rpm包,则configure时会自动检测到real支持,如果安装的是realone,则必须指名realone的codec目录configure时才可以加入
编译mplayer建议用gcc3.1,用gcc3.0.X编译--enalbe-gui时会出错,用gcc2.96编译后不能自动load vobsub,因此,极力推荐升级GCC为3.1再编译
回复

使用道具 举报

发表于 2002-10-26 15:58:08 | 显示全部楼层
redhat8.0 也是这么装的吗?
回复

使用道具 举报

 楼主| 发表于 2002-10-26 19:59:29 | 显示全部楼层
安装方法是一样的,但rh8不用升级gcc了,它的gcc已经是最新的了
回复

使用道具 举报

发表于 2002-10-29 11:33:40 | 显示全部楼层

噢 !!

可是  freshrpms.net  都有 rpm 包呢 !!

不需要这么复杂吧。
回复

使用道具 举报

发表于 2002-10-29 16:46:57 | 显示全部楼层

我这样编译也支持中文菜单呢 !

rpmbuild --recompile mplayer-0.90pre9-fr1.src.rpm


在解压文件后,我 按 “Ctrl+s”暂停。

来到 help 目录下。

用 help_mp-zh.h 覆盖 help_mp-en.h 文件。


最后 rpm -Uvh /usr/src/redhat/RPMS/i386/mplayer-0.90pre9-fr1.i386.rpm

即可。



[root@gugonghcs help]# mplayer
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/share/locale


MPlayer 0.90pre9-3.2 (C) 2000-2002 Arpad Gereoffy (看DOCS!)

CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Stepping: 10)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Reading config file: /home/gabucino/.mplayer/i_did_not_RTFM_carefully_enough...: No such file or directory
Reading /root/.mplayer/codecs.conf: can't open '/root/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: 38 audio & 110 video codecs
用法:   mplayer [options] [url|path/]filename

基本选项: (包括所有选项的详细列表参见manpage!)
-vo <drv[]> 选择视频输出模式和设备(用'-vo help'查看列表)
-ao <drv[]> 选择音频输出模式和设备(用'-ao help'查看列表)
-dvd <titleno>  从设备而不是普通文件上播放DVD title/track
-alang/-slang   选择DVD音轨/字幕的语言(使用两位的国家代码)
-ss <timepos>   寻找指定的(多少秒或hh:mm:ss)位置
-nosound        不播放声音
-fs -vm -zoom   全屏播放选项(fullscr,vidmode chg,softw.scale)
-x <x> -y <y>   设置播放的分辨率(用于改变vidmode或软件缩放)
-sub <file>     指定使用的字幕文件(参见-subfps, -subdelay)
-playlist <file> 指定使用播放列表文件
-vid x -aid y   选择用于播放的视频(x)和音频(y)流
-fps x -srate y 改变视频(x fps)和音频(y Hz)率
-pp <quality>   使用后期处理滤镜(详细内容参见manpage/docs)
-framedrop      使用 frame-dropping (用于慢机器)

基本控制键: (完整的列表参见manpage, 同时也要检查一下 input.conf)
<-  or  ->      向后/向前搜索10秒
up or down      向后/向前搜索1分钟
pgup or pgdown  向后/向前搜索10分钟
< or >          跳到播放列表中的前一首/下一首
p or SPACE      暂停播放(按任意键继续)
q or ESC        停止播放并推出
+ or -          调整音频延迟+/-0.1秒
o               循环OSD模式:  none/seekbar/seekbar+timer
* or /          增加或减少pcm音量
z or x          调整字幕延迟+/-0.1秒
r or t          上/下调整字幕位置, 参见-vop expand !

* * * 详细内容,进一步(高级)的选项和控制键参见MANPAGE!* * *





我喜欢 rpm 包。因为方便管理呢 !
回复

使用道具 举报

发表于 2002-10-29 16:50:19 | 显示全部楼层

看看 :

[root@gugonghcs help]# rpm -qi mplayer
Name        : mplayer                      Relocations: (not relocateable)
Version     : 0.90pre9                          Vendor: (none)
Release     : fr1                           Build Date: 2002年10月29日 星期二 14时22分12秒
Install date: 2002年10月29日 星期二 14时23分12秒     
Build Host: gugonghcs.fruitron.com.cn
Group       : Applications/Multimedia       Source RPM: mplayer-0.90pre9-fr1.src.rpm
Size        : 9564178                          License: GPL
Signature   : (none)
URL         : http://mplayerhq.hu/
Summary     : MPlayer, the Movie Player for Linux.
Description :
MPlayer is a movie player. It plays most video formats as well as DVDs.
Its big feature is the wide range of supported output drivers. There are also
nice antialiased shaded subtitles and OSD.

Available rpmbuild rebuild options :
--without : alsa aalib lirc libdv arts


我这样编译是支持 alsa、 aalib、 lirc、 libdv、 arts 的 !
回复

使用道具 举报

 楼主| 发表于 2002-10-29 18:39:00 | 显示全部楼层
呵呵,也可以,但建议加上win32codec和realcodec的支持好,否则可能播放不了一部分的wmv和rm
回复

使用道具 举报

发表于 2002-10-30 10:31:12 | 显示全部楼层

我的怎么装不上啊?

我的安装过程:#./configure --enable-gui --with-reallibdir=/root/Real/Codecs
运行结果是: libpng ....的问题
要是这样:#./configure  就一切OK了
我想使用图形界面怎么办?
回复

使用道具 举报

 楼主| 发表于 2002-10-30 13:05:41 | 显示全部楼层
请补装光盘上的libpng和libpng-devel包,gui界面需要它们来显示(界面)图片
回复

使用道具 举报

发表于 2002-10-30 13:37:30 | 显示全部楼层

采取同样的方法解决了 win32codec和realcodec 的问题。

Checking for OggVorbis support ... yes
Checking for FAAD (AAC) support ... no
Checking for Win32 DLL support ... yes (using /root/tmp/w32codec-0.90)
Checking for DirectShow ... yes
Checking for XAnim DLL ... no (no suitable directory found - see DOCS/codecs.html)
Checking for RealPlayer DLL ... yes
Checking for LIVE.COM Streaming Media libraries ... no
Checking for iconv ... yes
Checking for FFmpeg libavcodec (static) ... yes
Checking for libdv-0.9.5+ ... yes

Config files successfully generated by ./configure !

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

  Byte order: Little Endian
  Optimizing for: Runtime CPU-Detection enabled
  
  Enabled optional drivers:
    Input: network tv dvdnav dvdread
    Codecs: divx4linux libdv libavcodec real directshow win32 libvorbis libmad
    Audio output: alsa9 arts oss sdl mpegpes(file)
    Video output: xvidix sdl gif89a jpeg png mpegpes(file) aa opengl dga xv x11
  Disabled optional drivers:
    Input: tv-v4l tv-bsdbt848 cdda dvdcss mpdvdkit vcd
    Codecs: xvid xanim lzo
    Audio output: sgi sun dxr2 nas
    Video output: bl zr dxr3 dxr2 directx vesa fbdev svga ggi xmga mga directfb tdfxfb 3dfx


这样一个 rpm 包形成啦  !
回复

使用道具 举报

发表于 2002-10-30 14:07:39 | 显示全部楼层

我编译完成啦 !

提供给大家下载:

ftp://gugong.fruitron.com.cn/pub/mplayer/mplayer-0.90pre9-fr1.i386.rpm


若您安装时缺少倚赖性的包可以到 freshrpms.net 下载。
回复

使用道具 举报

发表于 2002-11-15 17:55:05 | 显示全部楼层

[求助-]有声音无图像

我按照楼主的 方法把该装的都装了,结果放asf或mpg时只有声音没图像,我把它给出的 提示拷贝出来了,我用的是linux8,谢谢!

[root@dzyls home]# mplayer coco_300.asf
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale


MPlayer 0.90pre10-3.2 (C) 2000-2002 Arpad Gereoffy (看DOCS!)

CPU: Intel Celeron A Mendocino/Pentium II Dixon (Family: 6, Stepping: 5)
CPUflags:  MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
针对有扩展指令集x86 CPU编译: MMX

Reading config file: /home/gabucino/.mplayer/i_did_not_RTFM_carefully_enough...:
No such file or directory
Reading /root/.mplayer/codecs.conf: 44 audio & 110 video codecs
font: can't open file: /root/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
使用Linux的硬件RTC计时(1024Hz)
Can't open input config file /root/.mplayer/input.conf : No such file or directo
ry
Can't open input config file /usr/local/etc/mplayer/input.conf : No such file or
directory
Falling back on default (hardcoded) input config


播放 coco_300.asf
Cache fill:  0.00% (0 bytes)    检测到ASF文件格式!
============ ASF Stream group == START ===
object size = 38
stream count=[0x2][2]
   stream id=[0x1][1]
   max bitrate=[0xc490][50320]
   stream id=[0x2][2]
   max bitrate=[0x4b640][308800]
============ ASF Stream group == END ===
VIDEO:  [WMV2]  320x240  24bpp
Clip info:
name:
author:
copyright:
comments:
==========================================================================
打开音频解码器: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 32000 Hz, 2 ch, 16 bit (0x10), ratio: 6000->128000 (48.0 kbit)
Selected audio codec: [ffwmav2] afm:ffmpeg (DivX audio v2 (ffmpeg))
==========================================================================
fbdev: Can't open /dev/fb0: No such device
==========================================================================
打开视频解码器: [dshow] DirectShow video codecs
Decoder supports the following YUV formats: YUY2 IYUV UYVY YV12 YVYU I420 YVU9
Decoder is capable of YUV output (flags 0x7f)
VDec: vo配置要求 - 320 x 240 (选择 csp: Packed YUY2)
[PP] 使用解码器的后处理插件, max q = 4
VDec: using Planar YV12 as output csp (no 0)
电影宽高比未定义 - 无法使用预放大.
VO: [null] 320x240 => 320x240 Planar YV12  [fs]
Selected video codec: [wmv8] vfm:dshow (Windows Media Video
==========================================================================
AO: [oss] 32000Hz 2ch Signed 16-bit (Little-Endian)
Building audio filter chain for 32000Hz/2ch/16bit -> 32000Hz/2ch/16bit...
开始播放...
A:   7.4 V:   5.1 A-V:  2.313 ct:  0.172   60/ 60  103%  0% 69.3% 50 0 96%

         ************************************************
         ****       你的系统太慢了,放不了这个!     ****
         ************************************************
!!! 可能的原因,问题,解决办法:
- 最普遍的原因:被损坏的/buggy的音频驱动。解决办法:试试-ao sdl或使用
  ALSA 0.5或ALSA 0.9的oss模拟。阅读DOCS/sound.html来寻找更多技巧!
- 视频输出太慢。试试不同的-vo驱动(-vo help有列表)或者试试
  使用-framedrop!阅读DOCS/video.html来寻找视频调整/提速的技巧。
- cpu太慢。不要试图在慢速cpu上播放大的dvd/divx! 试试-hardframedrop
- 被损坏的文件。试试下列选项的不同组合:-nobps  -ni  -mc 0  -forceidx
- 你使用-cache选项播放一个非交错的文件?试试使用-nocache
如果这些一个都用不上,阅读DOCS/bugreports.html!

A:  19.1 V:  13.4 A-V:  5.657 ct:  1.009  311/311  105%  0% 27.2% 300 0 90%
回复

使用道具 举报

 楼主| 发表于 2002-11-15 18:40:17 | 显示全部楼层

Re: [求助-]有声音无图像

你当前用的播放模式是framebuffer模式,这种模式比较慢
提示里面已经说明了,用mplayer -vo help可以看到播放模式列表,你可以换别的播放模式试试:
譬如:
gmplayer -vo xv或gmplayer -vo sdl或gmplayer -vo x11
回复

使用道具 举报

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

本版积分规则

GMT+8, 2025-7-5 13:46 , Processed in 0.063764 second(s), 14 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

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