Some Flac files don't play correctly
As pointed out in: http://forum.videolan.org/viewtopic.php?p=176428#p176428
There are some older flac encoded audio files, that don't work properly in VLC. Playback ends too soon. Tested under Win32 using 0.9.8a and vlc-1.0.0-git-20081209-0006.
The problematic file: http://www.yousendit.com/download/TTZuaUNNR3NJMHRMWEE9PQ
File is over 30 second long but VLC only plays the first 12 seconds.
VLC log:
main debug: adding item `dans1.flac' ( C:\dans1.flac )
main debug: rebuilding array of current - root Playlist
main debug: rebuild done - 1 items, index -1
main debug: starting new item
main debug: processing request item dans1.flac node null skip 0
main debug: resyncing on dans1.flac
main debug: dans1.flac is at 0
main debug: creating new input thread
main debug: Creating an input for 'dans1.flac'
main debug: waiting for thread initialization
main debug: thread started
main debug: thread 5092 (input) created at priority 1 (input/input.c:370)
main debug: `C:\dans1.flac' gives access `' demux `' path `C:\dans1.flac'
qt4 debug: Updating the stream status: 3
main debug: creating demux: access='' demux='' path='C:\dans1.flac'
main debug: looking for access_demux module: 1 candidate
main debug: TIMER module_Need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: creating access '' path='C:\dans1.flac'
main debug: looking for access module: 5 candidates
vcd debug: trying .cue file: C:\dans1.cue
vcd debug: could not find .cue file
access_file debug: opening file `C:\dans1.flac'
main debug: using access module "access_file"
main debug: TIMER module_Need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
main debug: Using AStream*Stream
main debug: pre-buffering...
main debug: received first data for our buffer
main debug: pre-buffering done 1408981 bytes in 0s - 343903 kbytes/s
main debug: creating demux: access='' demux='' path='C:\dans1.flac'
main debug: looking for demux module: 59 candidates
main debug: looking for packetizer module: 18 candidates
main debug: using packetizer module "flac"
main debug: TIMER module_Need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
main debug: using demux module "flacsys"
main debug: TIMER module_Need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
qt4 debug: New Event: type 1103
qt4 debug: Updating the stream status: 2
main debug: looking for a subtitle file in C:\
main debug: looking for meta reader module: 2 candidates
id3tag debug: checking for ID3v1/2 and APEv1/2 tags
main debug: TIMER module_Need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
main debug: `C:\dans1.flac' successfully opened
flac debug: decode STREAMINFO
flac debug: channels:2 samplerate:44100 bitspersamples:16
flac debug: STREAMINFO decoded
main debug: selecting program id=0
main debug: looking for decoder module: 34 candidates
main debug: using decoder module "flac"
main debug: TIMER module_Need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
main debug: thread 5172 (decoder) created at priority 2 (input/decoder.c:217)
main debug: thread started
flac debug: decode STREAMINFO
flac debug: channels:2 samplerate:44100 bitspersamples:16
flac debug: STREAMINFO decoded
qt4 debug: New Event: type 1103
qt4 debug: Updating the stream status: 3
qt4 debug: New Event: type 1108
main debug: no aout present, spawning one
main debug: looking for audio output module: 3 candidates
aout_directx debug: OpenAudio
aout_directx debug: found device: Primary Sound Driver
aout_directx debug: found device: Speakers (Realtek High Definition Audio)
aout_directx debug: found device: Realtek Digital Output (Realtek High Definition Audio)
aout_directx debug: device supports 2 channels (DEFAULT!)
aout_directx debug: device supports 2 channels
aout_directx debug: device supports 1 channel
aout_directx debug: Windows says your SpeakerConfig is stereo
aout_directx debug: creating DirectSoundThread
main debug: thread 5352 (DirectSound Notification Thread) created at priority 15 (directx.c:392)
main debug: using audio output module "aout_directx"
main debug: TIMER module_Need() : 45.000 ms - Total 45.000 ms / 1 intvls (Avg 45.000 ms)
main debug: output 's16l' 44100 Hz Stereo frame=1 samples/4 bytes
main debug: mixer 'fl32' 44100 Hz Stereo frame=1 samples/8 bytes
main debug: filter(s) 'fl32'->'s16l' 44100 Hz->44100 Hz Stereo->Stereo
main debug: thread started
aout_directx debug: DirectSoundThread ready
main debug: looking for audio filter module: 24 candidates
main debug: using audio filter module "converter_float"
main debug: TIMER module_Need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: found a filter for the whole conversion
main debug: looking for audio mixer module: 3 candidates
main debug: using audio mixer module "float32_mixer"
main debug: TIMER module_Need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
main debug: input 's16l' 44100 Hz Stereo frame=1 samples/4 bytes
main debug: looking for audio filter module: 1 candidate
equalizer warning: bad input or output format
main warning: no audio filter module matching "equalizer" could be loaded
main debug: TIMER module_Need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: looking for audio filter module: 1 candidate
equalizer debug: equalizer loaded for 44100 Hz with 10 bands 1 pass
equalizer debug: 60 Hz -> factor:0.000000 alpha:0.003013 beta:0.993973 gamma:1.993901
equalizer debug: 170 Hz -> factor:0.000000 alpha:0.008490 beta:0.983019 gamma:1.982437
equalizer debug: 310 Hz -> factor:0.000000 alpha:0.015374 beta:0.969252 gamma:1.967331
equalizer debug: 600 Hz -> factor:0.000000 alpha:0.029328 beta:0.941343 gamma:1.934254
equalizer debug: 1000 Hz -> factor:0.000000 alpha:0.047918 beta:0.904163 gamma:1.884869
equalizer debug: 3000 Hz -> factor:0.000000 alpha:0.130408 beta:0.739184 gamma:1.582718
equalizer debug: 6000 Hz -> factor:0.000000 alpha:0.226555 beta:0.546889 gamma:1.015267
equalizer debug: 12000 Hz -> factor:0.000000 alpha:0.344937 beta:0.310127 gamma:-0.181410
equalizer debug: 14000 Hz -> factor:0.000000 alpha:0.366438 beta:0.267123 gamma:-0.521151
equalizer debug: 16000 Hz -> factor:0.000000 alpha:0.379009 beta:0.241981 gamma:-0.808451
main debug: using audio filter module "equalizer"
main debug: TIMER module_Need() : 2.000 ms - Total 2.000 ms / 1 intvls (Avg 2.000 ms)
main debug: filter(s) 's16l'->'fl32' 44100 Hz->44100 Hz Stereo->Stereo
main debug: looking for audio filter module: 24 candidates
main debug: using audio filter module "converter_float"
main debug: TIMER module_Need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: found a filter for the whole conversion
main debug: filter(s) 'fl32'->'fl32' 48510 Hz->44100 Hz Stereo->Stereo
main debug: looking for audio filter module: 24 candidates
main debug: using audio filter module "bandlimited_resampler"
main debug: TIMER module_Need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: found a filter for the whole conversion
main debug: control type=1
main warning: output date isn't PTS date, requesting resampling (69274)
main warning: buffer is 69273 late, triggering upsampling
flac warning: the decoder was aborted by the read callback.
main debug: EOF reached
main debug: finished input
main debug: dying input
qt4 debug: Updating the stream status: 8
main debug: dying input
main debug: dying input
main debug: removing module "flac"
main debug: removing module "flacsys"
main debug: removing module "access_file"
main debug: removing module "flac"
main debug: thread ended
main debug: thread times: real 0m12.318000s, kernel 0m0.015600s, user 0m0.514803s
main debug: thread 5172 joined (input/decoder.c:248)
main debug: killing decoder fourcc `flac', 0 PES in FIFO
main debug: removing module "converter_float"
main debug: removing module "equalizer"
main debug: removing module "bandlimited_resampler"
aout_directx debug: closing audio device
aout_directx debug: DirectSoundThread exiting
main debug: thread ended
main debug: thread times: real 0m12.174000s, kernel 0m0.015600s, user 0m0.000000s
main debug: thread 5352 joined (directx.c:664)
main debug: removing module "aout_directx"
main debug: removing module "converter_float"
main debug: removing module "float32_mixer"
main debug: thread ended
main debug: dead input
main debug: thread times: real 0m12.347000s, kernel 0m0.015600s, user 0m0.000000s
main debug: thread 5092 joined (playlist/engine.c:244)
main debug: TIMER input launching for 'dans1.flac' : 17.000 ms - Total 17.000 ms / 1 intvls (Avg 17.000 ms)
main debug: starting new item
main debug: changing item without a request (current 0/1)
main debug: nothing to play