S
S
StynuBlizz2017-07-07 01:35:04
Video processing
StynuBlizz, 2017-07-07 01:35:04

How to determine the orientation of a video?

I need to determine the orientation of the video, for this I did this: I took the rotation variable from the video metadata, and if it is 0 or 180, then the video is horizontal, otherwise it is vertical, but the problem is that, for example, a vertical video downloaded from Instagram has the value of the variable rotation is 0. Based on this, I think that determining the orientation of the video from the value of the rotation variable is not the best option. How then correctly to define orientation?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question