[MPlayer-cygwin] How to make MPlayer to play video with CoreAVC?

Eugene Kovgar ken20001 at ukr.net
Tue Aug 3 14:57:42 CEST 2010


1) Of course I have codecs.conf in ./mplayer folder.
2) Of course I have following in codecs.conf file:

videocodec coreavcwindows
   info "CoreAVC H.264 for x86 - http://corecodec.org/"
   comment "this codec will only work after purchasing it"
   status working
   fourcc H264,h264
   fourcc X264,x264
   fourcc avc1 AVC1,AVC1
   fourcc davc,DAVC
   fourcc VSSH
   format 0x10000005
   driver dshow
   dll "CoreAVCDecoder.ax"
   guid 0x09571a4b, 0xf1fe, 0x4c60, 0x97, 0x60, 0xde, 0x6d, 0x31, 0x0c,  
0x7c, 0x31
   out YV12,IYUV,I420,YUY2

3) Of course I have very new MPlayer because I've compiled it two days ago  
after you gave me an advice with error with vorbisencoder during MPlayer  
compilation (Thanks again!)
4) First I puted CoreAVCDecoder.ax in ./codecs folder but it it not helped.
5) Next I just installed CoreAVCDecoder in my system.
6) After that I've got working sound and black empty video window without  
picture.
7) Here is normal output info:


MPlayer SVN-r31859-4.5.0 (C) 2000-2010 MPlayer Team
159 audio & 340 video codecs

Playing  
D:\zzz\temp\Cop.Out.2010.BDRip-AVC.Rus-VO-sewq0.DVO-Elektrichka.Eng.Subs
-Rus.Eng.Fre.Spa.Por.tRuAVC.mkv.
libavformat file format detected.
[matroska @ 05009060] max_analyze_duration reached
[matroska @ 05009060] Estimating duration from bitrate, this may be  
inaccurate
[lavf] stream 0: video (h264), -vid 0, Двойной КОПец / Cop Out - by  
Juicy_J - x2
64; High at L4.0; 1152x480 (2.40:1); 3052 kbps; 23.976 fps; 0.230 b/px
[lavf] stream 1: audio (aac), -aid 0, -alang rus, Русский (VO; seq0 -  
ненорматив
ная лексика); AAC-LC; -q 0.37; VBR~265 kbps; 6 ch; 48 kHz
[lavf] stream 2: audio (aac), -aid 1, -alang rus, Русский (DVO;  
"Электричка"); A
AC-LC; -q 0.37; VBR~265 kbps; 6 ch; 48 kHz
[lavf] stream 3: audio (aac), -aid 2, -alang eng, Английский; AAC-LC; -q  
0.37; V
BR~265 kbps; 6 ch; 48 kHz
[lavf] stream 4: subtitle (unknown), -sid 0, -slang rus, Русские (seqw0,  
ненорма
тивная лексика)
[lavf] stream 5: subtitle (unknown), -sid 1, -slang eng, Английские SDH
[lavf] stream 6: subtitle (unknown), -sid 2, -slang fre, Французские
[lavf] stream 7: subtitle (unknown), -sid 3, -slang spa, Испанские
[lavf] stream 8: subtitle (unknown), -sid 4, -slang por, Португальские
VIDEO:  [H264]  1152x480  0bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Forced video codec: coreavcwindows
Opening video decoder: [dshow] DirectShow video codecs
Decoder supports the following YUV formats: YUY2 UYVY YV12 I420
Decoder is capable of YUV output (flags 0x2b)
[PP] Using codec's postprocessing, max q = 4.
Movie-Aspect is 2.40:1 - prescaling to correct movie aspect.
VO: [directx] 1152x480 => 1152x480 Planar YV12
VideoDecoder::SetExtAttr: registry failure
Selected video codec: [coreavcwindows] vfm: dshow (CoreAVC H.264 for x86 -  
http:
//corecodec.org/)
==========================================================================
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [win32] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...

8) Here is verbose long-long output info:


MPlayer SVN-r31859-4.5.0 (C) 2000-2010 MPlayer Team
CPU vendor name: GenuineIntel  max cpuid level: 3
CPU: Intel(R) Celeron(R) CPU 2.53GHz (Family: 15, Model: 4, Stepping: 1)
extended cpuid-level: 8
extended cache-info: 16793664
Detected cache-line size is 64 bytes
Testing OS support for SSE... yes.
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSSE3: 0
Compiled with runtime CPU detection.
get_path('codecs.conf') -> 'C:/Program Files  
(x86)/Mplayer/mplayer/codecs.conf'
Reading C:/Program Files (x86)/Mplayer/mplayer/codecs.conf: 159 audio &  
340 vide
o codecs
Configuration: --prefix=/home/Eugene --enable-static --enable-largefiles  
--enabl
e-runtime-cpudetection --disable-tremor-internal --disable-faad-internal  
--enabl
e-mng --enable-menu
CommandLine: '-v' '-vc' 'coreavcwindows'  
'D:\zzz\temp\Cop.Out.2010.BDRip-AVC.Rus
-VO-sewq0.DVO-Elektrichka.Eng.Subs-Rus.Eng.Fre.Spa.Por.tRuAVC.mkv'
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> 'C:/Program Files (x86)/Mplayer/mplayer/fonts'
Using Windows native timing
get_path('input.conf') -> 'C:/Program Files  
(x86)/Mplayer/mplayer/input.conf'
Parsing input config file C:/Program Files (x86)/Mplayer/mplayer/input.conf
Input config file C:/Program Files (x86)/Mplayer/mplayer/input.conf  
parsed: 91 b
inds
get_path('Cop.Out.2010.BDRip-AVC.Rus-VO-sewq0.DVO-Elektrichka.Eng.Subs-Rus.Eng.F
re.Spa.Por.tRuAVC.mkv.conf') -> 'C:/Program Files  
(x86)/Mplayer/mplayer/Cop.Out.
2010.BDRip-AVC.Rus-VO-sewq0.DVO-Elektrichka.Eng.Subs-Rus.Eng.Fre.Spa.Por.tRuAVC.
mkv.conf'

Playing  
D:\zzz\temp\Cop.Out.2010.BDRip-AVC.Rus-VO-sewq0.DVO-Elektrichka.Eng.Subs
-Rus.Eng.Fre.Spa.Por.tRuAVC.mkv.
get_path('sub/') -> 'C:/Program Files (x86)/Mplayer/mplayer/sub/'
WINSOCK2 init: 0
WINSOCK2 init: 0
[file] File size is 3154824764 bytes
STREAM: [file]  
D:\zzz\temp\Cop.Out.2010.BDRip-AVC.Rus-VO-sewq0.DVO-Elektrichka.E
ng.Subs-Rus.Eng.Fre.Spa.Por.tRuAVC.mkv
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
LAVF_check: Matroska file format
libavformat file format detected.
[matroska @ 04f1f010] max_analyze_duration reached
[matroska @ 04f1f010] Estimating duration from bitrate, this may be  
inaccurate
==> Found video stream: 0
======= VIDEO Format ======
   biSize 85
   biWidth 1152
   biHeight 480
   biPlanes 0
   biBitCount 0
   biCompression 875967048='H264'
   biSizeImage 0
Unknown extra header dump: [1] [64] [0] [28] [ff] [e1] [0] [1c] [67] [64]  
[0] [2
8] [ac] [52] [b] [1] [20] [3d] [b0] [16] [a0] [40] [40] [28] [0] [1] [45]  
[d8] [
0] [3d] [9] [4] [78] [c1] [8c] [5c] [1] [0] [6] [68] [e8] [ae] [1f] [3c]  
[8f]
===========================
[lavf] stream 0: video (h264), -vid 0, Двойной КОПец / Cop Out - by  
Juicy_J - x2
64; High at L4.0; 1152x480 (2.40:1); 3052 kbps; 23.976 fps; 0.230 b/px
==> Found audio stream: 1
======= WAVE Format =======
Format Tag: 20557 (0x504D)
Channels: 6
Samplerate: 48000
avg byte/sec: 0
Block align: 1
bits/sample: 0
cbSize: 5
Unknown extra header dump: [11] [b0] [56] [e5] [0]
==========================================================================
[lavf] stream 1: audio (aac), -aid 0, -alang rus, Русский (VO; seq0 -  
ненорматив
ная лексика); AAC-LC; -q 0.37; VBR~265 kbps; 6 ch; 48 kHz
==> Found audio stream: 2
======= WAVE Format =======
Format Tag: 20557 (0x504D)
Channels: 6
Samplerate: 48000
avg byte/sec: 0
Block align: 1
bits/sample: 0
cbSize: 5
Unknown extra header dump: [11] [b0] [56] [e5] [0]
==========================================================================
[lavf] stream 2: audio (aac), -aid 1, -alang rus, Русский (DVO;  
"Электричка"); A
AC-LC; -q 0.37; VBR~265 kbps; 6 ch; 48 kHz
==> Found audio stream: 3
======= WAVE Format =======
Format Tag: 20557 (0x504D)
Channels: 6
Samplerate: 48000
avg byte/sec: 0
Block align: 1
bits/sample: 0
cbSize: 5
Unknown extra header dump: [11] [b0] [56] [e5] [0]
==========================================================================
[lavf] stream 3: audio (aac), -aid 2, -alang eng, Английский; AAC-LC; -q  
0.37; V
BR~265 kbps; 6 ch; 48 kHz
[lavf] stream 4: subtitle (unknown), -sid 0, -slang rus, Русские (seqw0,  
ненорма
тивная лексика)
[lavf] stream 5: subtitle (unknown), -sid 1, -slang eng, Английские SDH
[lavf] stream 6: subtitle (unknown), -sid 2, -slang fre, Французские
[lavf] stream 7: subtitle (unknown), -sid 3, -slang spa, Испанские
[lavf] stream 8: subtitle (unknown), -sid 4, -slang por, Португальские
LAVF: 3 audio and 1 video streams found
LAVF: build 3427584
VIDEO:  [H264]  1152x480  0bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:44  fourcc:0x34363248  size:1152x480  fps:23.976  ftime:=0.0417
get_path('sub/') -> 'C:/Program Files (x86)/Mplayer/mplayer/sub/'
<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  not 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 supported
<vo_directx><FORMAT OVERLAY>11 RGB24 not supported
<vo_directx><FORMAT OVERLAY>12 BGR24 not supported
<vo_directx><FORMAT OVERLAY>13 RGB32 supported
<vo_directx><FORMAT OVERLAY>14 BGR32 supported
<vo_directx><INFO>Your card supports 6 of 15 overlayformats
<vo_directx><INFO>hardware supports overlay
==========================================================================
Forced video codec: coreavcwindows
Opening video decoder: [dshow] DirectShow video codecs
Decoder supports the following YUV formats: YUY2 UYVY YV12 I420
Decoder is capable of YUV output (flags 0x2b)
VDec: vo config request - 1152 x 480 (preferred colorspace: Planar YV12)
[PP] Using codec's postprocessing, max q = 4.
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 2.40:1 - prescaling to correct movie aspect.
VO Config (1152x480->1152x480,flags=0,'MPlayer',0x32315659)
VO: [directx] 1152x480 => 1152x480 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
VideoDecoder::SetExtAttr: registry failure
INFO: Win32/DShow video codec init OK.
Selected video codec: [coreavcwindows] vfm: dshow (CoreAVC H.264 for x86 -  
http:
//corecodec.org/)
==========================================================================
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
dec_audio: Allocating 6144 bytes for input buffer.
dec_audio: Allocating 65536 + 65536 = 131072 bytes for output buffer.
FAAD: Decoder init done (0Bytes)!
FAAD: Negotiated samplerate: 48000Hz  channels: 6
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
Building audio filter chain for 48000Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[dummy] Was reinitialized: 48000Hz/2ch/s16le
Trying preferred audio driver 'win32', options '[none]'
ao_win32: Samplerate:48000Hz Channels:2 Format:s16le
ao_win32: Buffersize:4096
AO: [win32] 48000Hz 2ch s16le (2 bytes per sample)
AO: Description: Windows waveOut audio output
AO: Author: Sascha Sommer <saschasommer at freenet.de>
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...
Increasing filtered audio buffer size from 0 to 63488
*** [vo] Allocating mp_image_t, 1152x480x12bpp YUV planar, 829440 bytes
Unicode font: 241 glyphs.
Unicode font: 241 glyphs.
pts value < previous
pts value < previous
pts value < previous
pts value < previous
pts value < previous
pts value < previous
pts value < previous
pts value < previous
pts value < previous
pts value < previous
pts value < previous
pts value < previous
pts value < previous
pts value < previous
pts value < previous
pts value < previous
pts value < previous
pts value < previous
pts value < previous
pts value < previous
pts value < previous

9) The only error we seeing is:

VideoDecoder::SetExtAttr: registry failure

May here is the reason? Anyway the video window screen is black without  
picture in it.



More information about the MPlayer-cygwin mailing list