How to handle videos in anamorphic format?

asked 2015-10-13 16:38:00 -0600

Hello,

I am working with AVCHD videos (MTS format). These videos have a native resolution of resolution of 1440x1080 pixels with a pixel ratio of 1.33:1 and aspect ratio 16:9. I found that they call this an anamorphic format. When I open these videos on any video player, they will be displayed with an aspect ratio of 16:9. However, when I open these files using OpenCV VideoCapture, the images that I get have the same original resolution 1440x1080 which assumes a pixel ratio of 1:1 instead of the intended 1.33. How can I force OpenCV to return images that match the intended aspect ratio of 16:9?

Kenny

edit retag flag offensive close merge delete