getID3 icon indicating copy to clipboard operation
getID3 copied to clipboard

Join MP3 Wrong Duration

Open NSady opened this issue 8 years ago • 2 comments

When joining together 2 short mp3 files, the song duration is having issues. In all browsers and media players, the file plays past the duration it shows. After successfully joining the MP3's together, duration is never correct. How can I fix the duration upon joining MP3's?

NSady avatar Aug 04 '17 03:08 NSady

This could happen if the first MP3 is variable bitrate with a LAME or Xing VBR header as the first frame of the audio data. The simple getID3 example does not make an effort to fix or remove the VBR header.

I will leave this issue open in case I (or someone else) feels ambitious to modify the demo to handle either removing or rewriting the VBR header if present (and/or adding one in all cases?).

In the meantime, the well-known standalone program "VBRfix" can rewrite the header and fix the display time on any merged files you may have with an incorrect display time.

JamesHeinrich avatar Aug 04 '17 13:08 JamesHeinrich

@nsraven34 You can fix it with mp3val -f FILENAME.mp3

NinoSkopac avatar May 11 '18 02:05 NinoSkopac