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

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

Here\'s the code:

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


        
5条回答
  •  面向向阳花
    2021-02-02 17:22

    a much nicer solution to get the multiple of 16 would be this approach:

    floor(width / 16) * 16
    

    or

    ceil(width / 16) * 16
    

    depending on your preference of having a smaller or bigger width

提交回复
热议问题