Video not rotating using AVMutableVideoCompositionLayerInstruction

后端 未结 3 2029
粉色の甜心
粉色の甜心 2021-02-06 12:42

I\'m trying to merge two videos I get after recording using the camera as a UIImagePickerController. I\'ve succeeded with combining the videos into one but I have some problems

3条回答
  •  無奈伤痛
    2021-02-06 12:58

    You have two layers. You need to apply the rotation instruction to both layers in the composition. What you are doing here is applying the rotation instruction to only one of them. Get a reference to both elements in the video composition and apply separate instructions to the two layers.

提交回复
热议问题