I recently learned a neat trick. To join mp3 files together, you simply use the command (in Windows)

copy /b *.mp3 joined.mp3

and voila, you have one large mp3 file.

My question: is there a method of doing the opposite, i.e. splitting an mp3 file, this easily?

link|improve this question
You should tag this for Windows – Mark Thalman Jul 28 '09 at 19:22
1  
Not necessarily... the command-line join example I gave should work just as well in other systems. Plus, the question is for a command-line splitter for any OS. – Yuval Jul 29 '09 at 13:40
Yuval, the answer you accepted will cause your MP3 to be decoded and reencoded. This will really reduce your audio quality. Check out my answer on MP3DirectCut. – Jim McKeeth Aug 1 '09 at 1:37
Also, your joining method will result in a bad frame in the middle of the audio from the header and tail (where the tags are) remaining. It would be better to use a joining tool that removes these bad frames. – Jim McKeeth Aug 1 '09 at 1:38
Jim, I thank you for the concern about the audio quality, but I mainly use splitting and joining MP3s for listening to audiobooks more conveniently, and these are hardly high-quality to begin with... – Yuval Aug 1 '09 at 7:49
feedback

8 Answers

up vote 12 down vote accepted

There are two ways to split an MP3:

  1. Decoding into a wave, splitting, and re-encoding. This is the method Audacity uses and results in lost audio quality.
  2. Splitting the MP3 directly. You have a lower resolution for where to split, but the result is no loss in audio quality. I've used MP3DirectCut with relatively good success.

Usually you will want to use the 2nd method since it is lossless, unless you really don't care about your audio quality.

link|improve this answer
I'm very fond of mp3DirectCut. All it does is split up mp3 files, and it's pretty good at it. – Michael Kohne Jul 22 '09 at 18:49
I wasn't aware of this... 10x for the info! – Yuval Jul 22 '09 at 21:10
1  
Thanks Jim. I was not aware of this as well. I had been using Audacity for a while now, it is now going to be MP3Direct from now on. – Kanini Oct 21 '09 at 3:11
feedback

It's not as easy as the command you mention in your question. With that being said there are easy ways to do it.

Audacity is one free program that allows you to split mp3s. It's relatively easy to use once you get a hang of the interface.

link|improve this answer
3  
Audacity is good and the Beta version 1.3.x even easier to use. I suggest to start directly with that version – Drake Jul 16 '09 at 11:55
thanks, I'll give it a try =8-) – Yuval Jul 16 '09 at 14:29
2  
FYI, while Audacity is a great tool, splitting MP3's this way involves decoding and re-encoding the MP3. This degrades the audio quality. – Jim McKeeth Jul 22 '09 at 18:36
feedback

I regularly use mp3splt. It is an open source program for Windows and Linux, and includes a gui (which I don't use, so I can't comment on it).

This is the commandline I usually use to split a podcast into 6 minute segments:

mp3splt podcast.mp3 -g %[@N=0,@o] -o "@n @f" -t 6.0
  • -t 6.0: split every 6 minutes
  • -g %[@N=0,@o]: for every section use the original tags, but update the track number starting from 0.
  • -o "@n @f": The output file name should be the original filename with the track number tacked on in front.
link|improve this answer
thanks! This sounds like a good option for me. – Yuval Jul 29 '09 at 13:36
this tool was perfect for cutting MP3's for use in HTTP streaming. quicktime wasn't liking the m3u8's populated by mp3's cut by ffmpeg, but mp3splt worked perfectly. It cut up each part automatically too! Command line is a bonus win. Thanks for posting this!! – brack Jun 24 '10 at 16:06
feedback

Try MP3DirectCut. It's free and works for me.

link|improve this answer
feedback

Not that easily, but there are a number of mp3 splitting tools available online that allow you to pick where to split an mp3 file.

Of course if you wanted to split up an mp3 file just to transfer it (and not to play back the split portions), you could use a generic file splitting utility and then the binary copy method you've used to reassemble the mp3.

link|improve this answer
Is there one you can recommend? Do you know one that is free? – Yuval Jul 16 '09 at 11:45
Back in the day I used to use arj (arjsoftware.com) to split files to chunks of 1.44MB to fit on floppies. I see it's still around. WinRAR (rarlab.com) can do the same. Heck, even good ole' pkzip 2.04g (pkware.com) added support for that, though it was a lot less convenient than arj – Nathan Fellman Aug 1 '09 at 3:41
feedback

If you happen to be using Linux you can always use "split --bytes=1M --numeric-suffixes largefile.mp3 smallfile". However, you will have to append the .mp3 yourself unfortunately.

link|improve this answer
feedback

For the record, that's not the best way to merge MP3s.

It works, but it leaves superfluous information (the ID3 tags) from the subsequent files in the final file. Copy, when used that way, is just a concatenate - the extra header information is still in there.

The structure of an MP3 file can give you an idea:

enter image description here

(Click to zoom)

link|improve this answer
feedback

Sliff is right, no os tool available.

Technically mp3 is configured such that you can split at any place you want. It uses 18 ms block of static or variable length with a certain bit combination at the beginning of each block. If you split the file in midst of a block, the player is just going to forward silently to the next block and you therefore lose a max of 18 ms.

Tag blocks - where you enter information about artist, title, album and such, can be at any place in the file or be ommitted. Even multiple tag blocks do not harm (the first is taken).

You can therefore split and join wherever you want.

Any tool to split files would do then.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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