Reputation: 1503
I am using AVFoundation to record video on IOS 5. I would like the content to be in an MP4 container. I have been searching around and cannot find a message that specifies the format to record the video in. I would rather record to the MP4 file on the first shot instead of recording it to a mov file and then reencode it in a mp4 on a separate pass. Does anyone know how to do this?
I guessed above when I said it records to a mov. What is the default file format it records to?
I am new with AVFoundation and IOS in general so please excuse me if some of this is obvious and I am having difficulty finding it.
Thankyou for any help
Upvotes: 2
Views: 4740
Reputation: 90
I am currently unaware of how to do it in foundation classes, but you can certainly do it using AVAssetWriter look for option outputFileType and shouldOptimizeForNetworkUse.
Upvotes: 2