View Full Version : simple mp3 merging - command-line based
Cynthrax
25th March 2007, 21:11
hi everyone,
i need a simple command-line based tool for merging/joining vbr mp3 files.
i've searched through the sticky's but couldn't find a (command-line) tool as described.
thanks in advance.
lpn1160
26th March 2007, 06:12
cat file1.mp3 file2.mp3 > file3.mp3
simpler it doesn't get and "cat" is built in to every distro, don't forget to redirect output
have fun
Cynthrax
1st April 2007, 23:37
the merging with cat works, but if i want to multiplex the merged audio file with a video (i tried it with avimerge) it seems that the tool detects an EOF in the merged mp3 (at that point where file1 which is now merged with other files ended).
is there a way or another tool that can do that properly?
echo
2nd April 2007, 00:34
You could try mp3wrap (http://www.usinglinux.org/audio/mp3wrap.html) or qmp3join (http://www.etse.urv.es/~dmanye/quelcom/quelcom.html). I haven't used any of them myself though.
skottish
2nd April 2007, 02:39
This FFMPEG command works more or less:
cat first.mp3 second.mp3 | ffmpeg -i - -acodec copy new.mp3
I say more or less because the time stamp doesn't get updated, but it will play all the way through as one file.
lpn1160
4th April 2007, 23:04
if you truly want to use command line based tools only (audacity would work great) try this: "cat" to join files, lame --decode joined.mp3, lame --abr 128 -b 112 -B 192 joined.wav. Or in other words join the files decode to wav then rewrite the new .wav to mp3. haven't tested myself but in theory should work.
subspawn
17th April 2007, 10:23
Another tool that will do it real fast and doesn't give problems in avimerge is mp3cut:
mp3cut -o output.mp3 input1.mp3 input2.mp3 input3.mp3 ...
Plus it offers extensive cutting possibilities (could be needed with A/V sync problems)
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.