Video rotated after applying AVVideoComposition

后端 未结 5 1283
野性不改
野性不改 2021-02-09 07:00

After applying an AVVideoComposition to my AVPlayerItem, the filter I apply does work, but the video gets rotated in the AVPlayerLayer.

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-09 07:23

    Instead of assuming that the image will be filtered, check first if filteredImage is nil. If not, then request.finish(with: filteredImage, context: nil)

    However, if it is nil you must request.finish(with: SomeError)

    This is as per the docs.

提交回复
热议问题