[x86-64] Switching Display Modes does not work for Zoom

  • I bound a remote key to switching Display Modes, its easier than to go into the menu all the time.

    Now when I press a button on the remote I can easily cycle to the mode I want for a particular video.

    Everything works fine except for Zoom Mode, when I cycle to that nothing happens. If I do it from the video-menu it does work, but I have to increase or decrease the percentage and set it back.

    I'm using the generic x86/64 image.

    Edited once, last by Elicity (March 28, 2025 at 8:19 AM).

  • Go to Best Answer
  • Well this problem does also appear on the rpi5.

    And there is an additional issue where by changing the zoom percentage on x265 video will black out the entire screen (while playing the video). Stopping/Starting/Restarting KODI service does nothing to get video back. So I'm forced to reboot the rpi5 or powerdown/poweron.

    Can someone confirm ?

    Edited once, last by Elicity (March 28, 2025 at 9:48 PM).

  • Different issue that we fixed: https://github.com/LibreELEC/LibreELEC.tv/issues/9884 and different zoom issue still being resolved on RPi4/5: https://github.com/raspberrypi/linux/pull/6741

    Re-reading the issue report (not on a phone) and I'd guess either the there's no function to do what you want for Zoom? - I don't see anything similar on https://kodi.wiki/view/List_of_built-in_functions or it's not working and needs to be reported upstream to Kodi developers via https://github.com/xbmc/xbmc/issues

  • Its working fine for everything else, just not x265. The GUI-colors are off too while playing, its weird :D

    Something isn't right with x265, but it does not really matter. I'm happy its playing at all. I'll report it once I have some more time on my hands.

  • HiassofT Thank you very much, you guys are too fast ^^


    edit:

    So I updated to latest LE12 (2025-04-04), Immediately for some constructive feedback.

    The black screen problem has been fixed, yay!

    However the other issue i still present:

    Everything works fine except for Zoom Mode, when I cycle to that nothing happens. If I do it from the video-menu it does work, but I have to increase or decrease the percentage and set it back.

    (afaict the zoom value is not applied when switching to zoom mode)

    Edited once, last by Elicity (April 6, 2025 at 9:37 PM).

  • From what I can see with View Mode and Zoom:

    Starting from "Normal" mode if you enable "Zoom" mode it starts with "Zoom amount = 1.0" and when you make any change to the amount value the selected mode automatically changes to "Custom" mode. I've zoomed a 4:3/SD letterbox video so the sides are closer to the edge of my 16:9 screen resulting in "Zoom amount = 1.15" and if you toggle between "Normal" and "Custom" modes the zoom value is persistently applied.

    However, if I now switch back to "Zoom" the display switches to a mode similar to "Wide zoom" and not the current "Custom" value that I defined. This probably makes sense in the context of not wanting to automatically revert to "Zoom amount = 1.0" when going back to "Zoom" as this would presumably change the "Custom" value automatically too. However, if I now move to change "Zoom amount" the wide zoom mode is shown until the amount value is adjusted; only then the screen switches to the "Custom" amount value. I also note that if I adjust "Zoom amount" back to 1.0 the mode auto-switches back to "Normal" mode again.

    This is probably old code and "not a bug" since "code is working as designed" but the design could use improvement. Unless there is some use-case I'm not understanding I think it would be more logical to simply have "Zoom" respect the current "Zoom amount" value defined and eliminate "Custom" mode.

    As this is nothing specific to LibreELEC I'd suggest you report this to Kodi developers via their forum or GitHub issues.

  • I'll put in a request, referring to this thread.

    The GUI-colors are off too while playing, its weird :D

    So I thought I'd take some screenshots, to show the issue. Now here comes the kicker: they are snapped when colors are not right, but display fine when I look at them. When I play x265 GUI-colors are off, when I select another video-type x264, the GUI-colors snap back.

    There is another underlying issue. Maybe driver related idk.


    Thanks for all the help, its awesome!

  • Take a look, I'm not that versed in video tech but its x265 hevc if those are the right terms.

    Attachment triggers the GUI-palet shift on rpi5.

    Most colors switch to a "brighter" version of themselves, but its best seen if you select "brown" under settings>interface>skin>colors

    In the GUI brown just switches to red when playing that file.

    Afaict its just a one off after I tested more x265 and they do not seem to have this issue.

    However converting it to a different container or with different encoder does not seem to matter.

    The problems shifts along, its weird.