Video Orientation

  • I decided it was time to update my Pi 2 running 9.2.8 to a Pi4 running 11.0.3. which was easy to do but now I have some changed behaviour with video orientation:

    On some of my home videos which were shot inverted I could change the orientation using either the metadata or by 180 degree rotation, no problem and it seemed to work seamlessly on the earlier version.

    With the newer version on the same videos from my server I can change the orientation by 90 degrees but selecting metadata or 180 degrees still leaves me with inverted video.

    So, am I missing something basic (I can't find it referenced anywhere on the forum) or should I be reporting it as a bug?

  • I have a hunch it's this https://github.com/xbmc/xbmc/issues/23622 albeit with a slightly different use-case/presentation. If I'm right, it's not technically a bug since current Kodi GBM code is working correctly. The issue is that current Kodi GBM code doesn't handle enough rotation scenarios. The reason it stopped working is due to RPi images swithing to the GBM display pipeline (moving away from proprietary code to standards in the now-upstream kernel).

  • If you disable "Allow using DRM PRIME decoder" in settings/player/video then the orientation flag is supported.

    But performance will be lower.

    I think on the nightly builds, you can leave that setting enabled but change "PRIME Render method" to EGL,

    which will have better performance (but still not as good as using DRM for rendering).

  • Thank you gents.

    That proved to be spot on and having disabled "Allow using DRM PRIME decoder" normal service is resumed.

    This is not an area in which I have any knowledge and I would not have guessed the reason or resolution so I appreciate the help and expertise.