swift-video-generator icon indicating copy to clipboard operation
swift-video-generator copied to clipboard

StartWriting() to generate video fail (IPhone 12)

Open aaron-snt opened this issue 5 years ago • 0 comments

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?

aaron-snt avatar Nov 20 '20 14:11 aaron-snt