Help - Search - Members - Calendar
Full Version: Joining multiple files into a single mp3?
Hydrogenaudio Forums > Lossy Audio Compression > MP3 > MP3 - General
mluggy
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!
Carnivore
QUOTE(mluggy @ Oct 21 2005, 07:10 PM)
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!
*


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.

timcupery
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.
Sunhillow
QUOTE(mluggy @ Oct 22 2005, 01:10 AM)
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
smz
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. biggrin.gif

Cheers

Sergio
Oge_user
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. wink.gif
kjoonlee
QUOTE(Oge_user @ Oct 26 2005, 06:22 PM)
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. wink.gif
*


Except for the splitting part, this just looks like a bad way to do a "copy /b a.mp3 + b.mp3 new.mp3" ....
kritip
Does this work with any player, or is it just foobars archive reader kicking in?

Kristian
Oge_user
I tested (and it works with) Windows Media Player 10 and Winamp
AnEnigma66
QUOTE(Sunhillow @ Oct 24 2005, 01:17 PM)
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?
SebastianG
LAME --longhelp | more
woody_woodward
QUOTE(AnEnigma66 @ Oct 26 2005, 11:48 AM)
QUOTE(Sunhillow @ Oct 24 2005, 01:17 PM)
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?
*


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.
AnEnigma66
Thanks guys, much appreciated.
smz
QUOTE(Oge_user @ Oct 26 2005, 06:33 PM)
I tested (and it works with) Windows Media Player 10 and Winamp
*



no added gap between tracks?
ChristianHJW
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
kjoonlee
<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>

Sunhillow
QUOTE(AnEnigma66 @ Oct 26 2005, 09:48 PM)
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 smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.