Incorrect Video Orientation
I have written some code that uses OpenCV to read frames from a video file and display them using OpenGL. This works fine except for videos taken with my smartphone where the video is rotated by 90 degrees. From my understanding, the orientation info is in the metadata section of the file, but OpenCV doesn't seem to use this information nor does it provide any means of getting that information.
How can I detect the video orientation so that I can correct it? Is my only option using an external tool like e.g. MediaInfo?
opencv in general does not read any meta information (from video or images)
an exception was made for png images.
(but it's somewhat controversial, what exactly should happen in that case ? i'd say an image is an image.it has width and height, and those should exactly mean, what it says, not what a phone thinks it was)
maybe , you're just expecting the wrong thing here ?