getID3
getID3 copied to clipboard
Join MP3 Wrong Duration
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?
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.
@nsraven34 You can fix it with mp3val -f FILENAME.mp3