I have a batch of MP3 based books. Some of them divide into files according to book's own structure: chapters and so on. Some of them was just divided into equally lengthened parts.

So. I've bought an iPhone, and I want to convert them all to M4B format. How could I convert them in a batch? I mean how cold I set up a process once, for each book, and then, after couple of weeks, receive totally converted library.

The only able program for such conversion I've found was Audiobook Builder for a Mac. But it is pretty slow and do not support batching in principle.

Solutions for any platform, please.

link|improve this question

57% accept rate
feedback

1 Answer

Open a Terminal. Change to the directory the MP3 files are in. Type:

for i in *mp3 ; do ffmpeg -i $i -sameq $i.m4a ; done

Of course, ffmpeg must be installed.

Note that I've used "m4a" above. The m4b format appears to be the same, just with a letter changed to indicate that it's a book. You can rename them all later if the one-letter difference bugs you. They play the same.

EDIT: I'm assuming you use a Mac. The above will also work on a PC if you run a Unix-like OS, or install Cygwin under Windows.

link|improve this answer
This will not add chapter metadata to result file, will it? – Artem Tikhomirov Oct 18 '09 at 17:27
And it will not merge those mp3 files into one. What's the point? – Artem Tikhomirov Oct 18 '09 at 19:50
I didn't see a requirement to combine the chapters in your original question. You want to combine all the MP3 files for each audiobook into a single file, including adding metadata that marks the beginning and end of each chapter? That's not the question you originally asked. Unless that metadata is in the original MP3 files, I'm fairly sure you'll have to add it manually. – CarlF Oct 19 '09 at 14:47
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.