分页: 1 / 1

[已解决]删除系统自带totem播放器后,smplayer播放器出问题了

发表于 : 2008-11-25 3:48
lovecanon
问题:

我装了w32codec后,感觉smplayer播放器万能了,rmvb,avi,wmv都能播了,于是就把totem卸载了,可是现在发现smplayer播放任何视频文件都只有声音没有图像。我于是把mplayer,smplayer,w32codec都卸载了,然后重新依次安装totem,mplayer,smplayer,w32codec,可是结果还是没有图像只有声音

解决过程:

我用

代码: 全选

sudo gedit /etc/mplayer/mplayer.conf
把vo=x11改成vo=xv,保存,退出,图形界面运行,不管用,还是只有声音没有图像。

于是我用命令行运行了两次,第一次
eric@eric-laptop:~$mplayer -vo xv Fortheloveofgod.wmv
MPlayer 1.0rc2-4.2.3 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) M processor 1.73GHz (Family: 6, Model: 13, Stepping: 8)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
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 Fortheloveofgod.wmv.
ASF file format detected.
[asfheader] Audio stream found, -aid 1
[asfheader] Video stream found, -vid 2
VIDEO: [WMV2] 320x240 24bpp 1000.000 fps 185.0 kbps (22.6 kbyte/s)
Clip info:
name: http://www.guitar100.com吉他百分百
author: http://www.rock520.com摇滚集中营
copyright: http://www.guitar100.com摇不死制作
comments: 吉他百分百,权威摇滚视频搜集
xscreensaver_disable: Could not find XScreenSaver window.
GNOME screensaver disabled
==========================================================================
Opening video decoder: [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 config request - 320 x 240 (preferred colorspace: Packed YUY2)
[PP] Using codec's postprocessing, max q = 4.
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 320x240 => 320x240 Planar YV12
Selected video codec: [wmv8] vfm: dshow (Windows Media Video 8)
==========================================================================
==========================================================================
Forced audio codec: mad
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 32000 Hz, 2 ch, s16le, 40.0 kbit/3.91% (ratio: 5000->128000)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
AO: [pulse] 32000Hz 2ch s16le (2 bytes per sample)
Starting playback...
GNOME screensaver enabled.003 ct: -0.059 108/108 3% 0% 0.7% 0 0

Exiting... (Quit)
效果:没有图像,只有声音

然后用命令行执行
eric@eric-laptop:~$ mplayer -vo x11 Fortheloveofgod.wmv
MPlayer 1.0rc2-4.2.3 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) M processor 1.73GHz (Family: 6, Model: 13, Stepping: 8)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
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 Fortheloveofgod.wmv.
ASF file format detected.
[asfheader] Audio stream found, -aid 1
[asfheader] Video stream found, -vid 2
VIDEO: [WMV2] 320x240 24bpp 1000.000 fps 185.0 kbps (22.6 kbyte/s)
Clip info:
name: http://www.guitar100.com吉他百分百
author: http://www.rock520.com摇滚集中营
copyright: http://www.guitar100.com摇不死制作
comments: 吉他百分百,权威摇滚视频搜集
xscreensaver_disable: Could not find XScreenSaver window.
GNOME screensaver disabled
==========================================================================
Opening video decoder: [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 config request - 320 x 240 (preferred colorspace: Packed YUY2)
[PP] Using codec's postprocessing, max q = 4.
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [x11] 320x240 => 320x240 Planar YV12
[swscaler @ 0x8934890]SwScaler: using unscaled yuv420p -> rgb32 special converter
Selected video codec: [wmv8] vfm: dshow (Windows Media Video 8)
==========================================================================
==========================================================================
Forced audio codec: mad
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 32000 Hz, 2 ch, s16le, 40.0 kbit/3.91% (ratio: 5000->128000)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
AO: [pulse] 32000Hz 2ch s16le (2 bytes per sample)
Starting playback...
GNOME screensaver enabled.002 ct: -0.062 495/495 4% 3% 0.5% 0 0

Exiting... (Quit)
效果:有声音也有图像。

那么,两次命令的差别就是xo和x11

于是我又用

代码: 全选

sudo gedit /etc/mplayer/mplayer.conf
更改vo,然后保存,可是不管改成xv还是x11,只要在界面模式播放,还是只有声音没有图像。

后来偶然在界面模式播放的时候进入preferences里的video,选x11,就可以了。smplayer是在首选项video里面的选项-首选项-常规-常规(标签)-输出设备把视频改成X11就好了。

问题解决了,那么,出问题的关键就是我用

代码: 全选

sudo gedit /etc/mplayer/mplayer.conf
修改vo参数,然后保存,可是结果好像并没有修改vo参数阿,真奇怪……

Re: [已解决]删除系统自带totem播放器后,smplayer播放器出问题了

发表于 : 2008-12-01 23:07
peakgg
关键是最后几句啊
一直这样的问题 所以一直用vlc来着 现在问题解决了 谢了