Hello
I am successfully writing a custom boxed metadata to a raw data metadata track type and custom identifier using the AVAssetWriter, AVAssetWriterTrackInput, AVAssetWriterInputMetadataAdaptor , to a AVFileTypeQuickTimeMovie container.
However, when trying to use AVFileTypeMPEG4 my application is unable to associate my metadata adaptor to my asset writer. The code below has specific setup for my CMFormatDescription, Metadata Identifier, and AssetWriter setup.
Some questions:
* What are the limitations to custom *timed* metadata tracks with MP4 compared to MOV container?
* Are there strategies or specific allowed metadata types for timed metadata within MP4 that can be written by AVFoundations AVAssetWriterInputMetadataAdaptor ?
* If the above is not possible, is it possible to write custom streams to the MP4 container (streams marked private track ID?) via AVFoundation - See http://forum.doom9.org/showthread.php?t=62723 item number #4
Im assuming using a passthrough asset writer and a custom CMSampleBuffer it might be possible - but AVAssetWriter seems limited to predefined AVMediaTypes , which are all standard fourCC codes like ‘vide’, ’soun’ ‘text’ ’tmcd’. Can you pass through your own fourCC?
Any specific information on the limits of timed metadata in MP4 and MOV containers is highly appreciated!