A shell script to convert mp3 to m4b files, album cover supported, folders supported.
audiobook-convert
uses ffmpeg
and rename
. For ffmpeg, make sure you have access to libfdk_aac
.
sudo pikaur -Syu pod2man
sudo pikaur -Syu ffmpeg-libfdk_aac
- Clone the repo.
git clone https://github.com/megasuperlexa/audiobook-convert
- Running the script.
Move all .mp3
files to be combined and converted into audiobook-convert/input/
(1-level folders with mp3 supported too), add album cover (optional) - any .png file, if no .png found then cover is taken from mp3.
From the root folder of the repository, run:
sudo chmod +x convert.sh
./convert.sh
I used to dual-boot to Windows and deal with iTunes and iBooks, which was not exactly a pleasant experience, and sometimes, for unknown reasons, iBooks just won't play my book properly. Here's 100% Linux-friendly way (which doesnt require iTunes and wires at all):
- Send the m4b file to yourself via Telegram messenger (Saved Messages)
- On the device, install BookPlayer from AppStore. This is the nicest audiobook player I've seen, completely free and opensource: https://github.com/TortugaPower/BookPlayer
- On the device, from Telegram, copy the book to the BookPlayer (via select-more-share-more-copy to BookPlayer). Enjoy!