TheFeshy / mp3utensil

A tool for validating, merging, and splitting mp3 files - focused on badly split and merged audio books.
2 stars 1 forks source link

Handle merge of badly split files #14

Open TheFeshy opened 10 years ago

TheFeshy commented 10 years ago

MP3 splitters often don't split on frame boundaries. Sometimes this means a frame straddles two files. Worse, there is often an MP3 tag inserted at the beginning of the second file, so we have [partial frame] -> EOF -> New File -> [ID3 tag] -> [rest of frame.] We should handle this case if possible.

To decide: does the resulting frame get added to the first file, or the second?

TheFeshy commented 10 years ago

Could this be generalized to handle arbitrarily inserted data as well? (probably only if we could identify the data as e.g. a valid mp3 tag or jpeg.)