I am looking for a program that can merge many MP3 files via command line on Ubuntu (e.g., as soon I have a folder containing many MP3 files and I want to merge them into a single MP3 file).

Any license or price is fine.


mp3cat seems to have no limitations as you can add a directory as the input. From the link:


mp3cat reads and writes MP3 files.

$ mp3cat [options] - - < infile.mp3 > outfile.mp3
$ mp3cat [options] - outdir < infile.mp3
$ mp3cat [options] indir - > outfile.mp3
$ mp3cat [options] indir outdir

You would need the 3rd option.


mkdir -p /usr/local/src
cd /usr/local/src
git clone https://github.com/tomclegg/mp3cat
cd mp3cat
make install

The installation dir is not what I would use but the command was written for FreeBSD. I would install in /opt/ if it was me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.