4

I want to rotate video file . for that I find a way

  1. using AVMutableVidoeCompositionLayerInstruction method setTransform: AtTime:
    • Will this approach rotate the every frame of video or simply set the transform matrix property in video header file ?

if this add transform matrix to header instead of rotating avery frame of video then I am afraid for portability in others players.

what is the best way to rotate an video with portability ?

Thanks

iOSPawan
  • 2,884
  • 2
  • 25
  • 50

1 Answers1

-1

You can use ffmpeg library to rotate the video which will support portability.

You just go through following links then you will get some idea

ffmpeg.org

Rotating videos with FFmpeg

Community
  • 1
  • 1
thavasidurai
  • 1,972
  • 1
  • 26
  • 51