Web Projects Outsourcing

How To Create an M4B Audiobook with Chapters from a Directory of MP3 Files to Play on IPOD

This is the fastest way to create an ipod-playable m4b file. The “drawback” is that the codec is proprietary but this is how you’d put it, it is free and the most efficient in quality and encoding.

Download the latest Nero Aac MPEG4 Encoder/Decoder binary from here. Unpack, copy neroAacDecneroAacEnc and neroAacTag to ~/bin.

audiobook, mp4, ipod, m4b, mpeg 4, neroAacEnc, ffmpeg, faac, chapters, mp3
Make sure ffmpeg is available:

Now create the script you will use in your directory with mp3 files:

The steps are explained below.

Create some useful variables and directories. This will contain temporary files:

Output directory and file:

ffmpeg recode to wav and simultaneously create command for neroAacEnc:

Run neroAacEnc with all prepared parameters:

Set tags:

Finally, everything within a ready-made script:

After you save the script and make it executable, you can run:

The output file, $OUTFILE, will also have chapters set up automatically be the encoder. The quality is better than for those made with faac, and file size is normally 1/4 less too.

Enjoy!

One thought on “How To Create an M4B Audiobook with Chapters from a Directory of MP3 Files to Play on IPOD

  1. Klaus

    Time for bash bashing 😉
    Don’t create temp dirs like that – use mktemp for that, it’s part of the coreutils package.

Leave a Reply

Your email address will not be published. Required fields are marked *

two + 4 =