AAC audio in AVI doesn't work anymore
As reported in: http://mailman.videolan.org/pipermail/vlc-devel/2009-July/063394.html
There are some AVI files which have AAC audio that don't work in VLC anymore (VLC 1.0.1). They do work in VLC 0.8.6i if VLC is start with --codec=faad option. Tested under Win32.
Sample file that shows the issue: http://rapidshare.com/files/261777375/test1-0.avi.html
Messages from VLC 1.0.1:
main debug: processing request item test1-0-aac.avi node Playlist skip 0
main debug: resyncing on test1-0-aac.avi
main debug: test1-0-aac.avi is at 0
main debug: starting new item
main debug: creating new input thread
main debug: Creating an input for 'test1-0-aac.avi'
main debug: thread (input) created at priority 1 (../.././src/input/input.c:230)
main debug: thread started
main debug: using timeshift granularity of 50 MBytes
main debug: using timeshift path 'C:\Users\xxx\AppData\Local\Temp'
main debug: `C:\test1-0-aac.avi' gives access `' demux `' path `C:\test1-0-aac.avi'
main debug: creating demux: access='' demux='' path='C:\test1-0-aac.avi'
main debug: looking for access_demux module: 3 candidates
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: creating access '' path='C:\test1-0-aac.avi'
main debug: looking for access module: 5 candidates
vcd debug: trying .cue file: C:\test1-0-aac.cue
vcd debug: could not find .cue file
qt4 debug: IM: Setting an input
access_file debug: opening file `C:\test1-0-aac.avi'
main debug: using access module "access_file"
main debug: TIMER module_need() : 6.000 ms - Total 6.000 ms / 1 intvls (Avg 6.000 ms)
main debug: Using AStream*Stream
main debug: pre buffering
main debug: received first data after 0 ms
main debug: pre-buffering done 1024 bytes in 0s - 1000000 kbytes/s
main debug: looking for stream_filter module: 2 candidates
main debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
main debug: looking for stream_filter module: 1 candidate
main debug: using stream_filter module "stream_filter_record"
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: creating demux: access='' demux='' path='C:\test1-0-aac.avi'
main debug: looking for demux module: 50 candidates
avi debug: found Chunk fourcc:46464952 (RIFF) size:4659336 pos:0
avi debug: found LIST chunk: 'AVI '
avi debug: <list 'AVI '>
avi debug: found Chunk fourcc:5453494c (LIST) size:8808 pos:12
avi debug: found LIST chunk: 'hdrl'
avi debug: <list 'hdrl'>
avi debug: found Chunk fourcc:68697661 (avih) size:56 pos:24
avi debug: avih: streams:2 flags: IS_INTERLEAVED TRUST_CKTYPE 800x600
avi debug: found Chunk fourcc:5453494c (LIST) size:4240 pos:88
avi debug: found LIST chunk: 'strl'
avi debug: <list 'strl'>
avi debug: found Chunk fourcc:68727473 (strh) size:56 pos:100
avi debug: strh: type:vids handler:0x34363248 samplesize:1440000 25.00fps
avi debug: found Chunk fourcc:66727473 (strf) size:40 pos:164
avi debug: strf: video:H264 800x600 planes:1 24bpp
avi debug: found Chunk fourcc:4b4e554a (JUNK) size:4116 pos:212
avi debug: </list 'strl'>
avi debug: found Chunk fourcc:5453494c (LIST) size:4216 pos:4336
avi debug: found LIST chunk: 'strl'
avi debug: <list 'strl'>
avi debug: found Chunk fourcc:68727473 (strh) size:56 pos:4348
avi debug: strh: type:auds handler:0x00000001 samplesize:0 46.88fps
avi debug: found Chunk fourcc:66727473 (strf) size:16 pos:4412
avi debug: strf: audio:0x00ff channels:1 48000Hz 16bits/sample 62kb/s
avi debug: found Chunk fourcc:4b4e554a (JUNK) size:4116 pos:4436
avi debug: </list 'strl'>
avi debug: found Chunk fourcc:4b4e554a (JUNK) size:260 pos:8560
avi debug: </list 'hdrl'>
avi debug: found Chunk fourcc:5453494c (LIST) size:4650508 pos:8828
avi debug: skipping movi chunk
avi debug: </list 'AVI '>
avi debug: * LIST-root size:4659344 pos:0
avi debug: + RIFF-AVI size:4659336 pos:0
avi debug: | + LIST-hdrl size:8808 pos:12
avi debug: | | + avih size:56 pos:24
avi debug: | | + LIST-strl size:4240 pos:88
avi debug: | | | + strh size:56 pos:100
avi debug: | | | + strf size:40 pos:164
avi debug: | | | + JUNK size:4116 pos:212
avi debug: | | + LIST-strl size:4216 pos:4336
avi debug: | | | + strh size:56 pos:4348
avi debug: | | | + strf size:16 pos:4412
avi debug: | | | + JUNK size:4116 pos:4436
avi debug: | | + JUNK size:260 pos:8560
avi debug: | + LIST-movi size:4650508 pos:8828
avi debug: AVIH: 2 stream, flags IS_INTERLEAVED TRUST_CKTYPE
avi debug: stream[0] rate:25 scale:1 samplesize:0
avi debug: stream[0] video(H264) 800x600 24bpp 25.000000fps
main debug: selecting program id=0
avi debug: stream[1] rate:375 scale:8 samplesize:0
avi debug: stream[1] audio(0xff) 1 channels 48000Hz 16bits
avi warning: cannot find idx1 chunk, no index defined
avi warning: cannot find indx (misdetect/broken OpenDML file?)
avi warning: cannot find indx (misdetect/broken OpenDML file?)
avi debug: stream[0] created 0 index entries
avi debug: stream[1] created 0 index entries
avi warning: broken or missing index, 'seek' will be approximative or will exhibit strange behavior
qt4 debug: Updating the geometry
qt4 debug: Updating the geometry
avi debug: Fixing AVI index
avi warning: creating index from LIST-movi, will take time !
avi debug: stream[0] creating 750 index entries
avi debug: stream[1] creating 1406 index entries
avi debug: stream[0] length:30 (based on index)
avi debug: stream[1] length:29 (based on index)
main debug: using demux module "avi"
main debug: TIMER module_need() : 1784.000 ms - Total 1784.000 ms / 1 intvls (Avg 1784.000 ms)
main debug: looking for a subtitle file in C:\
main debug: looking for decoder module: 36 candidates
avcodec debug: libavcodec already initialized
avcodec debug: ffmpeg codec (H264 - MPEG-4 AVC (part 10)) started
main debug: using decoder module "avcodec"
main debug: TIMER module_need() : 5.000 ms - Total 5.000 ms / 1 intvls (Avg 5.000 ms)
main debug: thread (decoder) created at priority 0 (../.././src/input/decoder.c:315)
main debug: thread started
main debug: looking for decoder module: 36 candidates
main debug: using decoder module "faad"
main debug: TIMER module_need() : 4.000 ms - Total 4.000 ms / 1 intvls (Avg 4.000 ms)
main debug: looking for packetizer module: 21 candidates
packetizer_mpeg4audio debug: running MPEG4 audio packetizer
packetizer_mpeg4audio debug: no decoder specific info, must be an ADTS or LOAS stream
main debug: using packetizer module "packetizer_mpeg4audio"
main debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
main debug: thread (decoder) created at priority 2 (../.././src/input/decoder.c:315)
main debug: thread started
main debug: `C:\test1-0-aac.avi' successfully opened
main debug: Buffering 0%
main debug: Buffering 8%
main debug: Buffering 16%
main debug: Buffering 25%
main debug: Buffering 33%
main debug: Buffering 41%
main debug: Buffering 50%
main debug: Buffering 58%
main debug: Buffering 66%
main debug: Buffering 75%
main debug: Buffering 83%
main debug: Buffering 91%
main debug: Buffering 100%
packetizer_mpeg4audio debug: detected LOAS format
main debug: Stream buffering done (325 ms in 0 ms)
main debug: no usable vout present, spawning one
main debug: looking for text renderer module: 2 candidates
main debug: thread (fontlist builder) created at priority 0 (../../.././modules/misc/freetype.c:473)
freetype debug: using fontsize: 2
main debug: using text renderer module "freetype"
main debug: TIMER module_need() : 7.000 ms - Total 7.000 ms / 1 intvls (Avg 7.000 ms)
main debug: looking for video filter2 module: 20 candidates
swscale debug: 32x32 chroma: YUVA -> 16x16 chroma: YUVA with scaling using Bicubic (good quality)
main debug: using video filter2 module "swscale"
main debug: TIMER module_need() : 2.000 ms - Total 2.000 ms / 1 intvls (Avg 2.000 ms)
main debug: looking for video filter2 module: 20 candidates
yuvp debug: YUVP to YUVA converter
main debug: using video filter2 module "yuvp"
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: thread started
freetype debug: Building font database...
freetype debug: Finished building font database.
freetype debug: Took 0 microseconds
main debug: thread ended
main debug: window size: 800x600
main debug: looking for video output module: 7 candidates
qt4 debug: Updating the geometry
qt4 debug: Updating the geometry
direct3d debug: creating Vout EventThread
main debug: thread (Vout Events Thread) created at priority 0 (../../../.././modules/video_output/msw/direct3d.c:218)
qt4 debug: Updating the geometry
qt4 debug: Updating the geometry
main debug: thread started
direct3d debug: DirectXCreateWindow
main debug: looking for hwnd module: 3 candidates
qt4 debug: requesting video...
qt4 debug: Video was requested -1, -1
qt4 debug: Video is resizing to: 800 600
main debug: using hwnd module "qt4"
main debug: TIMER module_need() : 170.000 ms - Total 170.000 ms / 1 intvls (Avg 170.000 ms)
direct3d debug: created video sub-window
direct3d debug: Vout EventThread running
direct3d debug: disabling screen saver
main debug: using video output module "direct3d"
main debug: TIMER module_need() : 243.000 ms - Total 243.000 ms / 1 intvls (Avg 243.000 ms)
main debug: Deinterlacing available
qt4 debug: Updating the geometry
direct3d debug: Direct3D device adapter successfully initialized
direct3d debug: selected surface pixel format is YUY2
direct3d debug: 1 Direct3D pictures created successfully
direct3d debug: Direct3D scene created successfully
main debug: got 1 direct buffer(s)
main debug: pic render sz 800x600, of (0,0), vsz 800x600, 4cc I420, ar 4:3, sar 1:1, msk r0x0 g0x0 b0x0
main debug: pic in sz 800x600, of (0,0), vsz 800x600, 4cc I420, ar 4:3, sar 1:1, msk r0x0 g0x0 b0x0
main debug: pic out sz 800x600, of (0,0), vsz 800x600, 4cc YUY2, ar 4:3, sar 1:1, msk r0x0 g0x0 b0x0
main debug: looking for video filter2 module: 20 candidates
main debug: using video filter2 module "i420_yuy2_sse2"
main debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
main debug: indirect render, mapping render pictures 0-15 to system pictures 1-16
main debug: End of video preroll
main debug: Received first picture
qt4 debug: Qt: Entering Fullscreen
main debug: Post-processing available
main debug: Decoder buffering done in 550 ms
freetype debug: using fontsize: 37
main debug: looking for video blending module: 1 candidate
blend debug: chroma: YUVA -> YUY2
main debug: using video blending module "blend"
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
packetizer_mpeg4audio debug: emulated sync word (no sync on following frame)
packetizer_mpeg4audio debug: emulated sync word (no sync on following frame)
packetizer_mpeg4audio debug: emulated sync word (no sync on following frame)
packetizer_mpeg4audio debug: emulated sync word (no sync on following frame)
packetizer_mpeg4audio debug: emulated sync word (no sync on following frame)
packetizer_mpeg4audio debug: emulated sync word (no sync on following frame)
packetizer_mpeg4audio debug: emulated sync word (no sync on following frame)
packetizer_mpeg4audio debug: emulated sync word (no sync on following frame)
packetizer_mpeg4audio debug: emulated sync word (no sync on following frame)
packetizer_mpeg4audio debug: emulated sync word (no sync on following frame)
packetizer_mpeg4audio debug: emulated sync word (no sync on following frame)
packetizer_mpeg4audio debug: emulated sync word (no sync on following frame)
packetizer_mpeg4audio debug: emulated sync word (no sync on following frame)
packetizer_mpeg4audio debug: emulated sync word (no sync on following frame)
packetizer_mpeg4audio debug: detected ADTS format
packetizer_mpeg4audio warning: ADTS CRC not supported
packetizer_mpeg4audio debug: emulated sync word (no sync on following frame)
packetizer_mpeg4audio error: Multiple blocks per frame in ADTS not supported
packetizer_mpeg4audio debug: emulated sync word
packetizer_mpeg4audio debug: detected LOAS format