Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating MP4/M4A files with Chapter marks

I am trying to join together several audio files into one mp4/m4a file containing chapter metadata.

I am currently using QTKit to do this but unfortunately when QTKit exports to m4a format the metadata is all stripped out (this has been confirmed as a bug by Apple) see sample code. I think this rules QTKit out for this job, but would be happy to be proven wrong as it is a really neat API for it if it worked.

So, I am looking for a way to concatenate audio files (input format does not really matter as I can do conversion) into an m4a file with chapters metadata.

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

Any ideas?

like image 398
Dave Verwer Avatar asked Sep 10 '08 09:09

Dave Verwer


2 Answers

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

like image 63
amrox Avatar answered Sep 18 '22 11:09

amrox


I discovered these guys: sensoryresearch who license an API for writing chapter/text/link tracks to MP4s (which is what an M4A is).

like image 29
user10864 Avatar answered Sep 18 '22 11:09

user10864