Home > linux > Join multiple MP3 files (lossless)

Join multiple MP3 files (lossless)

October 24Hits:1
Advertisement

How do you join multiple MP3 files into one? "cat" and "mp3wrap" are no good as they produce non standard MP3 files. I know I can use audacity, but when you have 1000's of MP3 files to join into one, it takes too long.

Any suggestions?

Answers

Use ffmpeg or a similar tool to convert all of your MP3s into a consistent format, e.g.

ffmpeg -i originalA.mp3 -f mp3 -ab 128kb -ar 44100 -ac 2 intermediateA.mp3 ffmpeg -i originalB.mp3 -f mp3 -ab 128kb -ar 44100 -ac 2 intermediateB.mp3

Then, at runtime, concat your files together:

cat intermediateA.mp3 intermediateB.mp3 > output.mp3

Finally, run them through the tool MP3Val to fix any stream errors without forcing a full re-encode:

mp3val output.mp3 -f -nb
(source)

You can do this programmatically with ffmpeg's concat demuxer.

First, create a file called inputs.txt with lines like

file '/path/to/input1.mp3'
file '/path/to/input2.mp3'
file '/path/to/input3.mp3'

...etc. Then, run the following ffmpeg command:

ffmpeg -f concat -i inputs.txt -c copy output.mp3

It's possible to generate inputs.txt easily with a bash for loop (this can probably be done with a Windows batch for loop too), assuming you want to merge the files in alphabetical order. This will match every *.mp3 in the working directory, but it can be easily modified:

for f in ./*.mp3; do echo "file '$f'" >> inputs.txt; done
##  Alternatively
printf "file '%s'\n" ./*.mp3 >> inputs.txt

It's also possible to do the entire thing in one line, avoiding the creation of an intermediate list file with process substitution:

ffmpeg -f concat -i <(printf "file '%s'\n" ./*.mp3) -c copy output.mp3

Freemake Audio Converter is great:

http://www.freemake.com/free_audio_converter/

Converts and/or joins audio files.

After downloading and installing Freemake (be careful not to install Ad-Aware Web Companion, TuneUp Utilities, Opera, or set Yahoo! as your homepage), launch the program. Click the +Audio button at the top left of the window, and select the files you want to merge/convert.

Click the Join files "switch" at the top right of the window.

Select the audio type you want (probably FLAC for lossless)

It will let you customize your audio settings and output folder. Once you're ready click convert.

Goldwave has some batch processing capabilities, though it's shareware, not freeware.

You can use the free mp3cat:

mp3cat indir - > outfile.mp3

Related Articles

  • Join multiple MP3 files (lossless)October 24

    How do you join multiple MP3 files into one? "cat" and "mp3wrap" are no good as they produce non standard MP3 files. I know I can use audacity, but when you have 1000's of MP3 files to join into one, it takes too long. Any suggestions?

  • Is there a simple GUI-based program available to join/combine mp3 files? January 11

    Possible Duplicate: Joining MP3 files losslessly I have an audio book on CD which when ripped to my Hard Drive has multiple chapters as individual mp3 files. Is there a simple program that could combine them all, in order, into one big file? I'm awar

  • What is the Easiest Way to Join Multiple Audio Files in Windows? December 17

    This question already has an answer here: How to join MP3 files? [duplicate] 5 answers I used to have a program that did this quite well in OSX, but I haven't found any Windows alternative to joining multiple audio files into one larger audio file. T

  • Software that joins multiple subtitle files that can be synced with video after joiningSeptember 29

    I want to join multiple subtitle files into a single file. The timecode of the 2nd subtitle must continue from the 1st subtitle file's timecode and so on. I've tried Easy Subtitle Joiner, but when I import more than 5 subtitle files in a shot, the ti

  • How to open multiple MP3 files with batch or vbs, just like Ctrl+A EnterNovember 14

    Just like the title suggests, I want to make a batch or vbs script file that will start playing music from my music folder. I can't make playlist because I'm updating this folder very often, and I don't want to keep updating the playlist. I know that

  • Joining MP3 files losslesslyOctober 24

    I have a bunch of MP3 files and I have their paths grouped in a text file. Is it possible to join the relevant MP3 files based on the paths in the text file? --------------Solutions------------- One possible approach would be to use cat: $ cat exampl

  • How to convert multiple mp3 files to mp4 with ffmpeg?July 8

    The following command takes the mp3, attaches an image to it, and converts it to an mp4: ffmpeg -i input.mp3 -loop 1 -i image.png -c:a copy -c:v libx264 -shortest output.mp4 I'm trying to apply the same image to each mp3 in a folder. The operating sy

  • Trim multiple mp3 files at once

    Trim multiple mp3 files at onceAugust 28

    So, I have hundreds of .mp3 files in a folder. Almost each of them has a period of silence before you can hear a sound. And the periods are of the different size. The same is with the end of the files. Is there any application (free, if possible) by

  • Transferring multiple mp3 files after search functionJanuary 24

    I have recently bought a small mp3 player for swimming and wish to transfer multiple files from my existing normal mp3 player. Up until today, I never realised I could do a search within sub folders and I had been going to each location and selecting

  • Combining multiple MP3 files from a specific dayOctober 7

    Everyday I have about 10 different mp3 files created on my server. What I would like to do is setup a cronjob to run at night and combine the current days tracks into one mp3 track. I don't care so much about the ID3 info, though if such a method has

  • ffmpeg consolidating multiple mp3 files into 1 m4b fileOctober 2

    I chose ffmpeg as the tool by recommendation from How to convert series of MP3 to a M4B in a batch . I downloaded the static build for windows from http://ffmpeg.zeranoe.com/builds/ . When I try to combine 4 mp3 files into 1 m4b file, the error happe

  • Join 2 mp3 files with one having lower volume than otherMay 27

    I have 2 mp3 files (a.mp3 and b.mp3) and I want to overlap them using ffmpeg. How to overlap them in such a way that a.mp3's volume is low and b.mp3 volume is high so that it appears that a.mp3 is running in background of b.mp3? --------------Solutio

  • Combine multiple mp3 files into oneFebruary 15

    I am trying to make a small windows forms program (vb) to let the user choose a mp3 file that will be "mixed" with other mp3 files that will always be the same (I put them in the Resources folder in the VS Explorer. What I would like to have is

  • Join multiple video files. Two witout audio and three with audioMarch 17

    i am trying to join 5 videos. 2 of them do not have audio streams. I get this error : Stream specifier ':1' in filtergraph description [0:0] [0:1] [1:0] [1:1] [2:0] [2:1] [3:0] [3:1] [4:0] [4:1] concat=n=5:v=1:a=1 [v] [a] matches no streams. I use th

  • How can I add action to Nemo (Linux Mint) for playing multiple mp3 files in vlc playlist?

    How can I add action to Nemo (Linux Mint) for playing multiple mp3 files in vlc playlist?October 2

    I have been trying to find a solution, Which I did, I want to share because I am sure someone else would need it. --------------Solutions------------- First of all I am using Linux Mint Debian Edition 201403, VLC version 2.1.1 Ricewind. Now as for th

  • How do I convert multiple mp3 files to mp4 with ffmpeg?July 2

    The following command takes the mp3, attaches an image to it, and converts it to an mp4: ffmpeg -i input.mp3 -loop 1 -i image.png -c:a copy -c:v libx264 -shortest output.mp4 I need to do this for all the mp3s in a folder. How would I code this? -----

  • Join multiple CSS files into single oneFebruary 12

    I had to covert some PSD-s into html, but every page had its own styling so I went forward and made one for each. The client now requires them to be joined into a single one. Is that possible? Thanks. Edit: They don't have unique ID/classes. --------

  • How to join MP3 files?

    How to join MP3 files? November 7

    This question already has an answer here: Join multiple MP3 files (lossless) 5 answers Motivation I'm looking for a program that allows me to join a lot of mp3 files (an audio book) to a single large mp3 file. My mp3 player is able to remember the po

  • How do I merge MP3 files without re-encoding? September 18

    This question already has an answer here: How to join MP3 files? [duplicate] 5 answers Join multiple MP3 files (lossless) 5 answers I would like to merge multiple MP3 files on a Windows PC without decoding and re-encoding them. I don't mind if the fi

  • How to join mp3 files with their ends overlapping October 24

    How do you join multiple MP3 files into one? "cat" and "mp3wrap" are no good as they produce non standard MP3 files. I know I can use audacity, but when you have 1000's of MP3 files to join into one, it takes too long. Any suggestions?

Copyright (C) 2018 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 1.024 s.