Skip to main content
Topic: foobar overestimates the lenghth of some WAV files (Read 162 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

foobar overestimates the lenghth of some WAV files

Hi, I noticed that in some cases, foobar2000 appears to overestimate the length of some WAV files. Example: http://research.spa.aalto.fi/publications/theses/lemmetty_mst/wave/track08f.wav. It's unclear if there is anything in particular wrong with this file, FFmpeg and other players appear to show the proper duration.

Re: foobar overestimates the lenghth of some WAV files

Reply #1
I tested the file with File Integrity Verifier
The file fails to verify. But, when I compressed it to flac, the verifys correctly. 

Item: "H:\MP3\track08f.wav"
MD5: 41854CCD5FA93801093A52917DE058E5
CRC32: 86D9B7AA
Error: Reported length is inaccurate : 0:29.974785 vs 0:07.493696 decoded

Re: foobar overestimates the lenghth of some WAV files

Reply #2
The "fact" chunk contains incorrect number of samples (330,472/11,025=29.97). This sometimes happens and other programs have options to ignore this information. Maybe the file was downsampled by a factor of 4 and the fact chunk was carried over unmodified by the program that made the file. I recently reported an issue with a compressed wav format, and pointed out that it is possible to read the sample count. Maybe the fact chunk shouldn't be used for linear PCM?

Re: foobar overestimates the lenghth of some WAV files

Reply #3
Possibly? All the files from this CD appear to have the same length issue.

Re: foobar overestimates the lenghth of some WAV files

Reply #4
... Maybe the fact chunk shouldn't be used for linear PCM?
That's a given.  It's pointless (in LPCM).  FWIW, FBv1.4 showed 7 seconds.

 
SimplePortal 1.0.0 RC1 © 2008-2019