Merging mp3 files

Jan 5, 2013 at 2:17pm
I'm using Qt but the sound facilities seem pretty limited. I want my program to concatenate several mp3 files. Can anyone recommend a sound library to do this? Preferably a simple one?

Thanks
Jan 5, 2013 at 2:36pm
You don't really need any mp3 parser, it is easy enough to write one.

All you need to do is discard any IDv2.x, ID3v1 or APE tags from the file if it exists and direct copy everything else.
Last edited on Jan 5, 2013 at 2:36pm
Jan 6, 2013 at 11:24pm
Ah great thanks. I've done this and it works apart from a tiny gap between the two files. I know there is no gap at the end of file1 or start of file 2.

What's happening here?
Jan 6, 2013 at 11:51pm
have you looked at the end of the first file and the beginning of the second to see if there is actually any silence?
Jan 7, 2013 at 12:44am
bobdabilder wrote:
have you looked at the end of the first file and the beginning of the second to see if there is actually any silence?
rozik1 wrote:
I know there is no gap at the end of file1 or start of file 2.

Maybe you should:
1. decode the files to a raw-data format (easier with wav's)
2. concatenate them
3. re-encode the concatenated data (or easily save them as a wav)

Jan 7, 2013 at 7:22am
Can you suggest a library which can do this for me?
Jan 7, 2013 at 5:00pm
I'd say Bass Audio Library has decoding functions, but never looked into them.
Jan 8, 2013 at 5:52am
Simply move or copy in other file.
Jan 8, 2013 at 12:16pm
rockdenim wrote:
Simply move or copy in other file.

Unrelated answer?
Topic archived. No new replies allowed.