[MPlayer-cygwin] BUGREPORT - audio stutters with -vo direct3d and directx

John Brown johnbrown_105 at yahoo.com
Sat Jan 1 17:10:05 CET 2011


Hello All,

The first second or so repeats once before MPlayer goes on to
play the movie. MPlayer -vo gl and gl2 do not have this problem.
I tested with a DVD ISO image (MPEG2 + AC3), an AVI (H264 + MP3)
and a Matroska (H264 + AAC + ASS sub).

O/S: Windows Vista Home Premium SP2
Compiler: gcc-4.5.0 (MinGW)

MPlayer version: SVN-r32739

CPU
===
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
stepping        : 6
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr 
pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
pbe pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm
sse4_1 nx lm lahf_lm
cpu MHz         : 1367.138
model name      : Intel(R) Core(TM)2 Duo CPU     T9400  @ 2.53GHz

Command Line: mplayer.exe -endpos 2 -v -vo direct3d
e:\downloads\anime\bleach\*265*.avi > johnbrown105_direct3d.
txt 2>&1

Output
======
MPlayer SVN-r32739-4.5.0 (C) 2000-2010 MPlayer Team
CPU vendor name: GenuineIntel  max cpuid level: 10
CPU: Intel(R) Core(TM)2 Duo CPU     T9400  @ 2.53GHz (Family: 6, Model: 23,
Stepping: 6)
extended cpuid-level: 8
extended cache-info: 402686016
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: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 SSSE3 CMOV
Setting PATH to D:\Downloads\Open_Source\Programs\mplayer-svn\codecs
get_path('codecs.conf') ->
'D:/Downloads/Open_Source/Programs/mplayer-svn/mplayer/codecs.conf'
Reading D:/Downloads/Open_Source/Programs/mplayer-svn/mplayer/codecs.conf:
Can't
open 'D:/Downloads/Open_Source/Programs/mplayer-svn/mplayer/codecs.conf': 
No such file or directory
Reading c:/mingw/local/etc/mplayer/codecs.conf: Can't open
'c:/mingw/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> 'D:/Downloads/Open_Source/Programs/mplayer-svn/mplayer
/fonts'
Configuration: --enable-static --prefix=c:/mingw/local
--extra-cflags=-DPTW32_STATIC_LIB -DLIBTWOLAME_STATIC -DLIBCACA_STATIC
-DFRIBIDI_STATIC -Ic:/mingw/local/include -I/mingw/local/include/dx7
--extra-ldflags=-static -Lc:/mingw/local/lib --extra-libs=-Lc:/mingw/local/lib
-ljpeg -lws2_32 --disable-pthreads --enable-w32threads
CommandLine: '-endpos' '2' '-v' '-vo' 'direct3d'
'e:\downloads\anime\bleach\[DB]_Bleach_265_[B4A04EC9].avi'
Using Windows native timing
get_path('input.conf') ->
'D:/Downloads/Open_Source/Programs/mplayer-svn/mplayer/input.conf'
Can't open input config file
D:/Downloads/Open_Source/Programs/mplayer-svn/mplayer/input.conf: 
No such file or directory
Can't open input config file c:/mingw/local/etc/mplayer/input.conf:
No such file or directory
Falling back on default (hardcoded) input config
get_path('[DB]_Bleach_265_[B4A04EC9].avi.conf') ->
'D:/Downloads/Open_Source/Programs/mplayer-svn/mplayer/
[DB]_Bleach_265_[B4A04EC9].avi.conf'

Playing e:\downloads\anime\bleach\[DB]_Bleach_265_[B4A04EC9].avi.
get_path('sub/') -> 'D:/Downloads/Open_Source/Programs/mplayer-svn/
mplayer/sub/'
WINSOCK2 init: 0
WINSOCK2 init: 0
[file] File size is 178299996 bytes
STREAM: [file] e:\downloads\anime\bleach\[DB]_Bleach_265_[B4A04EC9].avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
LAVF_check: AVI format
AVI file format detected.
list_end=0xFFC0
======= AVI Header =======
us/frame: 41708  (fps=23.976)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
frames  total: 146   initial: 0
streams: 2
Suggested BufferSize: 0
Size:  848 x 480
==========================
list_end=0x134
==> Found video stream: 0
[aviheader] Video stream found, -vid 0
====== STREAM Header =====
Type: vids   FCC: x264 (34363278)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 10000000/417083 = 23.976
Start: 0   Len: 34553
Suggested BufferSize: 127500
Quality 10000
Sample size: 0
==========================
Found 'bih', 40 bytes of 40
======= VIDEO Format ======
  biSize 40
  biWidth 848
  biHeight 480
  biPlanes 1
  biBitCount 24
  biCompression 875967048='H264'
  biSizeImage 1225216
===========================
====== AVI Super Index Header ========
  FCC (indx) dwSize (88) wLongsPerEntry(4)
  bIndexSubType (0) bIndexType (0)
  nEntriesInUse (4) dwChunkId (00dc)
  dwReserved[0] (0) dwReserved[1] (0) dwReserved[2] (0)
===========================
ODML (00dc): [0] 0x0000000000115fb0 0x04b0 146
ODML (00dc): [1] 0x0000000003b36ca4 0x1d760 15080
ODML (00dc): [2] 0x0000000007af9d18 0x1cde0 14776
ODML (00dc): [3] 0x000000000aa00754 0x8e58 4551
list_end=0x214
==> Found audio stream: 1
[aviheader] Audio stream found, -aid 1
====== STREAM Header =====
Type: auds   FCC:  (0)
Flags: 1
Priority: 0   Language: 0
InitialFrames: 1
Rate: 16000/1 = 16000.000
Start: 0   Len: 23058432
Suggested BufferSize: 48384
Quality -1
Sample size: 1
==========================
Found 'wf', 30 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 48000
avg byte/sec: 16000
Block align: 1
bits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=384
mp3.nFramesPerBlock=1
mp3.nCodecDelay=0
======================================
====== AVI Super Index Header ========
  FCC (indx) dwSize (88) wLongsPerEntry(4)
  bIndexSubType (0) bIndexType (0)
  nEntriesInUse (4) dwChunkId (01wb)
  dwReserved[0] (0) dwReserved[1] (0) dwReserved[2] (0)
===========================
ODML (01wb): [0] 0x0000000000116460 0x0078 100992
ODML (01wb): [1] 0x0000000003b54404 0x16b0 10063104
ODML (01wb): [2] 0x0000000007b16af8 0x16d0 9860736
ODML (01wb): [3] 0x000000000aa095ac 0x0eb0 3033600
list_end=0x320
AVI: dmlh found (size=248) (total_frames=34553)
list_end=0xFFF4
hdr=Software  size=23
Software  : Windows Movie Maker 3.0
list_end=0x1164D8
Found movie at 0x10000 - 0x1164D8
Reading INDEX block, 157 chunks for 146 frames (fpos=1139936).
Additional RIFF header...
list_end=0xAA0A45C
Found movie at 0x10000 - 0xAA0A45C
AVI: ODML: Building ODML index (2 superindexchunks).
====== AVI Standard Index Header ========
  FCC (ix00) dwSize (1192) wLongsPerEntry(2)
  bIndexSubType (0) bIndexType (1)
  nEntriesInUse (146) dwChunkId (00dc)
  qwBaseOffset (0x1000C) dwReserved3 (0)
===========================
====== AVI Standard Index Header ========
  FCC (ix00) dwSize (120664) wLongsPerEntry(2)
  bIndexSubType (0) bIndexType (1)
  nEntriesInUse (15080) dwChunkId (00dc)
  qwBaseOffset (0x116ED4) dwReserved3 (0)
===========================
====== AVI Standard Index Header ========
  FCC (ix00) dwSize (118232) wLongsPerEntry(2)
  bIndexSubType (0) bIndexType (1)
  nEntriesInUse (14776) dwChunkId (00dc)
  qwBaseOffset (0x116ED4) dwReserved3 (0)
===========================
====== AVI Standard Index Header ========
  FCC (ix00) dwSize (36432) wLongsPerEntry(2)
  bIndexSubType (0) bIndexType (1)
  nEntriesInUse (4551) dwChunkId (00dc)
  qwBaseOffset (0x116ED4) dwReserved3 (0)
===========================
====== AVI Standard Index Header ========
  FCC (ix01) dwSize (112) wLongsPerEntry(2)
  bIndexSubType (0) bIndexType (1)
  nEntriesInUse (11) dwChunkId (01wb)
  qwBaseOffset (0x1000C) dwReserved3 (0)
===========================
====== AVI Standard Index Header ========
  FCC (ix01) dwSize (5800) wLongsPerEntry(2)
  bIndexSubType (0) bIndexType (1)
  nEntriesInUse (722) dwChunkId (01wb)
  qwBaseOffset (0x116ED4) dwReserved3 (0)
===========================
====== AVI Standard Index Header ========
  FCC (ix01) dwSize (5832) wLongsPerEntry(2)
  bIndexSubType (0) bIndexType (1)
  nEntriesInUse (726) dwChunkId (01wb)
  qwBaseOffset (0x116ED4) dwReserved3 (0)
===========================
====== AVI Standard Index Header ========
  FCC (ix01) dwSize (3752) wLongsPerEntry(2)
  bIndexSubType (0) bIndexType (1)
  nEntriesInUse (466) dwChunkId (01wb)
  qwBaseOffset (0x116ED4) dwReserved3 (0)
===========================
AVI index offset: 0x0 (movi=0x10000 idx0=0x1000C idx1=0x10DA0)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video size=154552689 (34553) audio size=23058432 (23058432)
VIDEO:  [H264]  848x480  24bpp  23.976 fps  857.9 kbps (104.7 kbyte/s)
Auto-selected AVI audio ID = 1
[V] filefmt:3  fourcc:0x34363248  size:848x480  fps:23.976  ftime:=0.0417
Clip info:
 Software: Windows Movie Maker 3.0
get_path('sub/') -> 'D:/Downloads/Open_Source/Programs/mplayer-svn/
mplayer/sub/'
<vo_direct3d>Setting backbuffer dimensions to (1680x945).
<vo_direct3d>device_caps_power2_only 0, device_caps_square_only 0
<vo_direct3d>device_texture_sys 0
<vo_direct3d>max_texture_width 8192, max_texture_height 8192
vo: win32: running at 1680x945 with depth 32
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
mp3lib: using SSE optimized decore!
MP3lib: init layer2&3 finished, tables done

MPEG 1.0, Layer III, 48000 Hz 128 kbit Joint-Stereo, BPF: 384
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
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 every known audio driver...
ao_dsound: Output Devices:
0 Primary Sound Driver <--
1 Speakers (Realtek High Definition Audio)
2 Realtek Digital Output (Realtek High Definition 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 bytes per sample)
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...
XXX initial  v_pts=1.418  a_pos=3456 (0.216)
Increasing filtered audio buffer size from 0 to 65536
[h264 @ 0135db14]no picture
[h264 @ 0135db14]no picture
[ffmpeg] aspect_ratio: 1.766667
VDec: vo config request - 848 x 480 (preferred colorspace: Planar YV12)
Trying filter chain: vo
<vo_direct3d>Accepted image format: Planar YV12
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.77:1 - prescaling to correct movie aspect.
VO Config (848x480->848x480,flags=0,'MPlayer',0x32315659)
VO: [direct3d] 848x480 => 848x480 Planar YV12
VO: Description: Direct3D 9 Renderer
VO: Author: Georgi Petrov (gogothebee) <gogothebee at gmail.com>
<vo_direct3d>Accepted image format: Planar YV12
<vo_direct3d>destroy_d3d_surfaces called.
<vo_direct3d>configure_d3d called.
<vo_direct3d>destroy_d3d_surfaces called.
<vo_direct3d>destroy_d3d_surfaces called.
<vo_direct3d>New backbuffer (1680x945), VO (848x480)
<vo_direct3d>create_d3d_surfaces called.
<vo_direct3d>OSD texture size (848x480), requested (848x480).
<vo_direct3d>Fullscreen movie rectangle: t: 0, l: 0, r: 848, b:480
*** [vo] Exporting mp_image_t, 848x480x12bpp YUV planar, 610560 bytes
A:   0.4 V:   0.1 A-V:  0.297 ct:  0.000   3/  3 ??% ??% ??,?% 0 0            

Increasing filtered audio buffer size from 65536 to 67584
A:   0.4 V:   0.1 A-V:  0.275 ct: -0.004   4/  4 ??% ??% ??,?% 1 0            
A:   0.4 V:   0.2 A-V:  0.243 ct: -0.008   5/  5 ??% ??% ??,?% 2 0            
A:   0.4 V:   0.2 A-V:  0.221 ct: -0.010   6/  6 ??% ??% ??,?% 3 0            
A:   0.4 V:   0.3 A-V:  0.190 ct: -0.012   7/  7 ??% ??% ??,?% 4 0            
A:   0.5 V:   0.3 A-V:  0.168 ct: -0.014   8/  8 ??% ??% ??,?% 4 0            
A:   0.5 V:   0.3 A-V:  0.146 ct: -0.015   9/  9 ??% ??% ??,?% 5 0            
A:   0.5 V:   0.4 A-V:  0.115 ct: -0.017  10/ 10 ??% ??% ??,?% 6 0            
A:   0.5 V:   0.4 A-V:  0.093 ct: -0.018  11/ 11 ??% ??% ??,?% 6 0            
A:   0.5 V:   0.5 A-V:  0.061 ct: -0.020  12/ 12 ??% ??% ??,?% 7 0            
A:   0.5 V:   0.5 A-V:  0.040 ct: -0.021  13/ 13 ??% ??% ??,?% 7 0            
A:   0.6 V:   0.5 A-V:  0.018 ct: -0.022  14/ 14 278% 30%  3.2% 7 0           
A:   0.6 V:   0.6 A-V: -0.014 ct: -0.023  15/ 15 258% 29%  3.0% 7 0           
A:   0.6 V:   0.6 A-V: -0.016 ct: -0.025  16/ 16 241% 27%  2.7% 7 0           
A:   0.7 V:   0.7 A-V: -0.017 ct: -0.027  17/ 17 226% 25%  2.7% 7 0           
A:   0.7 V:   0.7 A-V: -0.019 ct: -0.029  18/ 18 213% 24%  2.7% 7 0           
A:   0.7 V:   0.8 A-V: -0.011 ct: -0.030  19/ 19 201% 22%  2.7% 7 0           
A:   0.8 V:   0.8 A-V: -0.012 ct: -0.031  20/ 20 191% 21%  2.7% 7 0           
A:   0.8 V:   0.8 A-V: -0.014 ct: -0.033  21/ 21 182% 20%  2.6% 7 0           
A:   0.9 V:   0.9 A-V: -0.006 ct: -0.033  22/ 22 174% 20%  2.6% 7 0           
A:   0.9 V:   0.9 A-V:  0.002 ct: -0.033  23/ 23 166% 19%  2.5% 7 0           
A:   0.9 V:   1.0 A-V: -0.009 ct: -0.034  24/ 24 160% 19%  2.4% 7 0           
A:   1.0 V:   1.0 A-V: -0.001 ct: -0.034  25/ 25 154% 18%  2.4% 7 0           
A:   1.0 V:   1.0 A-V: -0.013 ct: -0.036  26/ 26 148% 17%  2.4% 7 0           
A:   1.1 V:   1.1 A-V: -0.004 ct: -0.036  27/ 27 143% 17%  2.4% 7 0           
A:   1.1 V:   1.1 A-V: -0.006 ct: -0.037  28/ 28 138% 16%  2.4% 7 0           
A:   1.2 V:   1.2 A-V:  0.002 ct: -0.037  29/ 29 134% 16%  2.4% 7 0           
A:   1.2 V:   1.2 A-V: -0.010 ct: -0.038  30/ 30 130% 15%  2.4% 7 0           
A:   1.2 V:   1.3 A-V: -0.001 ct: -0.038  31/ 31 126% 15%  2.4% 7 0           
A:   1.3 V:   1.3 A-V: -0.003 ct: -0.038  32/ 32 122% 14%  2.4% 7 0           
A:   1.3 V:   1.3 A-V:  0.005 ct: -0.038  33/ 33 119% 14%  2.4% 7 0           
A:   1.4 V:   1.4 A-V: -0.006 ct: -0.038  34/ 34 116% 14%  2.4% 7 0           
A:   1.4 V:   1.4 A-V:  0.002 ct: -0.038  35/ 35 113% 13%  2.4% 7 0           
A:   1.5 V:   1.5 A-V:  0.000 ct: -0.038  36/ 36 110% 13%  2.4% 7 0           
A:   1.5 V:   1.5 A-V: -0.001 ct: -0.039  37/ 37 108% 13%  2.3% 7 0           
A:   1.5 V:   1.5 A-V: -0.003 ct: -0.039  38/ 38 105% 12%  2.3% 7 0           
A:   1.6 V:   1.6 A-V: -0.005 ct: -0.040  39/ 39 103% 12%  2.4% 7 0           
A:   1.6 V:   1.6 A-V: -0.007 ct: -0.040  40/ 40 101% 12%  2.3% 7 0           
A:   1.7 V:   1.7 A-V: -0.008 ct: -0.041  41/ 41 99% 12%  2.3% 7 0            
A:   1.7 V:   1.7 A-V: -0.000 ct: -0.041  42/ 42 97% 11%  2.3% 7 0            
A:   1.7 V:   1.8 A-V: -0.002 ct: -0.041  43/ 43 95% 11%  2.3% 7 0            
A:   1.8 V:   1.8 A-V:  0.007 ct: -0.041  44/ 44 93% 11%  2.3% 7 0            
A:   1.8 V:   1.8 A-V: -0.005 ct: -0.041  45/ 45 92% 11%  2.3% 7 0            
A:   1.9 V:   1.9 A-V:  0.003 ct: -0.041  46/ 46 90% 11%  2.3% 7 0            
A:   1.9 V:   1.9 A-V:  0.001 ct: -0.041  47/ 47 88% 11%  2.3% 7 0            
A:   2.0 V:   2.0 A-V: -0.000 ct: -0.041  48/ 48 87% 10%  2.3% 7 0            
A:   2.0 V:   2.0 A-V:  0.008 ct: -0.041  49/ 49 86% 10%  2.3% 7 0            

EOF code: 1 

Uninit audio filters...
[libaf] Removing filter dummy
Uninit audio: mp3lib
Uninit video: ffmpeg
WINSOCK2 uninit
<vo_direct3d>uninit called.
<vo_direct3d>uninit_d3d called.
<vo_direct3d>destroy_d3d_surfaces called.
<vo_direct3d>Stopping Direct3D.
vo: win32: uninit
ao_dsound: DirectSound uninitialized

Exiting... (End of file)




Regards,
Alias John Brown.




More information about the MPlayer-cygwin mailing list