[MPlayer-cygwin] usage of -wid on windows

Thomas Winningham winningham at gmail.com
Thu Apr 28 06:49:10 CEST 2005


Is there a situation, short of c++, where redirects on win32 with
mplayer works correctly? Or is this just another chronic MS problem?
Should I try to get to get the bugs out of my cygwin or mingw before I
ask that?

Thanks,

Thomas

On 4/27/05, nick at savs.net <nick at savs.net> wrote:
> ----- Original Message -----
> From: Rune Petersen [mailto:rune at megahurts.dk]
> Sent: 4/28/2005 12:38:08 PM
> To: mplayer-cygwin at mplayerhq.hu
> Subject: Re: [MPlayer-cygwin] usage of -wid on windows
> 
> > Hi,
> >
> > what output do you get? (add a -v to the args)
> 
> The crashing was a separate issue, and a red herring. But regardless, I'm still not getting anywhere with getting "-wid" working. So so you know if I'm using the cmd line argument correctly, passing it the right ID? After a bit of stuffing around to get the output, it looks like one of my big symptoms is some failure in the directx vo code:
> 
> <vo_directx><FATAL ERROR>could not set cooperativelevel for hardwarecheck
> 
> Below are the output of
>     HWND myWindow;
>     ...
>     char *cmd_name="d:\\home\\nicholas\\src\\MPlayer-1.0pre7\\mplayer.exe";
>     char *args[6]; // null terminated array
>     char buf[200];
> 
>     LONG wid = GetWindowLong(myWindow,GWL_ID);
>     sprintf(buf,"%ld",wid);
> 
>     args[0]="mplayer.exe";
>     args[1]="-v";
>     args[2]="-wid";
>     args[3]=buf;
>     args[4]="D:\\home\\nicholas\\mpeg\\VTS_02_1.mpg";
>     args[5]=NULL;
>     pid = spawnv(_P_NOWAIT,cmd_name,args);
> 
> and
> 
> ~/src/MPlayer-1.0pre7/mplayer.exe -v ~/mpeg/VTS_02_1.mpg
> 
> respectively.
> 
> Thanks for your help,
> 
> Nick
> 
> Using GNU internationalization
> Original domain: messages
> Original dirname: /usr/share/locale
> Current domain: mplayer
> Current dirname: /usr/local/share/locale
> 
> MPlayer 1.0pre7-3.3.3 (C) 2000-2005 MPlayer Team
> CPU: Intel Pentium 4/Xeon/Celeron Foster (Family: 8, Stepping: 7)
> Detected cache-line size is 64 bytes
> CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
> Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
> 
> CommandLine: '-v' '-wid' '91096333' 'D:\home\nicholas\mpeg\VTS_02_1.mpg'
> init_freetype
> get_path('font/font.desc') -> '/home/nicholas/.mplayer/font/font.desc'
> font: can't open file: /home/nicholas/.mplayer/font/font.desc
> font: can't open file: /usr/local/share/mplayer/font/font.desc
> Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
> Using Windows native timing
> get_path('input.conf') -> '/home/nicholas/.mplayer/input.conf'
> Can't open input config file /home/nicholas/.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('D:\home\nicholas\mpeg\VTS_02_1.mpg.conf') -> '/home/nicholas/.mplayer/
> D:\home\nicholas\mpeg\VTS_02_1.mpg.conf'
> Playing D:\home\nicholas\mpeg\VTS_02_1.mpg.
> [file] File size is 87846912 bytes
> STREAM: [file] D:\home\nicholas\mpeg\VTS_02_1.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 D:\home\nicholas\mpeg\VTS_02_1.mpg ext: .mpg
> 
> Checking for MOV
> Checking for VIVO
> header block 1 size: 0
> Checking for PVA
> Checking for MPEG-TS...
> THIS DOESN'T LOOK LIKE AN MPEG-TS FILE!
> TRIED UP TO POSITION 0, FOUND 0, 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 0xD (0)!
> ==> Found video stream: 0
> ==> Found audio stream: 128
> MPEG Stream reached EOF
> ds_fill_buffer: EOF reached (stream: video)
> MPEG-PS file format detected.
> Searching for sequence header... OK!
> VIDEO:  MPEG2  720x576  (aspect 2)  25.000 fps  8000.0 kbps (1000.0 kbyte/s)
> [V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25.00  ftime:=0.0400
> get_path('sub/') -> '/home/nicholas/.mplayer/sub/'
> get_path('default.sub') -> '/home/nicholas/.mplayer/default.sub'
> ==========================================================================
> Opening audio decoder: [liba52] AC3 decoding with liba52
> dec_audio: Allocating 3840 bytes for input buffer.
> dec_audio: Allocating 6144 + 65536 = 71680 bytes for output buffer.
> Using SSE optimized IMDCT transform
> AC3: 2.0 (stereo)  48000 Hz  192.0 kbit/s
> A52 flags before a52_frame: 0x2A
> A52 flags after a52_frame: 0x2
> Using MMX optimized resampler
> AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
> Selected audio codec: [a52] afm:liba52 (AC3-liba52)
> ==========================================================================
> <vo_directx><FATAL ERROR>could not set cooperativelevel for hardwarecheck
> X11 opening display:
> vo: couldn't open the X11 display ()!
> VO XOverlay need a subdriver
> [gl] Using 4 as slice height (0 means image height).
> X11 opening display:
> vo: couldn't open the X11 display ()!
> X11 opening display:
> vo: couldn't open the X11 display ()!
> No vidix driver name provided, probing available ones (-v option for details)!
> X11 opening display:
> vo: couldn't open the X11 display ()!
> No vidix driver name provided, probing available ones (-v option for details)!
> vidixlib: PROBING: /usr/local/lib/mplayer/vidix/cyberblade_vid.so
> unable to enable directio please install dhahelper.sys
> [cyberblade] Error occurred during pci scan: Operation not permitted
> vidixlib: PROBING: /usr/local/lib/mplayer/vidix/mach64_vid.so
> unable to enable directio please install dhahelper.sys
> [mach64] Error occurred during pci scan: Operation not permitted
> vidixlib: PROBING: /usr/local/lib/mplayer/vidix/mga_crtc2_vid.so
> [mga] probe
> unable to enable directio please install dhahelper.sys
> [mga] Error occurred during pci scan: Operation not permitted
> vidixlib: PROBING: /usr/local/lib/mplayer/vidix/mga_vid.so
> [mga] probe
> unable to enable directio please install dhahelper.sys
> [mga] Error occurred during pci scan: Operation not permitted
> vidixlib: PROBING: /usr/local/lib/mplayer/vidix/nvidia_vid.so
> unable to enable directio please install dhahelper.sys
> [nvidia_vid] Error occurred during pci scan: Operation not permitted
> vidixlib: PROBING: /usr/local/lib/mplayer/vidix/pm3_vid.so
> unable to enable directio please install dhahelper.sys
> [pm3] Error occurred during pci scan: Operation not permitted
> vidixlib: PROBING: /usr/local/lib/mplayer/vidix/radeon_vid.so
> unable to enable directio please install dhahelper.sys
> [radeon] Error occurred during pci scan: Operation not permitted
> vidixlib: PROBING: /usr/local/lib/mplayer/vidix/rage128_vid.so
> unable to enable directio please install dhahelper.sys
> [rage128] Error occurred during pci scan: Operation not permitted
> vidixlib: PROBING: /usr/local/lib/mplayer/vidix/savage_vid.so
> unable to enable directio please install dhahelper.sys
> [savage_vid] Error occurred during pci scan: Operation not permitted
> vidixlib: PROBING: /usr/local/lib/mplayer/vidix/sis_vid.so
> unable to enable directio please install dhahelper.sys
> [SiS] Error occurred during pci scan: Operation not permitted
> vidixlib: PROBING: /usr/local/lib/mplayer/vidix/unichrome_vid.so
> unable to enable directio please install dhahelper.sys
> [unichrome] Error occurred during pci scan: Operation not permitted
> vosub_vidix: Couldn't find working VIDIX driver
> vo_cvidix: No vidix driver name provided, probing available ones (-v option for
> details)!
> vidixlib: PROBING: /usr/local/lib/mplayer/vidix/cyberblade_vid.so
> unable to enable directio please install dhahelper.sys
> [cyberblade] Error occurred during pci scan: Operation not permitted
> vidixlib: PROBING: /usr/local/lib/mplayer/vidix/mach64_vid.so
> unable to enable directio please install dhahelper.sys
> [mach64] Error occurred during pci scan: Operation not permitted
> vidixlib: PROBING: /usr/local/lib/mplayer/vidix/mga_crtc2_vid.so
> [mga] probe
> unable to enable directio please install dhahelper.sys
> [mga] Error occurred during pci scan: Operation not permitted
> vidixlib: PROBING: /usr/local/lib/mplayer/vidix/mga_vid.so
> [mga] probe
> unable to enable directio please install dhahelper.sys
> [mga] Error occurred during pci scan: Operation not permitted
> vidixlib: PROBING: /usr/local/lib/mplayer/vidix/nvidia_vid.so
> unable to enable directio please install dhahelper.sys
> [nvidia_vid] Error occurred during pci scan: Operation not permitted
> vidixlib: PROBING: /usr/local/lib/mplayer/vidix/pm3_vid.so
> unable to enable directio please install dhahelper.sys
> [pm3] Error occurred during pci scan: Operation not permitted
> vidixlib: PROBING: /usr/local/lib/mplayer/vidix/radeon_vid.so
> unable to enable directio please install dhahelper.sys
> [radeon] Error occurred during pci scan: Operation not permitted
> vidixlib: PROBING: /usr/local/lib/mplayer/vidix/rage128_vid.so
> unable to enable directio please install dhahelper.sys
> [rage128] Error occurred during pci scan: Operation not permitted
> vidixlib: PROBING: /usr/local/lib/mplayer/vidix/savage_vid.so
> unable to enable directio please install dhahelper.sys
> [savage_vid] Error occurred during pci scan: Operation not permitted
> vidixlib: PROBING: /usr/local/lib/mplayer/vidix/sis_vid.so
> unable to enable directio please install dhahelper.sys
> [SiS] Error occurred during pci scan: Operation not permitted
> vidixlib: PROBING: /usr/local/lib/mplayer/vidix/unichrome_vid.so
> unable to enable directio please install dhahelper.sys
> [unichrome] Error occurred during pci scan: Operation not permitted
> vosub_vidix: Couldn't find working VIDIX driver
> ==========================================================================
> Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
> VDec: vo config request - 720 x 576 (preferred csp: Mpeg PES)
> Trying filter chain: vo
> VDec: using Mpeg PES as output csp (no 0)
> Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
> VO Config (720x576->768x576,flags=0,'MPlayer',0x4D504553)
> VO: [null] 720x576 => 768x576 Mpeg PES
> VO: Description: Null video output
> VO: Author: Aaron Holtzman <aholtzma at ess.engr.uvic.ca>
> Selected video codec: [mpegpes] vfm:mpegpes (MPEG-PES output (.mpg or DXR3/DVB c
> ard))
> ==========================================================================
> Checking audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
> [libaf] Adding filter dummy
> [dummy] Was reinitialized: 48000Hz/2ch/s16le
> AF_pre: 48000Hz/2ch/s16le
> ao_dsound: Output Devices:
> 0 Primary Sound Driver <--
> 1 Intel(r) Integrated Audio
> ao_dsound: DirectSound initialized
> ao_dsound: Samplerate:48000Hz Channels:2 Format:s16le
> ao_dsound: Buffersize:192000 bytes (1000 msec)
> ao_dsound: primary buffer created
> ao_dsound: secondary (stream)buffer created
> AO: [dsound] 48000Hz 2ch s16le (2 bps)
> AO: Description: Windows DirectSound audio output
> AO: Author: Gabor Szecsi <deje at miki.hu>
> Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
> [dummy] Was reinitialized: 48000Hz/2ch/s16le
> [dummy] Was reinitialized: 48000Hz/2ch/s16le
> Starting playback...
> *** [vo] Exporting mp_image_t, 720x576x0bpp RGB packed, 0 bytes
> A:   3.1 V:   3.1 A-V:  0.007 ct:  0.059  73/ 73  0%  0%  0.0% 0 0
> 
> $ ~/src/MPlayer-1.0pre7/mplayer.exe -v ~/mpeg/VTS_02_1.mpg
> Using GNU internationalization
> Original domain: messages
> Original dirname: /usr/share/locale
> Current domain: mplayer
> Current dirname: /usr/local/share/locale
> 
> MPlayer 1.0pre7-3.3.3 (C) 2000-2005 MPlayer Team
> CPU: Intel Pentium 4/Xeon/Celeron Foster (Family: 8, Stepping: 7)
> Detected cache-line size is 64 bytes
> CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
> Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
> 
> CommandLine: '-v' '/home/nicholas/mpeg/VTS_02_1.mpg'
> init_freetype
> get_path('font/font.desc') -> '/home/nicholas/.mplayer/font/font.desc'
> font: can't open file: /home/nicholas/.mplayer/font/font.desc
> font: can't open file: /usr/local/share/mplayer/font/font.desc
> Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
> Using Windows native timing
> get_path('input.conf') -> '/home/nicholas/.mplayer/input.conf'
> Can't open input config file /home/nicholas/.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('VTS_02_1.mpg.conf') -> '/home/nicholas/.mplayer/VTS_02_1.mpg.conf'
> Playing /home/nicholas/mpeg/VTS_02_1.mpg.
> [file] File size is 87846912 bytes
> STREAM: [file] /home/nicholas/mpeg/VTS_02_1.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 /home/nicholas/mpeg/VTS_02_1.mpg ext: .mpg
> Checking for MOV
> Checking for VIVO
> header block 1 size: 0
> Checking for PVA
> Checking for MPEG-TS...
> THIS DOESN'T LOOK LIKE AN MPEG-TS FILE!
> TRIED UP TO POSITION 0, FOUND 0, 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 0xD (0)!
> ==> Found video stream: 0
> ==> Found audio stream: 128
> MPEG Stream reached EOF
> ds_fill_buffer: EOF reached (stream: video)
> MPEG-PS file format detected.
> Searching for sequence header... OK!
> VIDEO:  MPEG2  720x576  (aspect 2)  25.000 fps  8000.0 kbps (1000.0 kbyte/s)
> [V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25.00  ftime:=0.0400
> get_path('sub/') -> '/home/nicholas/.mplayer/sub/'
> get_path('default.sub') -> '/home/nicholas/.mplayer/default.sub'
> ==========================================================================
> Opening audio decoder: [liba52] AC3 decoding with liba52
> dec_audio: Allocating 3840 bytes for input buffer.
> dec_audio: Allocating 6144 + 65536 = 71680 bytes for output buffer.
> Using SSE optimized IMDCT transform
> AC3: 2.0 (stereo)  48000 Hz  192.0 kbit/s
> A52 flags before a52_frame: 0x2A
> A52 flags after a52_frame: 0x2
> Using MMX optimized resampler
> AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
> Selected audio codec: [a52] afm:liba52 (AC3-liba52)
> ==========================================================================
> <vo_directx><INFO>checking primary surface
> <vo_directx><FORMAT PRIMARY>14 BGR32 supported
> <vo_directx><INFO>testing supported overlay pixelformats
> <vo_directx><FORMAT OVERLAY>0 YV12  supported
> <vo_directx><FORMAT OVERLAY>1 I420  not supported
> <vo_directx><FORMAT OVERLAY>2 IYUV  not supported
> <vo_directx><FORMAT OVERLAY>3 YVU9  supported
> <vo_directx><FORMAT OVERLAY>4 YUY2  supported
> <vo_directx><FORMAT OVERLAY>5 UYVY  supported
> <vo_directx><FORMAT OVERLAY>6 BGR8  not supported
> <vo_directx><FORMAT OVERLAY>7 RGB15 not supported
> <vo_directx><FORMAT OVERLAY>8 BGR15 not supported
> <vo_directx><FORMAT OVERLAY>9 RGB16 not supported
> <vo_directx><FORMAT OVERLAY>10 BGR16 not supported
> <vo_directx><FORMAT OVERLAY>11 RGB24 not supported
> <vo_directx><FORMAT OVERLAY>12 BGR24 not supported
> <vo_directx><FORMAT OVERLAY>13 RGB32 not supported
> <vo_directx><FORMAT OVERLAY>14 BGR32 not supported
> <vo_directx><INFO>Your card supports 4 of 15 overlayformats
> <vo_directx><INFO>can mirror up down
> <vo_directx><INFO>hardware supports overlay
> ==========================================================================
> Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
> VDec: vo config request - 720 x 576 (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/s16le -> 48000Hz/2ch/s16le...
> [libaf] Adding filter dummy
> [dummy] Was reinitialized: 48000Hz/2ch/s16le
> AF_pre: 48000Hz/2ch/s16le
> ao_dsound: Output Devices:
> 0 Primary Sound Driver <--
> 1 Intel(r) Integrated Audio
> ao_dsound: DirectSound initialized
> ao_dsound: Samplerate:48000Hz Channels:2 Format:s16le
> ao_dsound: Buffersize:192000 bytes (1000 msec)
> ao_dsound: primary buffer created
> ao_dsound: secondary (stream)buffer created
> AO: [dsound] 48000Hz 2ch s16le (2 bps)
> AO: Description: Windows DirectSound audio output
> AO: Author: Gabor Szecsi <deje at miki.hu>
> Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
> [dummy] Was reinitialized: 48000Hz/2ch/s16le
> [dummy] Was reinitialized: 48000Hz/2ch/s16le
> Starting playback...
> VDec: vo config request - 720 x 576 (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 (720x576->768x576,flags=0,'MPlayer',0x32315659)
> VO: [directx] 720x576 => 768x576 Planar YV12
> VO: Description: Directx DDraw YUV/RGB/BGR renderer
> VO: Author: Sascha Sommer <saschasommer at freenet.de>
> <vo_directx><INFO>overlay with format YV12  created
> *** [vo] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
> *** [vo] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
> get_path('subfont.ttf') -> '/home/nicholas/.mplayer/subfont.ttf' 0
> New_Face failed. Maybe the font path is wrong.
> Please supply the text font file (~/.mplayer/subfont.ttf).
> subtitle font: load_sub_face failed.
> *** [vo] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
> Uninit audio filters... 0.120 ct:  0.069  47/ 47  5% 34%  0.0% 0 0
> [libaf] Removing filter dummy
> uninit audio: liba52
> uninit video: libmpeg2
> ao_dsound: DirectSound uninitialized
> vo: x11 uninit called but X11 not inited..
> 
> Exiting... (Quit)
> 
> _______________________________________________
> MPlayer-cygwin mailing list
> MPlayer-cygwin at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-cygwin
>




More information about the MPlayer-cygwin mailing list