Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.8.3, 6.9.0
Description
For a rotated video, e.g. the one attached that has landscape resolution of 1280x720 but rotated -90 degree, which means it is actually a portrait video, the build-in Media Player on Windows can correctly recognize that and play it in portrait mode:
Not quite so if it is QtMM with
qputenv("QT_MEDIA_BACKEND", "windows");
So we may want to fix the behavior so that native backend works natively. Currently, FFMPEG works correctly so that is the workaround.
The snippet shown in QVideoWidget doc can be used as reproducer:
https://doc.qt.io/qt-6/qvideowidget.html#details