Answer the question
In order to leave comments, you need to log in
Ffmpeg rotate video how to update metadata?
Greetings, I've been fighting for more than one hour and I can't figure out how to convert video correctly.
first I read the data of the uploaded video, check the size to resize or not. so I check if, for example, I shoot from the phone, I get mediainfo data '.$video.' | grep Rotation
on the iPhone test. I get info that the video needs to be rotated. Next I make a poster.
In general, everything works as it should. but the problem is that when I encode with a rotation, the html5 video continues to show it with the original data. those. rotates the video already rotated.
I assume that the meta data of the video is not updated and html5 reads it and rotates it automatically.
How to update data after a flip?
media info before conversion
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question