AVAssetExportSession giving me a green border on right and bottom of output video

后端 未结 5 1901
余生分开走
余生分开走 2021-02-02 17:07

Here\'s the code:

AVAssetExportSession *exporter = [[AVAssetExportSession alloc] initWithAsset:mixComposition presetName:AVAssetExportPresetHighestQuality];
             


        
5条回答
  •  野性不改
    2021-02-02 17:32

    In order to get the proper resolution try something like this... increment it until the nearest number that can be divided by 16:

    computedVideoSize=self.view.frame.size.width;
    
    while (computedVideoSize%16>0) { // find the right resolution that can be divided by 16
        computedVideoSize++;
    }
    

提交回复
热议问题