Forked from Jim Anderson! See his repo here. This brilliant idea and HUGE amount of code is from him. I'm just adding my own preferences and spin onto it.
This utility reads the headers of MP3 audiobook files and splits them according to the information found in the tags. It is currently written to split files that are downloaded from the Overdrive service from our library.
- Gathers all mp3 files in the script's current directory.
- Using OverDrive Markers, split all mp3 files according to it's chapter. Naming starts with a number (to keep it in order), then the chapter name (from the marker), then the book name.
- Creates a subfolder named after the book. All output mp3 files goes here.
- Copy ffmpeg and splitter.py into directory.
- Run splitter.py
- Python >= 3.6
- eyed3 In cmd, do:
pip install eyed3
- Check if ffmpeg is in directory.
- Replace invalid characters in markers, so files can be created ni windows env
- Added Special Case 1. If there's only one output file, just rename that one file to book name
- Changed some variable names
- Output all in a single folder! subdir = bookname
- Output file naming now: {num_seq}{marker information}({bookname}).mp3 ie: 08_Screwtape_Proposes_a_Toast_(Some_Everyday_Thoughts)
The project is currently in the "userful tool for me" stage and has not been tested beyond seeing that it works on the files I needed splitting.
If you're interested in more features or have a file it doesn't work with, send me a note or create an issue and I'll see what I can do!