swift-video-generator
swift-video-generator copied to clipboard
StartWriting() to generate video fail (IPhone 12)
I would like some help to make this work correctly. I am generating video from UIImage array by using generate interface of this opensource.
Iphone 8 (IOS 14.2.0) works well. But Iphone 12 (IOS 14.2.0) doesn't works well.
Additionally, I change codec type to hevc. This is works well. ------code------
let videoSettings: [String : AnyObject] = [
AVVideoCodecKey : AVVideoCodecType.hevc as AnyObject,
AVVideoWidthKey : outputSize.width as AnyObject,
AVVideoHeightKey : outputSize.height as AnyObject
]
I just want to use h264 encoder to make vidoe.
Could you help me?