FFmpeg on iPhone - Modifying Video Orientation

前端 未结 4 1736
长发绾君心
长发绾君心 2020-12-03 09:25

I\'m messing with h264 videos loaded with FFmpeg on the iPhone 3GS. The problem is any videos recorded in \"Portrait\" orientation have a transformation matrix applied to th

4条回答
  •  执笔经年
    2020-12-03 09:41

    the movie is recorded directly with the orientation of the hardware camera. when you turn it the camera still records with the same orientation and the same straight write to file.

    What determines the orientation of the video is the Transform matrix

    The matrix is set dependent on the iphone's orientation. And this is what will determine if you have to rotate the video. And that rotation could be 90 degrees and it could be 180 degrees. It depends on the phone orientation.

    After you get an idea of what the matrix is and how it relates to the image you will be able to determine the orientation of the video.

提交回复
热议问题