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

后端 未结 10 1814
名媛妹妹
名媛妹妹 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:01

    Depending on which version of ffmpeg you have and how it's compiled, one of the following should work...

    ffmpeg -vfilters "rotate=90" -i input.mov output.mp4
    

    ...or...

    ffmpeg -vf "transpose=1" -i input.mov output.mp4
    

提交回复
热议问题