Dear all,

I am writing a program to handle segments of voices.
At last, it concatenates voice segments into a whole mp3 file.

The logic of my currently working version is like:

wavmerge 1.wav 2.wav 3.wav 4.wav -o output.wav
lame --alt-preset 56k output.wav output.mp3

However, because output.wav is huge, it takes up too much disk space
as well as processing time for both "wavmerge" and "lame".

If I can use "mp3merge", it would be much better:

lame --alt-preset 56k 1.wav 1.mp3
lame --alt-preset 56k 2.wav 2.mp3
lame --alt-preset 56k 3.wav 3.mp3
lame --alt-preset 56k 4.wav 4.mp3
mp3merge 1.mp3 2.mp3 3.mp3 4.mp3 -o output.mp3

Actually, here is one software:
http://mp3merge.netfirms.com

What it does is exactly the same as:
copy /b 1.mp3+2.mp3+3.mp3+4.mp3 output.mp3

But in most cases the output mp3 files are broken.
Either their playing time is wrong
or they even can't be opened by any mp3 player.

According to this document:
http://www.mp3-tech.org/programmer/frame_header.html
It tells me why binary concatenation (like mp3merge does)
may work.  Because "An MPEG audio file is built up from
a succession of smaller parts called frames."

According to this document:
http://lame.sourceforge.net/tech-FAQ.txt
It tells me I can use "--nores" to generate independent frames.

So I tried "--nores" to provide the source mp3 files:

lame --nores --alt-preset 56k 1.wav 1.mp3
lame --nores --alt-preset 56k 2.wav 2.mp3
lame --nores --alt-preset 56k 3.wav 3.mp3
lame --nores --alt-preset 56k 4.wav 4.mp3
copy /b 1.mp3+2.mp3+3.mp3+4.mp3 output.mp3

But the output.mp3 is still broken.

Questions:

1. Can I do this kind of "binary concatenation" on mp3 files?
2. If yes, what options should I add when providing source mp3 files?
3. If no, is there any command-line "mp3merge" software available?

Thank you very much.
Best regards.
John Lin

_______________________________________________
mp3encoder mailing list
[EMAIL PROTECTED]
http://minnie.tuhs.org/mailman/listinfo/mp3encoder

Reply via email to