r/PrologueApp • u/No-Warthog1125 • 15h ago
Free tool to turn multi-file MP3 audiobooks into one chaptered file before they hit your server
Some of the books on my server were a mess of 30 or 40 MP3 files each. I wanted one file per book, with chapters and cover art built in. So I made a small open source tool for it.
It's called mp3tom4b:
https://github.com/MelSpec975/mp3tom4b
**What it does**
* Joins a folder of MP3s into one audiobook file
* Makes a chapter for each MP3, named from the track titles
* Embeds the cover, title, author, narrator and year
* Saves as M4B, MP3 with chapters, Opus or MKA
It runs on Linux, so it works well right on a Plex or Audiobookshelf box. There's a desktop app too if you'd rather drag and drop.
**Quick start**
Install ffmpeg and Python, then:
git clone https://github.com/MelSpec975/mp3tom4b.git
cd mp3tom4b
sudo ./install.sh
Convert one book:
mp3tom4b "/srv/audiobooks/Andy Weir/Project Hail Mary/"
Preview the chapter list first:
mp3tom4b "/srv/audiobooks/Andy Weir/Project Hail Mary/" --dry-run
Want the original audio with no re-encoding? Save it as a chaptered MP3. It's done in seconds:
mp3tom4b "/srv/audiobooks/Andy Weir/Project Hail Mary/" -F mp3
**One tip**
Move the original MP3s out of your library folder once you've checked the new file. Otherwise your server will see the book twice.
It only works with plain MP3 files. It doesn't touch DRM.
This is my first Python project, and I built it with a lot of help from Claude. Bug reports and ideas are welcome!