Bug 386664 - Allow to manually rotate video thumbnails and videos during playback
Summary: Allow to manually rotate video thumbnails and videos during playback
Status: CONFIRMED
Alias: None
Product: gwenview
Classification: Applications
Component: general (other bugs)
Version First Reported In: 17.08.1
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
: 342667 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-11-08 21:06 UTC by Peter Maiwald
Modified: 2025-09-04 14:39 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Maiwald 2017-11-08 21:06:29 UTC
The orientation of some videos in portrait modus is wrong. IPhone videos recorded in portrait modus are displayed in landscape modus.
Comment 1 null 2017-11-08 23:42:41 UTC
Could upload a very short clip or provide a link to a video that fails for you? Also it would be worth checking with VLC (good heuristic to see if the video itself is fine) as well as Dragon Player (should use the same player component as Gwenview, i.e. "Phonon") whether those show the same problem.
Comment 2 Peter Maiwald 2017-11-09 21:13:12 UTC
(In reply to Henrik Fehlauer from comment #1)
> Could upload a very short clip or provide a link to a video that fails for
> you?
Yes here: https://c.gmx.net/@327708989611578698/NOTYkUlSRNyc7V-fqGWKSg

> Also it would be worth checking with VLC (good heuristic to see if the
> video itself is fine) as well as Dragon Player (should use the same player
> component as Gwenview, i.e. "Phonon") whether those show the same problem.
In VLC and also in GMX-Mediacenter the orientation of the video ist correct in portrait mode.
Comment 3 null 2017-11-09 23:02:30 UTC
Thanks for the quick update. This is interesting. It works for me on openSUSE Tumbleweed with the VLC Phonon backend (VLC 2.2.6), i.e. VLC, Dragon Player and Gwenview all are playing the video just fine in portrait mode. (I could not get Phonon GStreamer to work…)

As Manjaro is a rolling release distro too, there should not be that much difference in terms of package versions. Not sure what we can do for you from Gwenview's side, but you could try checking two more things:
- What Phonon backend is configured in systemsettings? (Start "kcmshell kcm_phonon" or just use the search.)
- Which version of VLC are you using? (Check with "vlc -version".)

And just to confirm: With "displayed in landscape modus" you mean the video is shown rotated, i.e. you do not see any distortion of the image?
Comment 4 Peter Maiwald 2017-11-10 15:41:39 UTC
(In reply to Henrik Fehlauer from comment #3)

> Not sure what we can do for you
> from Gwenview's side, but you could try checking two more things:
> - What Phonon backend is configured in systemsettings? (Start "kcmshell
> kcm_phonon" or just use the search.)
> - Which version of VLC are you using? (Check with "vlc -version".)

Phonon backend: PhonenGStreamer 4.9.0
VLC 2.2.6 (revision 2.2.6-0-g1aae78981c)

> And just to confirm: With "displayed in landscape modus" you mean the video
> is shown rotated, i.e. you do not see any distortion of the image?
Yes it is rotated. No distortions.
Comment 5 null 2017-11-10 16:47:44 UTC
I kinda hoped you had VLC 3 and some distortion (I was able to get into such a situation with VLC 3 and a different video output mode). Also tried this on KDE Neon (based on Ubuntu 16.04 LTS) with Phonon VLC, where it works fine too.

I'd be interested to know if someone else with a working GStreamer backend can confirm the bug and tell us if only Gwenview or every GStreamer based player is affected.

You best bet is probably to switch Phonon's backend from GStreamer to VLC in the KCM (move it up / "prefer"). If you see only one backend, you may need to install it's respective package (see https://wiki.archlinux.org/index.php/KDE#Which_backend_should_I_choose.3F).
Comment 6 null 2017-11-12 13:50:42 UTC
Looking at bug 361829, digiKam claims to use GStreamer (first via Qt5Multimedia, later via QtAV). And indeed, in digiKam the video is played with an incorrect orientation. Same thing with the "Parole" media player. Also finally got my Phonon GStreamer backend to play the video, I can confirm the problem. This means this is a problem in GStreamer.

There is another issue: The orientation of the thumbnail is wrong, too. According to bug 361829, thumbnail generation for videos is delegated to "KDE5 imageio plugins". This can also be seen in Gwenview and Dolphin, where independent of the selected Phonon backend the video orientation is wrong.

In summary:
- As a workaround, switch to the Phonon VLC backend.
- Gwenview should allow the user to override the video orientation. This is useful even for cases where the orientation is read correctly, and the UI is already there for rotating images. Let's track this here.
- GStreamer should be fixed to show the correct video orientation. Upstream bug: https://bugzilla.gnome.org/show_bug.cgi?id=765309
- KDE's thumbnailing infrastructure should respect the video orientation tag. This is tracked in bug 329854, but in case digiKam decides to not use imageio plugins anymore this would need a separate bug.
Comment 7 Christoph Feck 2017-11-16 00:11:33 UTC
*** Bug 342667 has been marked as a duplicate of this bug. ***
Comment 8 Christoph Feck 2017-11-16 00:13:21 UTC
digikam does not use KIO thumbnailer. Video previews probably have to be fixed in 'ffmpegthumbs'.
Comment 9 A Linux User 2025-09-04 12:18:39 UTC
Thank you for the bug report. Unfortunately we were not able to get to it yet. Can we ask you to please check if this is still an issue with Gwenview 25.08.0 (the latest released version)?