Swift: video records at one size but renders at wrong size

前端 未结 2 1302
忘了有多久
忘了有多久 2020-12-01 23:47

The goal is to capture full screen video on a device with Swift. In the code below, video capture appears to happen at full screen (while recording the camera preview uses t

2条回答
  •  [愿得一人]
    2020-12-02 00:31

    Try SDAVAssetExportSession

    You can specify the AVVideoWidthKey and AVVideoHeightKey You can also specify the profile, AVVideoProfileLevelKey ie AVVideoProfileLevelH264HighAutoLevel for supporting something 4k, a friend (Michael Lowin) tracked that property down to help us improve some export qualities.

提交回复
热议问题