SUMMARY It would be cool to have support for non-destructive video rotation using XMP sidecars file. Exactly same as it's currently implemented for photos. Note that video itself may have 'rotation' flag that was wrong STEPS TO REPRODUCE 1. Start video capture on phone in portrait mode and them immediately rotate it to landscape 2. Import to digikam, observe that video is in 'portrait mode' (expected default) 3. Rotate video using "Ctrl+Alt+Left/Right" hotkey OBSERVED RESULT `tiff:Orientation="1"` is written to XMP file. Thumbnail is rotated Player itself still plays video in portrait mode EXPECTED RESULT Embedded video player should automatically rotate video in a same way like thumbnail (basically same thing as right click on it) SOFTWARE/OS VERSIONS KDE Plasma Version: 6.3.4 KDE Frameworks Version: 6.13.0 Qt Version: 6.8.2 ADDITIONAL INFORMATION
I can't reproduce this with the Qt6 version of digiKam. A video rotating over the XMP sidecar is played in the correct orientation. Which version of digiKam are you using exactly? Maik
Okay, if it has a counterclockwise rotation in the metadata, it won't play correctly aligned. I'll take a look. Maik
I'm using `flatpak` digiKam: 8.6.0 KDE Frameworks: 6.13.0 Qt: Using 6.8.3 and built against 6.8.3 KDE Flatpak runtime (Wayland) Build ABI: x86_64-little_endian-lp64 Kernel: linux 6.13-amd64
Git commit 48961c81137e146a1d6775688c6c4d8e9851a2df by Maik Qualmann. Committed on 29/04/2025 at 05:59. Pushed by mqualmann into branch 'master'. fix video rotation in the Qt6 video player FIXED-IN: 8.7.0 M +1 -1 NEWS M +6 -2 core/libs/video/player/qtmm/mediaplayerview.cpp M +6 -2 core/libs/video/player/qtmm/slidevideo.cpp https://invent.kde.org/graphics/digikam/-/commit/48961c81137e146a1d6775688c6c4d8e9851a2df