Join Mp3 From The Command Line

0
165

Lots of tools- like the previously reviewed Mp3 Merge –  can join multiple mp3 files into a single mp3 file that contains all audio of all files joined in the process.

Mp3 files but also files with the ogg extension can be concatenated easily because of the way the data is structured. The following command line argument will not work with many other file types like those created by Microsoft Office, but they work fine for mp3 and ogg files.

Best of all, it is part of all versions of Windows which means that you don’t need to download and run an extra program for that anymore provided you don’t mind working on the command line.

Only one line of code is needed to join multiple mp3 files: copy /b *.mp3 c:new.mp3. That’s all there is needed. The /b parameter ensures that the files are copied in binary format. *.mp3 defines the source directory of the files.

You can easily add a drive and folder structure in front. The wildcard * defines that all mp3 will be joined alphanumerically by the command. It is possible to limit the files by adding letters or numbers to the command, e.g. m*.mp3 to join all mp3 starting with the letter m.

join mp3

The last part c:mp3 defines the target directory for the newly created file as well as its name. A possibility to join files with different file names is also available. Simply use the command copy /b file1.mp3 + aaa.mp3 + r3f.mp3 c:new.mp3 for this. You may use wildcards as well for the process.

Several applications like Audacity can also be used to merge music files. Mp3 Direct Cut is another one for the purpose.

While it may take longer to use the command line for the purpose of merging mp3 files, it is something that is always available if you are working on a Windows PC. All the other tools require you to run software to merge the files, and that option may not always be available.