Skip to content

Instantly share code, notes, and snippets.

@bioshazard
Last active January 30, 2024 17:23
Show Gist options
  • Save bioshazard/3f1521181c780b9501f46d094ed2d5d9 to your computer and use it in GitHub Desktop.
Save bioshazard/3f1521181c780b9501f46d094ed2d5d9 to your computer and use it in GitHub Desktop.
Compile an alpha-sorted list (eg "CH01-Title.mp3, ...") of MP3s into a chaptered M4B audiobook
# BOOK_SRC=mp3s/what-govt-has-done-to-our-money BOOK_DEST=What-Government-Has-Done-To-Our-Money.m4b bash m4b-tool.sh
docker run -it --rm -u $(id -u):$(id -g) -v "$(pwd)":/mnt sandreas/m4b-tool:latest \
merge -vv --jobs=3 --ffmpeg-threads=3 "/mnt/$BOOK_SRC" --output-file="/mnt/$BOOK_DEST"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment