[解决啦]mplayer出了问题,gmplayer却没事~~

Totem,mplayer,sopcast,realplayer,bmp
回复
头像
levin
帖子: 109
注册时间: 2007-07-26 12:40
来自: 南京

[解决啦]mplayer出了问题,gmplayer却没事~~

#1

帖子 levin » 2007-08-07 22:25

装好mplayer,依照论坛里的快速设置指南改好两个选项(video的x11/xv,enable frame dropping),装好w32codecs,然后下载了各种格式的视频文件试试mplayer.
结果发现在gmplayer里(就是在菜单里选的那个,有图形界面的)什么都没问题,然而使用终端却不行,比如说:
mplayer A.rm
打开rm格式的文件后只有声音没有图像。其他格式的也都不能正常播放。
另外我用gsopcast调用mplayer看网络电视也是只有声音没有图像。总而言之,使用mplayer命令播放视频就有问题,而gmplayer却没问题,请问怎么回事,是不是mplayer命令要加什么参数,应该怎么解决

最后声明一下我是7.04的ubuntu,原来6.10没有遇到过这样的问题
上次由 levin 在 2007-08-10 12:06,总共编辑 2 次。
But for Ubuntu, I will die.
头像
levin
帖子: 109
注册时间: 2007-07-26 12:40
来自: 南京

#2

帖子 levin » 2007-08-08 10:59

还没有人回啊...急
为了更好的获得帮助 我把在终端输入命令后的系统输出贴出来吧

1.播放avi
(1)用mplayer命令
MPlayer 2:1.0~rc1-0ubuntu9.1 (C) 2000-2006 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Model: 8, Stepping: 6)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing lca2006_tvclip.xvid.avi.
AVI file format detected.
VIDEO: [XVID] 390x288 24bpp 25.000 fps 598.3 kbps (73.0 kbyte/s)
Clip info:
Software: transcode-1.0.1
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] Can't open /dev/fb0: Permission denied.
[VO_3DFX] Unable to open /dev/3dfx.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Forced audio codec: mad
Opening audio decoder: [libmad] libmad mpeg audio decoder
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [mad] afm: libmad (libMAD MPEG layer 1-2-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 390 x 288 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.35:1 - prescaling to correct movie aspect.
VO: [xv] 390x288 => 390x288 Planar YV12 [zoom]
A: 2.3 V: 2.3 A-V: 0.041 ct: -0.007 58/ 58 108% 40% 37.6% 46 0
Exiting... (Quit)

(2)用gmplayer命令
MPlayer 2:1.0~rc1-0ubuntu9.1 (C) 2000-2006 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Model: 8, Stepping: 6)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /home/pluto/video/lca2006_tvclip.xvid.avi.
AVI file format detected.
VIDEO: [XVID] 390x288 24bpp 25.000 fps 598.3 kbps (73.0 kbyte/s)
Clip info:
Software: transcode-1.0.1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Forced audio codec: mad
Opening audio decoder: [libmad] libmad mpeg audio decoder
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [mad] afm: libmad (libMAD MPEG layer 1-2-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 390 x 288 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.35:1 - prescaling to correct movie aspect.
VO: [x11] 390x288 => 390x288 Planar YV12 [zoom]
SwScaler: using unscaled yuv420p -> rgb32 special converter
A: 3.3 V: 3.3 A-V: -0.019 ct: 0.014 83/ 83 30% 26% 7.4% 28 0
Exiting... (Quit)


2.播放rm
(1)用mplayer命令
MPlayer 2:1.0~rc1-0ubuntu9.1 (C) 2000-2006 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Model: 8, Stepping: 6)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing 加勒比海盗2预告.rm.
REAL file format detected.
Stream description: Video Stream
Stream mimetype: video/x-pn-realvideo
Stream description: Audio Stream
Stream mimetype: audio/x-pn-realaudio
Stream mimetype: logical-fileinfo
VIDEO: [RV40] 320x136 24bpp 30.000 fps 0.0 kbps ( 0.0 kbyte/s)
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] Can't open /dev/fb0: Permission denied.
[VO_3DFX] Unable to open /dev/3dfx.
==========================================================================
Opening video decoder: [realvid] RealVideo decoder
Selected video codec: [rv3040] vfm: realvid (Linux RealPlayer 10 RV30/40 decoder)
==========================================================================
==========================================================================
Forced audio codec: mad
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 96.5 kbit/6.84% (ratio: 12058->176400)
Selected audio codec: [ffcook] afm: ffmpeg (FFmpeg COOK audio decoder)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 320 x 136 (preferred colorspace: Planar I420)
VDec: using Planar I420 as output csp (no 0)
Movie-Aspect is 2.35:1 - prescaling to correct movie aspect.
VO: [xv] 320x136 => 320x136 Planar I420 [zoom]
A: 2.9 V: 2.9 A-V: -0.006 ct: -0.092 88/ 88 32% 5% 6.6% 7 0
Exiting... (Quit)

(2)用gmplayer命令
MPlayer 2:1.0~rc1-0ubuntu9.1 (C) 2000-2006 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Model: 8, Stepping: 6)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /home/pluto/video/加勒比海盗2预告.rm.
REAL file format detected.
Stream description: Video Stream
Stream mimetype: video/x-pn-realvideo
Stream description: Audio Stream
Stream mimetype: audio/x-pn-realaudio
Stream mimetype: logical-fileinfo
VIDEO: [RV40] 320x136 24bpp 30.000 fps 0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Opening video decoder: [realvid] RealVideo decoder
Selected video codec: [rv3040] vfm: realvid (Linux RealPlayer 10 RV30/40 decoder)
==========================================================================
==========================================================================
Forced audio codec: mad
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 96.5 kbit/6.84% (ratio: 12058->176400)
Selected audio codec: [ffcook] afm: ffmpeg (FFmpeg COOK audio decoder)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 320 x 136 (preferred colorspace: Planar I420)
VDec: using Planar I420 as output csp (no 0)
Movie-Aspect is 2.35:1 - prescaling to correct movie aspect.
VO: [x11] 320x136 => 320x136 Planar I420 [zoom]
SwScaler: using unscaled yuv420p -> rgb32 special converter
A: 2.4 V: 2.4 A-V: 0.003 ct: -0.089 73/ 73 22% 20% 9.4% 14 0
Exiting... (Quit)
But for Ubuntu, I will die.
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#3

帖子 eexpress » 2007-08-08 11:00

~/.mplayer/config看看
● 鸣学
头像
levin
帖子: 109
注册时间: 2007-07-26 12:40
来自: 南京

#4

帖子 levin » 2007-08-08 11:03

对比一下
大概有两处不同
1.open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] Can't open /dev/fb0: Permission denied.
[VO_3DFX] Unable to open /dev/3dfx.

2.SwScaler: using unscaled yuv420p -> rgb32 special converter
第一出是mplayer命令多出来的,第二处是gmplayer命令多出来的
再重申一下,gmplayer命令是能够正常播放的,而mplayer命令则不行
其他格式的视频文件播放也是类似的问题,如mp4,mpeg4,rmvb
But for Ubuntu, I will die.
头像
levin
帖子: 109
注册时间: 2007-07-26 12:40
来自: 南京

#5

帖子 levin » 2007-08-08 11:10

eexpress 写了:~/.mplayer/config看看
我水平有限,看不懂,我对多媒体这块不太在行(其实我还暂时没有在行的东东)
......
But for Ubuntu, I will die.
vvvli
帖子: 441
注册时间: 2006-10-26 7:02

#6

帖子 vvvli » 2007-08-08 12:25

levin 写了:
eexpress 写了:~/.mplayer/config看看
我水平有限,看不懂,我对多媒体这块不太在行(其实我还暂时没有在行的东东)
......
。。贴出来看看
头像
levin
帖子: 109
注册时间: 2007-07-26 12:40
来自: 南京

#7

帖子 levin » 2007-08-08 12:45

真是惭愧
我发现~/.mplayer/config里没有东西,只有一行注释
# Write your default config options here!

我以前看的是/etc/mplayer/mplayer.conf
内容是
#
# MPlayer configuration file
#
# Configuration files are read system-wide from /usr/local/etc/mplayer.conf
# and per user from ~/.mplayer/config, where per-user settings override
# system-wide settings, all of which are overrriden by the command line.
#
# The configuration file settings are the same as the command line
# options without the preceding '-'.
#
# See the CONFIGURATION FILES section in the man page
# for a detailed description of the syntax.


##################
# video settings #
##################

# Specify default video driver (see -vo help for a list).
#vo=xv

# Use SDL video with the aalib subdriver by default.
#vo = sdl:aalib

# FBdev driver:
#
# mode to use (read from fb.modes)
#fbmode = 640x480-120
#
# location of the fb.modes file
#fbmodeconfig = /etc/fb.modes

# Specify your monitor timings for the vesa and fbdev video output drivers.
# See /etc/X11/XF86Config for timings. Be careful; if you specify settings
# that exceed the capabilities of your monitor, you may damage it.
#
# horizontal frequency range (k stands for 1000)
#monitor-hfreq = 31.5k-50k,70k
#
# vertical frequency range
#monitor-vfreq = 50-90
#
# dotclock (or pixelclock) range (m stands for 1000000)
#monitor-dotclock = 30M-300M

# Start in fullscreen mode by default.
#fs=yes

# Change to a different videomode when going fullscreen.
#vm=yes

# Override the autodetected color depth, may need 'vm=yes' as well.
#bpp=0

# Enable software scaling (powerful CPU needed) for video output
# drivers that do not support hardware scaling.
zoom=yes

# standard monitor size, with square pixels
#monitoraspect=4:3

# Use this for a widescreen monitor, non-square pixels.
#monitoraspect=16:9

# Keep the player window on top of all other windows.
#ontop=yes


##################
# audio settings #
##################

# Specify default audio driver (see -ao help for a list).
ao=alsa,

# Use SDL audio driver with the esd subdriver by default.
#ao = sdl:esd

# Specify the mixer device.
#mixer = /dev/mixer

# Resample the sound to 44100Hz with the lavcresample audio filter.
#af=lavcresample=44100

# Specify default audio codec (see -ac help for a list).
ac=mad,


##################
# other settings #
##################

# Drop frames to preserve audio/video sync.
#framedrop = yes

# Specify your preferred skin here (skins are searched for in
# /usr/local/share/mplayer/skins/<name> and ~/.mplayer/skins/<name>).
#skin = Abyss

# Resample the font alphamap.
# 0 plain white fonts
# 0.75 very narrow black outline (default)
# 1 narrow black outline
# 10 bold black outline
#ffactor = 0.75

# cache settings
#
# Use 8MB input cache by default.
#cache = 8192
#
# Prefill 20% of the cache before starting playback.
#cache-min = 20.0
#
# Prefill 50% of the cache before restarting playback after the cache emptied.
#cache-seek-min = 50

# DVD: Display English subtitles if available.
#slang = en

# DVD: Play English audio tracks if available.
#alang = en


# You can also include other configuration files.
#include = /path/to/the/file/you/want/to/include
But for Ubuntu, I will die.
头像
levin
帖子: 109
注册时间: 2007-07-26 12:40
来自: 南京

#8

帖子 levin » 2007-08-08 23:36

没人回答 自己小顶下
But for Ubuntu, I will die.
头像
levin
帖子: 109
注册时间: 2007-07-26 12:40
来自: 南京

#9

帖子 levin » 2007-08-09 13:48

渴望答案....
But for Ubuntu, I will die.
头像
levin
帖子: 109
注册时间: 2007-07-26 12:40
来自: 南京

#10

帖子 levin » 2007-08-09 20:08

我耐心的等。。。
But for Ubuntu, I will die.
头像
levin
帖子: 109
注册时间: 2007-07-26 12:40
来自: 南京

#11

帖子 levin » 2007-08-10 12:08

艾 没人理我阿。。。
我在ubuntu qq群上问到了
要加参数 如
mplayer aaa.avi -vo xv(或者x11)

在这里怎么没人理我呢?
But for Ubuntu, I will die.
cdacl
帖子: 153
注册时间: 2007-01-13 20:15

#12

帖子 cdacl » 2007-08-15 11:18

代码: 全选

# Write your default config options here!
oystick=no #不加载游戏手柄的控制
#fs=yes #支持全屏
zoom=yes #支持缩放
subcp=cp936 #支持中文字幕
subfont-autoscale=2 #字幕占屏幕的大小
subfont-text-scale=3 #设置字幕文本的自动缩放系数(屏幕尺寸的百分比),值范围为0~100,默认值为5
subfont-osd-scale=8 #OSD字幕的自动缩放系统(屏幕尺寸的百分比),值范围为0~100,默认值为6
font= "/usr/share/fonts/truetype/stheiti.ttf" #选择字体
overlapsub=1 #支持多语言字幕
sub-fuzziness=1 #设定字幕自动加载的识别
osdlevel=3 #在屏幕的左上角显示相应时间等
#vf=expand=:::::4/3:2 #如果是16:9的影片,字幕可以放在下面的黑框中
把上面的内容粘到你的config文件试试呢。
回复