Convert mp3 to m4b -> Audiobooks
10. August 2008
There are a lot of tools available to convert mp3 files into m4b files, the
format for audiobooks on the iPods/iPhones.
However, I stille like to do it on the cmd-line. Its clean and fast. You just need to
have mpg123 and faac installed:
mpg123 -s input.mp3 | faac -b 80 -P -X -w -o output.m4b -
If you want to convert a whole directory of mp3 files, as it is the common desire, here
is the onliner:
for i in $(ls *mp3); do mpg123 -s $i | faac -b 80 -P -X -w -o ${i%mp3}m4b -; done
You can find this cmd-lines also in my wiki.
Blogged with the Flock Browser

How can we do the opposite? Convert from m4b to mp3…
Thanks for putting this up! Its come in very handy.
Just a small point, on your one liner, you have ‘(ls $mp3)’, should this be ‘(ls *mp3)’? It appears that way in your wiki entry.
yes. it should be *mp3. thx for pointing this out
It doesnt work for me, the sound is run to quick in amarok and in the ipod.
Thanks anyway.