Home
Name Modified Size InfoDownloads / Week
src 2014-05-30
MP3SongsExtractor.jar 2016-03-22 309.4 kB
MP3SongsExtractor.zip 2014-10-03 376.0 kB
readme.txt 2014-05-30 3.2 kB
cut.bat 2014-05-30 69 Bytes
Totals: 5 Items   688.7 kB 0
-----------------
MP3SongsExtractor
-----------------

By Guti, May 2014

----------------------------------------------------------------
Purpose
----------------------------------------------------------------

Let's say you want to split a large MP3 file into pieces; for instance, you've just recorded some gig
and you want to cut it into songs. Or you've downloaded a full MP3 album. You know the titles and durations of
the songs (or maybe the starting times, or even the end times as well). Cutting these songs one by one with
audio software is doable, but maybe boring.

You could use FFMPEG, a free video/audio command-line program. But writing the commands one by one will be boring
and error prone.

MP3SongsExtractor's only purpose is:
- You write the info in a text file (artist, album title, and songs details).
- You call MP3SongsExtractor, and it generates all the commands it takes to cut the file.
- You execute those commands. That's it.

It's not fancy, there's no GUI yet. It just solves a problem.

----------------------------------------------------------------
Usage - overview
----------------------------------------------------------------

To use this, you need to:
- Download and install ffmpeg if you don't have it already. It's free software.
- Make sure ffmpeg.exe is in your system path (or accessible from the directory where you'll be cutting songs).
- Get MP3SongsExtractor.jar.
- Write a text file with the information of the songs (or copy the data from www.imdb.com, or Amazon or whatever). 
- Call java -jar MP3SongsExtractor.jar from the command line and save its output to a file.
- Execute that file (as a .BAT or sh file).

----------------------------------------------------------------
Usage - preparing data
----------------------------------------------------------------

First, you need to write the text file. Something like this:

Red Hot Chili Peppers
Greatest Hits
0:00 Under The Bridge 
4:31 Give It Away 
9:16 Californication 
14:45 Scar Tissue 
18:22 Soul To Squeeze
etc...

First line: artist. Second line: album title. Other lines: songs. There's no fixed format; just try to be clear.
The duration of the song can be at the beginning, at the end... You can separate it with a dash, or spaces, or
pipes, or enclose them in brackets. You can include track numbers, or not (if not present, the program will 
assume them).

In this case, the times are starting times. But they can be durations as well. If you put two times per line,
the program will assume they are starting and ending times for each song. 

----------------------------------------------------------------
Usage - cutting
----------------------------------------------------------------

Once you have the data ready, cutting is simple. Go to command line and do:

java -jar MP3SongsExtractor.jar dataFile.txt soundFile.txt

This will write the sequence of commands to the standard output. So it would be more useful to do something
like:

java -jar MP3SongsExtractor.jar dataFile soundFile > cut.bat

And then you can call cut.bat. IT IS ASSUMED THAT FFMPEG IS IN YOUR EXECUTION PATH.
Source: readme.txt, updated 2014-05-30