AVAssetWriter startWriting Problem

纵然是瞬间 提交于 2019-12-06 10:57:19

I am receiving false on startWriting on an iPad, when it works on both my iPhone3 and 4 (all have iOS 4.2). The status of the writer is failed, with the NSError as: "The operation couldn't be completed. (AVFoundationErrorDomain error -11800)."

Creation of the writer yielded no error when creating with file type: AVFileTypeQuickTimeMovie, and the file did NOT already exist. I've also tried using different pixel buffer pixel formats to no avail. Lastly, I've tried changing the video type to MPEG4 and M4V...again, to no avail.

I'm posting this here instead of creating a new problem, as they both are the same result and is not addressed. I need to have this resolved w/in a few days, so if I learn anything, I'll post what I find.

The most likely cause is that the specific iOS device you are running on does not include the hardware H264 encoder. I think that versions of iPhone earlier than 3GS have no hardware, but I am not sure if the iPad 1 has H264 encoding hardware. I know iPad 2 does have this hardware.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!