A CLI tool to split a single MP3 track into multiple tracks, complete with title and track number metadata.
-
Clone the repo
-
Build the Docker image
~ $ make build
- Find an MP3 file that you want to split
~ $ ls -1 ~/Desktop
jungle-live-at-la-cigale.mp3
- Create a text file that contains a track listing with titles and start times
# listings.txt
0:00 Intro
1:35 Platoon
6:46 Julia
11:11 Crumbler
15:15 The Heat
19:45 Smoking Pixels
22:36 Accelerate
27:47 Lemonade Lake
32:39 Son of a Gun
37:05 Lucky I Got What I Want
42:39 Drops
49:05 Busy Earnin
56:54 Time
- Run
split_to_tracks
~ $ ./split_to_tracks ~/Desktop/jungle-live-at-la-cigale.mp3 listings.txt
The output tracks will be in a directory in the same location as the MP3 file.
~ $ ls -1 ~/Desktop/jungle-live-at-la-cigale/
Accelerate.mp3
Busy Earnin.mp3
Crumbler.mp3
Drops.mp3
Intro.mp3
Julia.mp3
Lemonade Lake.mp3
Lucky I Got What I Want.mp3
Platoon.mp3
Smoking Pixels.mp3
Son of a Gun.mp3
The Heat.mp3
Time.mp3
(Optional) Add this repo to your $PATH
to be able to run it from anywhere
PATH=$PATH:/path/to/split-to-tracks