How can I create the correct m4b file?

Does m4b have all the chapter metadata that has the appropriate specification, or better yet, a free library to create it? Maybe I should look for it under a different name?

+2


source to share


1 answer


The MP4v2 library can do this.

One of the commands, mp4chaps, can add chapters to the m4b file. It cannot add URLs or images to this chapter, but it can add chapters.

A text file is required as one of its parameters. Each line is a time, followed by a space and a chapter title, followed by a newline character. For example:

00:00:00.000 Start

      



In my experience, you must list the chapters in order and have the chapter at the beginning, otherwise it won't work correctly.

You can install it manually or via apt-get on Linux (like libmp4v2-0) or via MacPorts on OSX.

Alternatively, if you are on a Mac, the command line program ChapterTool can create chapters for you and can handle URLs and images as well. If you have GarageBand installed, you can find it in / Applications / GarageBand.app / Contents / MacOS / ChapterTool

+1


source







All Articles