HydrogenAudio

Lossy Audio Compression => Ogg Vorbis => Ogg Vorbis - General => Topic started by: Pete7874 on 2012-02-25 16:32:19

Title: Different track length after converting to ogg
Post by: Pete7874 on 2012-02-25 16:32:19
Sometimes when I convert from another lossy format such as MP3 to ogg, the resulting track length is different.  For example, I converted a 256 kbps CBR MP3 with a duration of 1h 59m 47s to q2 OGG using aoTuV [20110424].  The resulting ogg file has a duration of 1h 59m 39s.  Where did the 8 seconds disappear?

I realize it is not a huge difference.  I was just curious what causes such things to happen?

Thanks!
Title: Different track length after converting to ogg
Post by: Kohlrabi on 2012-02-25 16:42:45
How did you convert your files? "Losing" 8 seconds sounds like a serious bug in the converter.
Title: Different track length after converting to ogg
Post by: Pete7874 on 2012-02-25 17:09:28
How did you convert your files? "Losing" 8 seconds sounds like a serious bug in the converter.

Using Foobar2000 1.1.11.
Title: Different track length after converting to ogg
Post by: Pete7874 on 2012-02-25 17:30:02
How did you convert your files? "Losing" 8 seconds sounds like a serious bug in the converter.

Using Foobar2000 1.1.11.

OK, I think it's a problem with Foobar itself.  Foobar is reporting that the source MP3 file's duration is 1h 59m 47s, but when I actually play that track, the track stops playing at 1h 59m 39s.  Windows 7 is also reporting that the track length is only 1h 59m 39s.  Not quite sure why Foobar is misreporting the length of the MP3...
Title: Different track length after converting to ogg
Post by: tpijag on 2012-02-25 17:39:46
select file>context menu>utilities>Fix vbr header
Title: Different track length after converting to ogg
Post by: lvqcl on 2012-02-25 17:40:34
My guess: this MP3 file doesn't have a header (http://www.codeproject.com/Articles/8295/MPEG-Audio-Frame-Header#XINGHeader) (with info about its exact duration), so "1h 59m 47s" is just an estimate.

You can select mp3 file -> right click-> Utilities -> Fix VBR MP3 header.
Title: Different track length after converting to ogg
Post by: Pete7874 on 2012-02-25 17:41:42
select file>context menu>utilities>Fix vbr header

Thank you!