John Lin wrote:

> 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


You want the --nogap option to lame, e.g.

  rm all.mp3
  lame --alt-preset 56k --nogap *.wav
  cat *.mp3 > all.mp3

The lame docs aren't real clear about this but I just tested
it and it seems to work. There is no audible noise at the join
points.

HTH
Andrew

PS This seems to be a good way to overcome the 2GB wave file size limit
_______________________________________________
mp3encoder mailing list
[EMAIL PROTECTED]
http://minnie.tuhs.org/mailman/listinfo/mp3encoder

Reply via email to