Skip to content

Split an MP3 file to multiple tracks with metadata in a Docker container

Notifications You must be signed in to change notification settings

natanweinberger/split-to-tracks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

split-to-tracks

A CLI tool to split a single MP3 track into multiple tracks, complete with title and track number metadata.

Get started

  1. Clone the repo

  2. Build the Docker image

~ $ make build
  1. Find an MP3 file that you want to split
~ $ ls -1 ~/Desktop
jungle-live-at-la-cigale.mp3
  1. 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
  1. 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

About

Split an MP3 file to multiple tracks with metadata in a Docker container

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published