Skip to content

cli tool that converts .mp3 files to .m4b audiobooks with chapters and audible metadata

License

Notifications You must be signed in to change notification settings

simonwehle/yt2abs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yt2abs

yt2abs is a cli tool that converts .mp3 files (from youtube) into an .m4b audiobook with chapters and metadata from audible to be used in audiobookshelf

Important

ffmpeg is required to use yt2abs

installation:

brew tap simonwehle/tools
brew install yt2abs

usage:

make sure you use the ASIN from audible.com

file mode

to convert a single audio file to a .m4b audiobook

yt2abs -a B07KKMNZCH

full auto mode uses the default file names

folder/
├── audiobook.mp3
└── chapters.txt

Make sure to format all timestamps in the format "H:MM:SS" and add a chapter named "End" with the full lenght of the file.

chapters.txt example:

0:00:00 Introduction
0:00:69 Part 1: First Part
0:04:20 1. First Chapter
0:13:37 Chapter without prefix
6:94:20 End

folder mode

folder mode can merge multiple chapter files to one audiobook

yt2abs -a B017V4IM1G -f .

folder and file structure

Harry Potter and the Sorcerer's Stone/
├── 00 - Introduction.mp3
├── 01 - The Boy Who Lived.mp3
├── 02 - The Vanishing Glass.mp3
└── 03 - The Letters From No One.mp3

build

go build -o yt2abs .
sudo mv yt2abs /usr/local/bin/

uninstall

sudo rm /usr/local/bin/yt2abs
rm -rf ~/.yt2abs

About

cli tool that converts .mp3 files to .m4b audiobooks with chapters and audible metadata

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages