Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems with mplayer and composite windows [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
WakkaDojo
Apprentice
Apprentice


Joined: 26 Sep 2007
Posts: 174
Location: Massachusetts

PostPosted: Mon Oct 15, 2007 2:21 am    Post subject: Problems with mplayer and composite windows [SOLVED] Reply with quote

I have xfce-4.4 with the xfce-composite enabled. When i have composite windows turned off, the -vo xv option works fine with mplayer. However, when composite is turned on, mplayer doesn't display my movie but rather just the windows behind the mplayer window, and when i drag it around or make it fullscreen, mplayer goes black. However, when I use -vo gl2 everything is fine. Why isn't -vo xv working? Also, I know -vo xv is a very fast output, is -vo gl2 comparable? If not, which output can I try that will give me the same performance as xv?

Check out some mplayer outputs:

For -vo xv:
Code:
wakka Video $ mplayer -vo xv road_to_perdition.divx
MPlayer SVN-r24130 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) M processor 1.60GHz (Family: 6, Model: 13, Stepping: 8)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Playing road_to_perdition.divx.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO:  [DX50]  640x480  24bpp  23.975 fps  670.4 kbps (81.8 kbyte/s)
xscreensaver_disable: xscreensaver wid=8388609.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 640x480 => 640x480 Planar YV12
A:  11.1 V:  11.1 A-V: -0.000 ct:  0.000 266/266  4%  0%  1.4% 0 0
Exiting... (Quit)


And for -vo gl2:
Code:
wakka Video $ mplayer -vo gl2 road_to_perdition.divx
MPlayer SVN-r24130 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) M processor 1.60GHz (Family: 6, Model: 13, Stepping: 8)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Playing road_to_perdition.divx.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO:  [DX50]  640x480  24bpp  23.975 fps  670.4 kbps (81.8 kbyte/s)
xscreensaver_disable: xscreensaver wid=8388609.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
[swscaler @ 0x87ae748]SwScaler: using unscaled yuv420p -> bgr24 special converter
VO: [gl2] 640x480 => 640x480 BGR 24-bit
[gl2] You have OpenGL >= 1.2 capable drivers, GOOD (16bpp and BGR is ok!)
[gl2] antialiasing off
[gl2] bilinear linear
A:   4.2 V:   4.2 A-V:  0.000 ct:  0.007 101/101  8% 15%  1.4% 1 0
Exiting... (Quit)


Last edited by WakkaDojo on Mon Oct 15, 2007 12:43 pm; edited 1 time in total
Back to top
View user's profile Send private message
ltboy
Apprentice
Apprentice


Joined: 26 Oct 2004
Posts: 197
Location: Utah

PostPosted: Mon Oct 15, 2007 6:32 am    Post subject: Reply with quote

This has been talked about and talked about all over the internet including here. If you are using composite then your desktop is being rendered in opengl which trumps xv, basically xv is trying to overwrite a specific color on your screen with the video and the composite extension is changing that color. Sooo, essentially, if you are using composite in xorg then the only video playback extension that will work and still give decent performance is opengl commonly referred to by video players as gl or gl2
_________________
Mmmm.... Brains!
Back to top
View user's profile Send private message
WakkaDojo
Apprentice
Apprentice


Joined: 26 Sep 2007
Posts: 174
Location: Massachusetts

PostPosted: Mon Oct 15, 2007 12:43 pm    Post subject: Reply with quote

Thanks, just what I was looking for!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum