简体   繁体   中英

How do I use AVAssetWriter?

I'd like to take some video frames and encode them into a video. It looks like that's exactly what AVAssetWriter was meant for, but no matter how I eyeball the docs and Google I can't find any way to actually use it. From the docs it looks like I need an input ( AVAssetWriterInput ) to feed the writer from. Fine. But the AVAssetWriterInput class is abstract and the only subclass that I know of in 4.1 is AVAssetWriterInputPixelBufferAdaptor that requires a AVAssetWriterInput in its initializer…? Am I missing something obvious here?

是的,我必须使用+[AVAssetWriterInput assetWriterInputWithMediaType:outputSettings:]获取一个实例,请参阅我的帖子,在一个不同的问题下获取详细的代码示例。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM