Join MP3 tracks into a single MP3 in Ubuntu

2

June 19, 2009 by babeyudi

The program “mp3wrap” is program that you can use to merge two or more mp3 files. You can install it by typing:

sudo apt-get install mp3wrap

Now you can merge three mp3 files (let’s say 1.mp3, 2.mp3 and 3.mp3 ) by typing:

format :

mp3wrap merge-result.mp3  source-1.mp3 source-2.mp3 souce-n.mp3

example:

mp3swrap gabungan.mp3 3.mp3 2.mp3 1.mp3

note that the gabungan.mp3 will start with 3.mp3 and finish with 1.mp3

2 thoughts on “Join MP3 tracks into a single MP3 in Ubuntu

  1. Stanley says:

    Hello,

    I have the same problem, but I need to join 163 files together.

    Best regards
    Stanley

    • babeyudi says:

      first step you need to make file gabung_MP3WRAP.mp3 from 2 file mp3 :

      mp3wrap gabung.mp3 file1.mp3 file2.mp3

      then the other file, you can join with this script,

      #!/bin/bash
      SAVEIFS=$IFS
      IFS=$(echo -en “\n\b”)
      FILES=lagu/*.mp3

      for f in $FILES
      do
      mp3wrap -a gabung_MP3WRAP.mp3 “$f”
      done
      IFS=$SAVEIFS

      then save this script into join.sh.

      move your 61 file into lagu directory then run this script

      #./join.sh

      then you can get your 63 mp3 into 1 file
      i hope it can help you.

Leave a comment