Posts by Phil2011

    That sounds like a textbook case of not using 4K60 "certified" cables. Resulting in insufficient bandwidth and sync problems.

    That may well be the case although they are certified, or at least they say they are :). However I still have the issue of RGB keeps making the TV switch to PC mode, and it only seems to run in RGB 8bit @ 4K when playing 10 bit video files. Given there is no advantage to using RGB for video and that RGB @ 4K is pushing the HDMI data rate to the max (where anything less than optimal can cause problems), I'm hoping all the issues resolve by outputting YCbCr 4:2:0. I've yet to test it on the TV but when I do I will report back.

    The Amlogic box currently being used with CoreElec defaults to YCbCr 4:4:4 at HD and drops to 4:2:2 10 bit for 4K video and has had no issues.

    I've never seen video playing devices default to RGB before with no option to change it, usually if they have the option of RGB its in the menus somewhere and never on by default. Using RGB for video is not the best for compatibility, and a shame the option isn't given to allow the user to choose the output format.


    I've now tested the change and 4K playback issues are resolved. It now outputs YCbCr 4:2:0 36bit in 4K and perfect picture, no drop outs.

    However.... on switching Kodi to 1920x1080 I just get a picture that is corrupted and unwatchable. I'm wondering if this is because HDMI doesn't support 1920x1080 at 4:2:0 and it needs to be 4:2:2?

    My Samsung TV would switch to PC mode only if the device icon is named "PC". It does not matter if the signal is RGB or YCbCr.

    My TV switched itself to PC mode, I could select another source type for it, but every now and then it would switch back and identify itself as a PC, I assumed this was because of the RGB input.

    The main issue though is at 4K in RGB the display loses sync constantly, so I'm hoping the drop to YCbCr at 4:2:0 will work as it does currently from all other sources.

    I couldn't use the patch file linked to above, I think the source has changed so that the patch no longer works, so I made a new patch file and simply set in two places, ycbcr_420_only = true which follows after the call to 'drm_mode_is_420_only' to override that and force it into YcbCr, and made a did a new build image and on my computer monitor it is now outputting YCbCr 4:2:0, I will test on the TV tomorrow.

    Many thanks for your help and point me in the write direction.

    I have an issue with RGB output via my AV amp to Samsung TV, using Libreelec on an Intel N97 mini-PC.

    1) HD 1920x1080 content plays to the TV as RGB 32bit - plays okay but see point 3.

    2) 4K content plays to the TV as RGB 8bit which keeps losing sync (display keeps going black for several seconds and audio can drop in and out), so I'm guessing the data rate is too high, I get the same issue with Windows running as RGB 8bit @ 4K from the same box.

    3) Because the output is in RGB, the TV wants to keep switching to PC mode (which isn't good for video/films)

    Coreelec on an older AmLogic box always outputs YCbCr 4:2:0 at 10bit, this works perfectly with 4K 10bit and all other content. All other devices (NVidia shield, Blu-ray player etc) always defaults to YCbCr and have no issues either.

    So questions is: How can I get Libreelec to output YCbCr for all content so I'm not having issues with the TV treating the input as a gaming or PC device and resolve the issues of the HDMI dropping out.

    I do understand internally RGB is what is being used, and it stays as RGB on the output simply because there is no difference in quality to be gained by the conversion back, however this ignores compatibility. Many video editing processes use RGB internally, for example video editing software, but for compatibility and by convention, we encode the video back to YUV, yes it might be a waste of time doing that, but convention for video is to have it in that format. RGB output from video playing devices is not the norm.

    Using Kodi with Windows gives me the option to set Windows to output YCbCr @ 10 bit, and this works perfectly, however if possible I'd like to use Libreelec for just enough OS for Kodi, I don't need the complications of Windows doing updates etc, but think the push to RGB on the output, despite best intentions, is causing some of us real headaches.

    Just wondering if this can be added into the source to help others in the future, following on from this thread

    patric
    November 9, 2022 at 11:28 PM

    I've created and added the following to the 70-local-keyboard.hwdb file to get the OK button working.

    Code
    evdev:input:b0005v1D5ApC080e0000*
     KEYBOARD_KEY_c0041=enter