0

Seeing as how MP3 frames are (mostly) independent units, I thought it would work well to simply concatenate several tagless MP3 files together in order to merge them losslessly.

However, as it seems, many player programs (including mplayer and mpd) seem to be detecting the file length in some way that I cannot find documentation for, and only see and play the part corresponding to the first of the files I concatenated.

Whatever this information is, I'm sure it can't be too hard to write a program to remove and then rebuild it, but I have no clue what it is. Does anyone know?

Just to make sure: Yes, I removed the ID3 tags of all the files.

Dolda2000
  • 25,216
  • 4
  • 51
  • 92

1 Answers1

1

Ah. I found the mp3val program, which I tried running at the resultant file after concatenation, and it told me that the file contains a "Xing header" which, while masquerading as an empty data chunk, apparently contains redundant information about the number of frames and length of the file.

It seems to be made for VBR files, but these CBR files contain it nonetheless. Either way, Google does point to a lot of information about the Xing header, which appears to be what I need.

Dolda2000
  • 25,216
  • 4
  • 51
  • 92