[MPlayer-users] Mplayer -wid problem on Solaris 10

Mincer, Earl-p57431 Earl.Mincer at gdc4s.com
Mon Nov 28 19:52:24 CET 2005


Hi all,

New to the list and new to Mplayer...

I need some urgent help in trying to use the -wid option for Mplayer
under Solaris 10 with X11.

I'm pretty certain I get the right window ID using xwinfo, and when I
run mplayer, that window does get focus but then it crashes. The same
experiment works as excepted under Linux and under Windows XP. Is this a
Solaris 10 bug or am I doing something wrong? 

Here are more details:

- Solaris 10
- Release: MPlayer 1.0pre7try2-3.3.2 
- plays in separate window without -wid option
- with WID option crashes with 
X11 error: BadMatch (invalid parameter attributes)
		Type: 0, display: 73f608, resourceid: 5000002, serial:
25
		Error code: 8, request code: 2, minor code: 0

I obtain the window IDs as follows:

Under Windows I get it the ID using Microsoft Visual C++ Spy++. On Linux
and Solaris under X11, I get the ID using xwininfo. In order to
(hopefully) create the right kind of window with the right attributes, I
first launch Mplayer to play a clip, then pause it. In another terminal,
I get the window ID using xwinfo and then try to run it using -wid, thus
attaching to my paused window. As I said, this DOES work on Linux and
Windows XP. 

In reality, the window I will want to attach to will not be an Mplayer
window but an existing window I created elsewhere in our own code. I
intend to get that WID with a script that uses xwinfo and parses the
output to get that ID. That window is a collection of widgets, one of
which is the space for the video playback. 

Can anyone shed light on:
	-  What Error code: 8, request code: 2 might mean? I see in
Xprotos.h 
a reference to X_ChangeWindowAttributes but I'm not clear how this is 
occurring based on what I'm trying to do.

-  What is the proper way to get a WID I can pass to Mplayer from 
		within my C/C++ code? Esepcially since the target is a
widget, and the
		window is a collection of these widgets. The XtWindow
call on the widget I want to use 
		for video didn't seem to work so I was trying to use
xwinfo within a script instead. Is that the right idea?

Any input would be greatly appreciated, and Happy Thanksgiving to
whomever might be celebrating.

I hate making such a long post but my verbose Mplayer output follows, in
case its of any use. Thanks!

Earl Mincer


bash-3.00$ /usr/local/bin/mplayer -wid 75497474 -v capture050929-7.mpg
MPlayer 1.0pre7try2-3.3.2 (C) 2000-2005 MPlayer Team
CPU: Sun Sparc
CommandLine: '-wid' '75497474' '-v' 'capture050929-7.mpg'
get_path('font/font.desc') ->
'/h/USERS/local/cgsoper1/Scripts/.mplayer/font/font.desc'
Font /h/USERS/local/cgsoper1/Scripts/.mplayer/font/font.desc loaded
successfully! (206 chars)
Using Unoptimized OnScreenDisplay
Using nanosleep() timing
get_path('input.conf') ->
'/h/USERS/local/cgsoper1/Scripts/.mplayer/input.conf'
Can't open input config file
/h/USERS/local/cgsoper1/Scripts/.mplayer/input.conf: No such file or
directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such
file or directory
Falling back on default (hardcoded) input config
get_path('capture050929-7.mpg.conf') ->
'/h/USERS/local/cgsoper1/Scripts/.mplayer/capture050929-7.mpg.conf'
Playing capture050929-7.mpg.
[file] File size is 6094848 bytes
STREAM: [file] capture050929-7.mpg
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for Nullsoft Streaming Video
Checking for NuppelVideo
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename capture050929-7.mpg ext: .mpg
Checking for MOV
Checking for VIVO
header block 1 size: 0
Checking for PVA
Checking for MPEG-TS...
TRIED UP TO POSITION 72320, FOUND 47, packet_size= 0, SEEMS A TS? 0
Checking for LMLM4 Stream Format
Invalid packet in LMLM4 stream: ch=0 size=1140851704
LMLM4 Stream Format not found
system stream synced at 0x0 (13)!
==> Found video stream: 0
==> Found audio stream: 0
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video)  
MPEG-PS file format detected.
Searching for sequence header... OK!
VIDEO:  MPEG2  720x480  (aspect 2)  29.970 fps  9554.8 kbps (1194.4
kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x480  fps:29.97  ftime:=0.0334
get_path('sub/') -> '/h/USERS/local/cgsoper1/Scripts/.mplayer/sub/'
get_path('default.sub') ->
'/h/USERS/local/cgsoper1/Scripts/.mplayer/default.sub'
========================================================================
==
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
mp3lib: using generic C decore!
MP3lib: init layer2&3 finished, tables done
MPEG 1.0, Layer II, 48000 Hz 192 kbit Stereo, BPF: 576
Channels: 2, copyright: No, original: No, CRC: No, emphasis: 0
AUDIO: 48000 Hz, 2 ch, s16be, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
========================================================================
==
X11 opening display: 137.162.127.198:0.0
vo: X11 color mask:  FFFFFF  (R:FF G:FF00 B:FF0000)
vo: X11 running at 1280x960 with depth 24 and 32 bpp
("137.162.127.198:0.0" => remote display)
[x11] Current fstype setting doesn't honour any X atoms
========================================================================
==
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 480 (preferred csp: Mpeg PES)
Trying filter chain: vo
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder
libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG-1 or 2 (libmpeg2))
========================================================================
==
Checking audio filter chain for 48000Hz/2ch/s16be ->
48000Hz/2ch/s16be...
[libaf] Adding filter dummy 
[dummy] Was reinitialized: 48000Hz/2ch/s16be
AF_pre: 48000Hz/2ch/s16be
ao2: 48000 Hz  2 chans  s16be [0x8]
[AO SUN] Can't open audio device /dev/audio, No such file or directory
-> nosound.
[AO ESD] esd_open_sound failed: Connection refused
AO: [null] 48000Hz 2ch s16be (2 bps)
AO: Description: Null audio output
AO: Author: Tobias Diedrich
Building audio filter chain for 48000Hz/2ch/s16be ->
48000Hz/2ch/s16be...
[dummy] Was reinitialized: 48000Hz/2ch/s16be
[dummy] Was reinitialized: 48000Hz/2ch/s16be
Starting playback...
VDec: vo config request - 720 x 480 (preferred csp: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO Config (720x480->720x540,flags=0,'MPlayer',0x32315659)
VO: [x11] 720x480 => 720x540 Planar YV12 
VO: Description: X11 ( XImage/Shm )
VO: Author: Aaron Holtzman <aholtzma at ess.engr.uvic.ca>
X11 error: BadAccess during XSelectInput Call
X11 error: The 'ButtonPressMask' mask of specified window has probably
already used by another appication (see man XSelectInput)
X11 error: MPlayer discards mouse control (reconfiguring)
X11 error: BadAccess during XSelectInput Call
X11 error: The 'ButtonPressMask' mask of specified window has probably
already used by another appication (see man XSelectInput)
X11 error: MPlayer discards mouse control (reconfiguring)
Shared memory not supported
Reverting to normal Xlib
X11 error: BadMatch (invalid parameter attributes)
Type: 0, display: 75ff70, resourceid: 4000002, serial: 27
Error code: 8, request code: 2, minor code: 0


MPlayer interrupted by signal 6 in module: decode_video
- MPlayer crashed. This shouldn't happen.
  It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
  gcc version. If you think it's MPlayer's fault, please read
  DOCS/HTML/en/bugreports.html and follow the instructions there. We
can't and
  won't help unless you provide this information when reporting a
possible bug.
Uninit audio filters...
[libaf] Removing filter dummy 
uninit audio: mp3lib
uninit video: libmpeg2
vo: uninit ...






More information about the MPlayer-users mailing list