[MPlayer-dev-eng] Add support for vorbis.acm

Zuxy Meng zuxy.meng at gmail.com
Mon Mar 3 14:30:21 CET 2008


Hi,

2008/3/3, Zuxy Meng <zuxy.meng at gmail.com>:
> Hi,
>
> 2008/3/3, Diego Biurrun <diego at biurrun.de>:
> > On Sat, Mar 01, 2008 at 09:31:17PM +0800, Zuxy Meng wrote:
> > >
> > > 2008/3/1, Diego Biurrun <diego at biurrun.de>:
> > > > Indeed a few samples work better, but the following has no sound after
> > > > applying your patch:
> > > >
> > > > http://samples.mplayerhq.hu/avi/ogg/Coyote.Ugly.Sample.Ogg.Vorbis.avi
> > >
> > > Seriously? Played fine here. MPlayer selected ffvorbis as the decoder:
> >
> > I checked back, the file plays fine standalone, but when I play it as
> > the second file in a row after coyote-avidump.ogg I get no sound.  Doh.
>
> Reproduced. Surely a bug. I'll see if I can fix it.

The problem is a bit weird. It can be seen sometimes if you put
mode2_ogg.avi in the command line followed by
Coyote.Ugly.Sample.Ogg.Vorbis.avi:

mplayer -msglevel demux=8 mode2_ogg.avi Coyot
e.Ugly.Sample.Ogg.Vorbis.avi
MPlayer dev-SVN-r26108-4.2.1 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Pentium(R) M processor 2.00GHz (Family: 6, Model: D, 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
118 audio & 237 video codecs

Playing mode2_ogg.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
AVI index offset: 0xA808 (movi=0xA80C idx0=0x4 idx1=0xE28)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video size=636116 (201) audio size=69818 (17516)
VIDEO:  [DX50]  352x288  24bpp  24.987 fps  632.6 kbps (77.2 kbyte/s)
Opening video filter: [screenshot]
Opening video filter: [pp=de]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Opening audio decoder: [acm] Win32/ACM decoders
Loading codec DLL: 'vorbis.acm'
Loaded DLL driver vorbis.acm at 2a10000
Warning! ACM codec reports srcsize=0
AUDIO: 22050 Hz, 2 ch, s16le, 96.0 kbit/13.61% (ratio: 12000->88200)
Selected audio codec: [vorbisacm] afm: acm (OggVorbis ACM)
==========================================================================
AO: [dsound] 22050Hz 2ch s16le (2 bytes per sample)
Starting playback...
XXX initial  v_pts=0.040  a_pos=3612 (0.301)
VDec: vo config request - 352 x 288 (preferred colorspace: Planar YV12)
[PP] Using external postprocessing filter, max q = 6.
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.22:1 - prescaling to correct movie aspect.
[swscaler @ 00A23850]No accelerated colorspace conversion found
[swscaler @ 00A23850]SwScaler: using unscaled yuv420p -> rgb24 special converter

VO: [directx] 352x288 => 352x288 Planar YV12


Playing Coyote.Ugly.Sample.Ogg.Vorbis.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video size=18597709 (1913)  audio size=796005
AVI Ogg found page with serial 3568
fixup_vorbis_wf: i=0, size=30
fixup_vorbis_wf: i=1, size=48
fixup_vorbis_wf: i=2, size=4378
demux_ogg, offset after 1st len = 2
demux_ogg, offset after 2nd len = 3
demux_ogg, i=0, bytes: 30, offset: 3
demux_ogg, i=1, bytes: 48, offset: 33
demux_ogg, i=2, bytes: 4378, offset: 81
demux_ogg, extradata size: 4459
demux_ogg, vorbis stream features are: channels: 2, srate: 48000, bitrate: 20000
, max: 0, nominal: 160000, min: 0
VIDEO:  [DIV3]  640x480  24bpp  25.000 fps  1944.3 kbps (237.3 kbyte/s)
Opening video filter: [screenshot]
Opening video filter: [pp=de]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffdivx] vfm: ffmpeg (FFmpeg DivX ;-) (MSMPEG-4 v3))
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
Ogg : bad packet in stream 0
XXX initial  v_pts=0.160  a_pos=12762 (0.072)
Ogg : Stream EOF !!!!
AUDIO: 48000 Hz, 2 ch, s16le, 160.0 kbit/10.42% (ratio: 20000->192000)
Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis decoder)
==========================================================================
AO: [dsound] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Ogg : Stream EOF !!!!
VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)
[PP] Using external postprocessing filter, max q = 6.
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 00A23850]No accelerated colorspace conversion found
VO: [directx] 640x480 => 640x480 Planar YV12
Ogg : Stream EOF !!!!
Ogg : Stream EOF !!!!
Ogg : Stream EOF !!!!
Ogg : Stream EOF !!!!
Ogg : Stream EOF !!!!
Ogg : Stream EOF !!!!
Ogg : Stream EOF !!!!
Ogg : Stream EOF !!!!
Ogg : Stream EOF !!!!
Ogg : Stream EOF !!!!
Ogg : Stream EOF !!!!
Ogg : Stream EOF !!!!
Ogg : Stream EOF !!!!
Ogg : Stream EOF !!!!
Ogg : Stream EOF !!!!
Ogg : Stream EOF !!!!
Ogg : Stream EOF !!!!
Ogg : Stream EOF !!!!

Exiting... (Quit)

And sometimes it works fine:
mplayer -msglevel demux=8 mode2_ogg.avi Coyot
e.Ugly.Sample.Ogg.Vorbis.avi
MPlayer dev-SVN-r26108-4.2.1 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Pentium(R) M processor 2.00GHz (Family: 6, Model: D, 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
118 audio & 237 video codecs

Playing mode2_ogg.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
AVI index offset: 0xA808 (movi=0xA80C idx0=0x4 idx1=0xE28)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video size=636116 (201) audio size=69818 (17516)
VIDEO:  [DX50]  352x288  24bpp  24.987 fps  632.6 kbps (77.2 kbyte/s)
Opening video filter: [screenshot]
Opening video filter: [pp=de]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Opening audio decoder: [acm] Win32/ACM decoders
Loading codec DLL: 'vorbis.acm'
Loaded DLL driver vorbis.acm at 2a10000
Warning! ACM codec reports srcsize=0
AUDIO: 22050 Hz, 2 ch, s16le, 96.0 kbit/13.61% (ratio: 12000->88200)
Selected audio codec: [vorbisacm] afm: acm (OggVorbis ACM)
==========================================================================
AO: [dsound] 22050Hz 2ch s16le (2 bytes per sample)
Starting playback...
XXX initial  v_pts=0.040  a_pos=3612 (0.301)
VDec: vo config request - 352 x 288 (preferred colorspace: Planar YV12)
[PP] Using external postprocessing filter, max q = 6.
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.22:1 - prescaling to correct movie aspect.
[swscaler @ 00A23850]No accelerated colorspace conversion found
[swscaler @ 00A23850]SwScaler: using unscaled yuv420p -> rgb24 special converter

VO: [directx] 352x288 => 352x288 Planar YV12


Playing Coyote.Ugly.Sample.Ogg.Vorbis.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video size=18597709 (1913)  audio size=796005
AVI Ogg found page with serial 3568
fixup_vorbis_wf: i=0, size=30
fixup_vorbis_wf: i=1, size=48
fixup_vorbis_wf: i=2, size=4378
demux_ogg, offset after 1st len = 2
demux_ogg, offset after 2nd len = 3
demux_ogg, i=0, bytes: 30, offset: 3
demux_ogg, i=1, bytes: 48, offset: 33
demux_ogg, i=2, bytes: 4378, offset: 81
demux_ogg, extradata size: 4459
demux_ogg, vorbis stream features are: channels: 2, srate: 48000, bitrate: 20000
, max: 0, nominal: 160000, min: 0
VIDEO:  [DIV3]  640x480  24bpp  25.000 fps  1944.3 kbps (237.3 kbyte/s)
Opening video filter: [screenshot]
Opening video filter: [pp=de]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffdivx] vfm: ffmpeg (FFmpeg DivX ;-) (MSMPEG-4 v3))
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
Ogg : bad packet in stream 0
New dp: 012DA190  ds=012D65D0  pts=0.001  len=1  flag=0
New dp: 012DA490  ds=012D65D0  pts=0.022  len=1  flag=0
AUDIO: 48000 Hz, 2 ch, s16le, 160.0 kbit/10.42% (ratio: 20000->192000)
Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis decoder)
==========================================================================
AO: [dsound] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
New dp: 012DB860  ds=012D65D0  pts=0.044  len=1  flag=0
New dp: 012DB8B0  ds=012D65D0  pts=0.046  len=36  flag=0
New dp: 012DB920  ds=012D65D0  pts=0.049  len=64  flag=0
New dp: 012DB9B0  ds=012D65D0  pts=0.052  len=60  flag=0
New dp: 012DBA40  ds=012D65D0  pts=0.054  len=63  flag=0
New dp: 012DBAD0  ds=012D65D0  pts=0.057  len=68  flag=0
New dp: 012DBB60  ds=012D65D0  pts=0.060  len=420  flag=0
New dp: 012DBD50  ds=012D65D0  pts=0.081  len=433  flag=0
New dp: 012DB100  ds=012D65D0  pts=0.102  len=412  flag=0
New dp: 012DB2F0  ds=012D65D0  pts=0.124  len=421  flag=0
New dp: 012DB740  ds=012D65D0  pts=0.145  len=451  flag=0
New dp: 012DBA30  ds=012D65D0  pts=0.166  len=426  flag=0
New dp: 012DBC30  ds=012D65D0  pts=0.188  len=429  flag=0
New dp: 012DBE30  ds=012D65D0  pts=0.209  len=440  flag=0
New dp: 012DB2C0  ds=012D65D0  pts=0.241  len=427  flag=0
New dp: 012DB750  ds=012D65D0  pts=0.263  len=402  flag=0
New dp: 012DBA00  ds=012D65D0  pts=0.284  len=411  flag=0
New dp: 012DBBF0  ds=012D65D0  pts=0.305  len=408  flag=0
New dp: 012DBDD0  ds=012D65D0  pts=0.327  len=420  flag=0
New dp: 012DB2B0  ds=012D65D0  pts=0.348  len=394  flag=0
New dp: 012DB730  ds=012D65D0  pts=0.369  len=412  flag=0
New dp: 012DBA10  ds=012D65D0  pts=0.391  len=410  flag=0
New dp: 012DBC00  ds=012D65D0  pts=0.412  len=390  flag=0
New dp: 012DBDD0  ds=012D65D0  pts=0.433  len=407  flag=0
New dp: 012DB2A0  ds=012D65D0  pts=0.455  len=394  flag=0
XXX initial  v_pts=0.160  a_pos=12762 (0.072)
New dp: 012DB920  ds=012D65D0  pts=0.476  len=409  flag=0
New dp: 012DBB10  ds=012D65D0  pts=0.497  len=400  flag=0
New dp: 012DBCF0  ds=012D65D0  pts=0.519  len=395  flag=0
New dp: 012DBED0  ds=012D65D0  pts=0.540  len=413  flag=0
New dp: 012DB2B0  ds=012D65D0  pts=0.561  len=428  flag=0
New dp: 012DBAE0  ds=012D65D0  pts=0.583  len=426  flag=0
New dp: 012DBCE0  ds=012D65D0  pts=0.604  len=419  flag=0
New dp: 012DBED0  ds=012D65D0  pts=0.625  len=432  flag=0
New dp: 012DB2C0  ds=012D65D0  pts=0.647  len=422  flag=0
New dp: 012DBAD0  ds=012D65D0  pts=0.668  len=412  flag=0
New dp: 012DBE80  ds=012D65D0  pts=0.689  len=409  flag=0
New dp: 012DB2B0  ds=012D65D0  pts=0.711  len=414  flag=0
New dp: 012DBA90  ds=012D65D0  pts=0.732  len=408  flag=0
New dp: 012DBC70  ds=012D65D0  pts=0.753  len=401  flag=0
New dp: 012DB2A0  ds=012D65D0  pts=0.775  len=409  flag=0
New dp: 012DBA90  ds=012D65D0  pts=0.796  len=415  flag=0
New dp: 012DBC80  ds=012D65D0  pts=0.817  len=422  flag=0
New dp: 012DB2B0  ds=012D65D0  pts=0.839  len=394  flag=0
New dp: 012DB8E0  ds=012D65D0  pts=0.860  len=396  flag=0
New dp: 012DBAC0  ds=012D65D0  pts=0.881  len=398  flag=0
New dp: 012DBE80  ds=012D65D0  pts=0.903  len=409  flag=0
New dp: 012DBC80  ds=012D65D0  pts=0.924  len=414  flag=0
New dp: 012DB3F0  ds=012D65D0  pts=0.945  len=410  flag=0
New dp: 012DBC80  ds=012D65D0  pts=0.967  len=412  flag=0
New dp: 012DB3F0  ds=012D65D0  pts=0.988  len=412  flag=0
New dp: 012DBC80  ds=012D65D0  pts=1.009  len=392  flag=0
New dp: 012DB3F0  ds=012D65D0  pts=1.031  len=415  flag=0
VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)
[PP] Using external postprocessing filter, max q = 6.
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 00A23850]No accelerated colorspace conversion found
VO: [directx] 640x480 => 640x480 Planar YV12
New dp: 012E0F00  ds=012D65D0  pts=1.052  len=417  flag=0
New dp: 012E06C0  ds=012D65D0  pts=1.073  len=412  flag=0
New dp: 012E08B0  ds=012D65D0  pts=1.095  len=409  flag=0
New dp: 012E06C0  ds=012D65D0  pts=1.116  len=413  flag=0
New dp: 012E0AC0  ds=012D65D0  pts=1.137  len=407  flag=0
New dp: 012E02D0  ds=012D65D0  pts=1.159  len=394  flag=0
New dp: 012E0750  ds=012D65D0  pts=1.180  len=60  flag=0
New dp: 012E0810  ds=012D65D0  pts=1.183  len=58  flag=0
New dp: 012E0AC0  ds=012D65D0  pts=1.185  len=61  flag=0
New dp: 012E0ED0  ds=012D65D0  pts=1.188  len=63  flag=0
New dp: 012E0F60  ds=012D65D0  pts=1.191  len=58  flag=0
New dp: 012E0100  ds=012D65D0  pts=1.193  len=59  flag=0
New dp: 012E0190  ds=012D65D0  pts=1.196  len=60  flag=0
New dp: 012E0220  ds=012D65D0  pts=1.199  len=64  flag=0
New dp: 012E0560  ds=012D65D0  pts=1.201  len=58  flag=0
New dp: 012E05F0  ds=012D65D0  pts=1.204  len=413  flag=0
New dp: 012E12B0  ds=012D65D0  pts=1.225  len=385  flag=0
New dp: 012E1480  ds=012D65D0  pts=1.247  len=386  flag=0
New dp: 012E1650  ds=012D65D0  pts=1.268  len=395  flag=0
New dp: 012E1830  ds=012D65D0  pts=1.289  len=59  flag=0
New dp: 012E18C0  ds=012D65D0  pts=1.292  len=55  flag=0
New dp: 012E1940  ds=012D65D0  pts=1.295  len=64  flag=0
New dp: 012E19D0  ds=012D65D0  pts=1.297  len=62  flag=0
New dp: 012E1A60  ds=012D65D0  pts=1.300  len=423  flag=0
New dp: 012E1C50  ds=012D65D0  pts=1.321  len=404  flag=0
New dp: 012CDF80  ds=012D65D0  pts=1.343  len=418  flag=0
New dp: 012DBA10  ds=012D65D0  pts=1.364  len=406  flag=0
New dp: 012DBA00  ds=012D65D0  pts=1.385  len=419  flag=0
New dp: 012DF9E0  ds=012D65D0  pts=1.407  len=59  flag=0
New dp: 012DFA70  ds=012D65D0  pts=1.409  len=58  flag=0
New dp: 012DFB10  ds=012D65D0  pts=1.412  len=61  flag=0
New dp: 012DFBA0  ds=012D65D0  pts=1.415  len=57  flag=0
New dp: 012DF2F0  ds=012D65D0  pts=1.417  len=58  flag=0
New dp: 012DF3A0  ds=012D65D0  pts=1.420  len=61  flag=0
New dp: 012DF430  ds=012D65D0  pts=1.423  len=61  flag=0
New dp: 012DF4D0  ds=012D65D0  pts=1.425  len=61  flag=0
New dp: 012DF560  ds=012D65D0  pts=1.428  len=415  flag=0
New dp: 012DBA10  ds=012D65D0  pts=1.449  len=408  flag=0
New dp: 012DBA00  ds=012D65D0  pts=1.471  len=424  flag=0
New dp: 012DBBF0  ds=012D65D0  pts=1.492  len=428  flag=0
New dp: 012DB710  ds=012D65D0  pts=1.513  len=410  flag=0
New dp: 012DBA10  ds=012D65D0  pts=1.535  len=409  flag=0
New dp: 012DBAA0  ds=012D65D0  pts=1.556  len=420  flag=0
New dp: 012DB710  ds=012D65D0  pts=1.577  len=408  flag=0
New dp: 012DB710  ds=012D65D0  pts=1.599  len=417  flag=0
New dp: 012DB710  ds=012D65D0  pts=1.620  len=423  flag=0
New dp: 012DB710  ds=012D65D0  pts=1.641  len=414  flag=0
New dp: 012DB710  ds=012D65D0  pts=1.663  len=401  flag=0
New dp: 012DB710  ds=012D65D0  pts=1.684  len=405  flag=0
New dp: 012DB710  ds=012D65D0  pts=1.705  len=402  flag=0
New dp: 012DB710  ds=012D65D0  pts=1.727  len=406  flag=0

Exiting... (Quit)

-- 
Zuxy
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6



More information about the MPlayer-dev-eng mailing list