Creating MP4 / M4A Files with Section Labels

I am trying to merge several audio files into a single mp4 / m4a file containing chapter metadata.

I am currently using QTKit for this, but unfortunately when QTKit exports to m4a format, all metadata is completely deleted (this was confirmed as an Apple error) see code example . I think this is a QTKit rule for this to work, but it would be happy if it turned out to be erroneous, since it is a really neat API for it if it works.

So, I'm looking for a way to combine audio files (the input format does not really matter, since I can do the conversion) into an m4a file with chapter metadata.

As an alternative to code, I am open to the idea of ​​using an existing command line tool to accomplish this if it is redistributable as part of another application.

Any ideas?

+6
objective-c cocoa audio macos quicktime
source share
4 answers

Audiobook Maker does something similar, and I believe it uses ffmpeg under the hood. It's open source, so maybe worth a look?

+3
source share

I found these guys: sensoryresearch , who license the API to write section / text / link tracks in MP4 (which is M4A).

+1
source share

Depending on where the error is located, you can try to go directly to the QuickTime C APIs to record the video file. You can also try adding chapter tracks using the C APIs.

Any word when Apple fixes the error? I plan to create advanced podcasts with QTKit, and this is necessary for the job.

0
source share

The mp4chaps command line tool does the job. This is from the mp4v2-utils package if you are using Ubuntu. Remember to specify the qt format for faster time, because the headings of the Nero format chapter seem to be used less these days.

0
source share

All Articles