This is a fully parallelized audiobook binder.
- Parallelized MP3 to M4B conversion
- Set chapters from either a CUE sheet or chapterized MP3 files
- Sort input files by ID3v2 track number if available, alphabetically if not
- Clone the repo
- Install requirements:
pip3 install -r requirments.txt
Run binder.py using the following command:
python3 binder.py [-i INPUT] [-o OUTPUT] [-b BITRATE] -c {mp3files,cue,none} -t {mp3,m4b}
Arguments:
Argument | Description |
---|---|
-h, --help | Show list of arguments |
-i INPUT, --input INPUT | Path to the input files (optional, default is current directory) |
-o OUTPUT, --output OUTPUT | Path to the output file (optional, default is current directory) |
-b BITRATE, --bitrate BITRATE | Bitrate of the output m4b file in kb/s (optional, default is 128k, use "-1" to get the same bitrate as the input mp3 files) |
-c {mp3files,cue,none}, --chapters {mp3files,cue,none} | Set the source for chapter data. Use "mp3files" to use each mp3 file as a chapter, "cue" to get chapter data from a CUE sheet, "none" to not embed chapters (Required) |
-t {mp3,m4b}, --filetype {mp3,m4b} | Audio filetype, mp3 or m4b (Required) |
- Python 3
- pip3
- ffmpeg