Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Joining multiple files into a single mp3? (Read 9073 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Joining multiple files into a single mp3?

Is it possible to join/concat multiple files into a single mp3 file using LAME? prefarbly using a wildcard (i.e - c:\temp\*.wav ==> c:\temp\combined.mp3)

Thanks!

Joining multiple files into a single mp3?

Reply #1
Quote
Is it possible to join/concat multiple files into a single mp3 file using LAME? prefarbly using a wildcard (i.e - c:\temp\*.wav ==> c:\temp\combined.mp3)

Thanks!
[a href="index.php?act=findpost&pid=336395"][{POST_SNAPBACK}][/a]

The only solution I've found is to rip multiple tracks from a CD into a single file using Adobe Audition.  From Audition's File menu -> Extract Audio From CD and put a check in the box labeled "Extract to Single Waveform".  Save as a WAV and convert that to MP3 with LAME.  Of course Audition doesn't do secure ripping like EAC, but then I haven't been able to find a way to do it in EAC.  If anyone knows I'd be interested in hearing about it too.

If you want to combine multiple WAV files that are already on your drive you could use any NLE like Adobe Audition or Sound Forge to combine them into a single new WAV file, and then encode that with LAME as noted above.  Or if there's an editor that supports LAME natively you could avoid the intermediate step of saving to WAV, but I'm not sure if any editors have that support.

Joining multiple files into a single mp3?

Reply #2
It sounds like Carnivore's solution involves decoding and then re-encoding (so, transcoding). This is straightforward, and you could do it with any decoder --> wave editor --> Lame.

However, if you want to join mp3's without quality loss, you should stay away from transcoding. The main option would be to use mp3directcut to join mp3's in a stream. You might need to use mptrim or foobar to repair the header afterwards.
God kills a kitten every time you encode with CBR 320

Joining multiple files into a single mp3?

Reply #3
Quote
Is it possible to join/concat multiple files into a single mp3 file using LAME? prefarbly using a wildcard (i.e - c:\temp\*.wav ==> c:\temp\combined.mp3)


Encode the WAV files using the --nogap option (--> see lame --longhelp)
Be careful not to use any tags!

After that you can copy the files together:
copy /b file1.mp3 + file2.mp3 ... + filex.mp3 result.mp3


Joining multiple files into a single mp3?

Reply #5
Foobar2000 has "Run Conversion, single file output" for multiple selected files.

If you replace the standard diskwriter component with the one modified by Synthetic Soul (version 2.1.3 here), it will also spit out a nice cuesheet. 

Cheers

Sergio
Sergio
M-Audio Delta AP + Revox B150 + (JBL 4301B | Sennheiser Amperior | Sennheiser HD598)

Joining multiple files into a single mp3?

Reply #6
There is also another way to join multiple MP3 files: you can use WinZip (or WinRAR) adding the files to an archive (without compression) and renaming the file to .mp3. Now the file will be playable and the files can be splitted in any moment renaming the .mp3 back to .zip.
Howewer it's an old trick and I don't remember how to set the right order of the files to be merged. You cannot TAG the resulting file, too.
[ Commodore 64 Forever...! ]

Joining multiple files into a single mp3?

Reply #7
Quote
There is also another way to join multiple MP3 files: you can use WinZip (or WinRAR) adding the files to an archive (without compression) and renaming the file to .mp3. Now the file will be playable and the files can be splitted in any moment renaming the .mp3 back to .zip.
Howewer it's an old trick and I don't remember how to set the right order of the files to be merged. You cannot TAG the resulting file, too.
[a href="index.php?act=findpost&pid=337347"][{POST_SNAPBACK}][/a]

Except for the splitting part, this just looks like a bad way to do a "copy /b a.mp3 + b.mp3 new.mp3" ....

Joining multiple files into a single mp3?

Reply #8
Does this work with any player, or is it just foobars archive reader kicking in?

Kristian

Joining multiple files into a single mp3?

Reply #9
I tested (and it works with) Windows Media Player 10 and Winamp
[ Commodore 64 Forever...! ]

Joining multiple files into a single mp3?

Reply #10
Quote
Encode the WAV files using the --nogap option (--> see lame --longhelp)
I'm embarrassed to have to ask this, but in using LAME help, what is the switch that is equivalent to the DOS /p switch so that only one page of information is shown at a time?

Joining multiple files into a single mp3?

Reply #11
LAME --longhelp | more

Joining multiple files into a single mp3?

Reply #12
Quote
Quote
Encode the WAV files using the --nogap option (--> see lame --longhelp)
I'm embarrassed to have to ask this, but in using LAME help, what is the switch that is equivalent to the DOS /p switch so that only one page of information is shown at a time?
[a href="index.php?act=findpost&pid=337471"][{POST_SNAPBACK}][/a]

Just pipe it through the 'MORE' filter.

lame --lognhelp | more

You coule also redirect help to a text file.

lame --lognhelp > lame.txt

You could read the text file with any editor.

Joining multiple files into a single mp3?

Reply #13
Thanks guys, much appreciated.

Joining multiple files into a single mp3?

Reply #14
Quote
I tested (and it works with) Windows Media Player 10 and Winamp
[a href="index.php?act=findpost&pid=337441"][{POST_SNAPBACK}][/a]


no added gap between tracks?
Sergio
M-Audio Delta AP + Revox B150 + (JBL 4301B | Sennheiser Amperior | Sennheiser HD598)

Joining multiple files into a single mp3?

Reply #15
Appending process using matroska tools :

1. Convert all MP3 to MKA with mkvmerge/mmg or amg

2. append the MKA

3. extract the MP3 from the final MKA with mkvextract.exe (mkvextractgui)

Christian
matroska project admin
http://www.matroska.org

Joining multiple files into a single mp3?

Reply #16
<hypothetical>
Let's assume a simple program exists, which strips RIFF headers off from .wav files, and outputs raw PCM samples to stdout. Let's call that program wavcat. If the .wav files don't have raw PCM inside, or if there are problems, then wavcat exits with an error code, and outputs EOF.

wavcat *.wav | lame -r -s 44100 -m j - out.mp3
</hypothetical>

 

Joining multiple files into a single mp3?

Reply #17
Quote
I'm embarrassed to have to ask this, but in using LAME help, what is the switch that is equivalent to the DOS /p switch so that only one page of information is shown at a time?


I always set the default DOS box to 2000 lines/160 columns. So almost every output fits well