video captured from iphone gets rotated when converted to .mp4 using ffmpeg

后端 未结 10 1816
名媛妹妹
名媛妹妹 2020-12-01 02:31

When I try to upload videos captured from my iPhone in my app, the server performs a conversion from .mov to .mp4 so that it can be played in other platforms. However the pr

10条回答
  •  长情又很酷
    2020-12-01 03:04

    Or... to simply change the tag in an existing file:

    Read the current rotation

    exiftool -Rotation 
    

    then, for example:

    exiftool -Rotation=180 
    

    to set it to 180

提交回复
热议问题