I do not think this would be a good idea because I have some personal patches (Kodi related, especially for PVR manager) which only make sense in my personal environment and therefore might lead to misbehaviour of Kodi outside my personal environment. Sorry!
Posts by mule
-
-
Mhmm, I am compiling my own 8.2.x version with some personal patches. About 2 weeks ago I upgraded to r7p0 on 6 boxes (a mix of S905X and S912) and until now there were no issues/regressions (did also test Billy Lynn with 60Hz). Would be great to know which regressions exactly had been found.
-
It is an issue in the old kernel. I tried to fix it but that was of no success. Maybe if I have some more spare time I'm going dig more into the issue.
-
Bit depth auto switching has not been finalized by Sam (OSMC) yet. Therefore it is better to use fixed settings.
-
Can confirm that GUI is snappier and GUI overlay stutter is gone. Only minor downside is that there is some tearing in the GUI because of wrong vsync.
-
So noise reduction has been disabled by default. Thanks for the info.
-
Which ones?
GDPR-2: Would you be so kind to answer my question? My goal is to compile a rock solid 8.2.2.3 with the best picture quality possible. This is why I asked.
-
If you want stable releases do not use these alpha test releases. These are not for daily use.
-
the new kernel brings some video fixes as well.
Which ones?
-
mule please try the latest test image here
I have added sams dither and rounding code to the kernel along with a banding issue fix of his as well.
I have also added some experimental code to Kodi to set the round option automatically however I have not tested this to see if it works so if you could try playing a couple of clips and upload your kodi.log I will be able to see if it is being set or not before content is played.
Also of interest to users with displays on their boxes, this build contains an updated vfd driver by The Coolest which reduces the need for a box specific DTB but does require a new config to be placed in /storage/.config/ ... some examples can be found here and extra support is available at his thread here.Thanks for your efforts. I had a look at your patch and would like to clear things up in regards of the different patches:
- The below attached "dither"-debug code is not of any use, because setting it just results in flickering.
Code++ } else if (strncmp(tmpbuf, "dither", 5) == 0) { ++ int dither = 0; ++ if (tmpbuf[6] == '1') ++ dither = 1; ++ hd_set_reg_bits(P_VPU_HDMI_FMT_CTRL, dither, 4, 1); ++ hdmi_print(INF, SYS, "hdmitx: adjust dither to %d", dither); ++ return;
- The below attached "round"-debug code was implemented in order to test if this setting can fix the banding issues and yes it does, but it has to be set everytime after playback has been started. I'm therefore using the "callbacks" addon for kodi with a script which always gets started by the kodi event "on playback".
Code++ } else if (strncmp(tmpbuf, "round", 5) == 0) { ++ int round = 0; ++ if (tmpbuf[6] == '1') ++ round = 1; ++ hd_set_reg_bits(P_VPU_HDMI_FMT_CTRL, round, 10, 1); ++ hdmi_print(INF, SYS, "hdmitx: adjust round to %d", round); ++ return;
- The below attached code part was implemeted by Sam as a try to generally fix the banding issues after we found out that setting round=0 or round=1 fixed it. Sadly this general approach did not help, because as written before setting round has to be done everytime after playback has been started. So this part of the code is pretty useless.
Code+ hd_set_reg_bits(P_VPU_HDMI_DITH_CNTL, hs_flag, 2, 2); + } else { + hd_set_reg_bits(P_VPU_HDMI_FMT_CTRL, 0, 4, 1); +- hd_set_reg_bits(P_VPU_HDMI_FMT_CTRL, 0, 10, 1); ++ hd_set_reg_bits(P_VPU_HDMI_FMT_CTRL, 1, 10, 1); + } + break; + default:
- The below code part as change of the videoplayer from kodi is just one part of the final solution from Sam on which he is working now. This code part alone does not solve the banding issue.
Code++ CLog::Log(LOGINFO, "Fix potential banding issue with material"); ++ SysfsUtils::SetString("/sys/class/amhdmitx/amhdmitx0/debug", "round1");
- The below code part Sam implemented in order to switch between BT.2020 and REC709 when using Kodi GUI in 4k resolution. Again this is only one part of the code needed to be useful. To make switching between color spaces possible kodi needs to be updated too.
Code++ } else if (strncmp(tmpbuf, "do2020", 6) == 0) { ++ hdmi_print(INF, SYS, "hdmitx: BT2020 AVI on"); ++ hdmitx_set_reg_bits(HDMITX_DWC_FC_AVICONF1, 3, 6, 2); ++ hdmitx_set_reg_bits(HDMITX_DWC_FC_AVICONF2, 6, 4, 3); ++ return; ++ } else if (strncmp(tmpbuf, "no2020", 6) == 0) { ++ hdmi_print(INF, SYS, "hdmitx: BT2020 AVI off"); ++ hdmitx_set_reg_bits(HDMITX_DWC_FC_AVICONF1, 2, 6, 2); ++ hdmitx_set_reg_bits(HDMITX_DWC_FC_AVICONF2, 0, 4, 3); ++ return;
Final conclusion: For now some of these patches are of no use at all, some are not ready for use. Solving banding issues and using kodi GUI in 4k needs extra code from Sam/kodi developers.
If you have any further questions just ask.
-
Thanks for your efforts, it's great to see users helping in this way however I will not be using the legacy kszaq 8.2 nougat kernel anymore, the LE kernel is a more 'recent' nougat kernel and I feel our efforts would be better focused there. I have submitted a PR to add the dither/round/REC709/BT2020 options to the LE kernel link.
I will add the Kodi portion of the code to the community builds as soon as I get a chance.I agree with you that further development should be based on the new kernel. Hopefully the important bugs can be solved quickly.
-
I made a patch for the old kernel in order to get rid of flickering/noise which is now fully functional. The formerly linked from Sam's OSMC github you linked was not complete, so I made a new one (see attachement).
This patch also includes the new debug options (dither/round/REC709/BT2020) developed by Sam. Round for avoiding banding on S905(x) and REC709/BT2020 in order to use KodiGUI in 4k. Both needs some (not yet finished) changes to the Kodi code in order to work.
I tried to fix the green issues with e.g. 422-10Bit but was not yet succesfull. Will try some more changes later.
-
Let me know how the patch goes for you.
The patch for the old kernel in order to get rid of flickering/noise is now fully functional. The formerly patch from Sam's OSMC github commit which was posted by wrxtasy was not complete, so I made a new one (see attachement).
This patch also includes the new debug options (dither/round/REC709/BT2020) developed by Sam. Round for avoiding banding on S905(x) and REC709/BT2020 in order to use KodiGUI in 4k. Both needs some (not yet finished) changes to the Kodi code in order to work.
I tried to fix the green issues with e.g. 422-10Bit but was not yet succesfull. Will try some changes later. -
As far as I testet: Only with 8.2.
The flicker only appeared on S905 devices, not on S912 and it is mostly recognizable on OLED TVs. On other TVs and projectors you have exctly to know where to search for and stand next by the screen.
The noise is very very hard to be recognized on small screens (TVs). The first time I recognized it was when I compared my UHD player with my Minix U9 using my projector: I missed the sharpness of my UHD player in the picture and so went near the screen where I recognized the mentioned noise and that it even exists while playback is being paused.
This may explain why there are only a few complaints about it.
-
Will the 8-bit processing path of S905X affect the "thing" about HDR much - i.e. vivid colours and superior contrast compared to SDR? I've been thinking about getting me a Sony XE9005 which has a true 10-bit display panel but I'd rather wait if the output devices are not up to it. S912 is not an option because of the "stuttering video with subtitles" issue.
In theory the vividness of colours should not be impacted by the bitdepth, but I did not explicitely test colours because I am busy getting a mostly banding free image from my Vero4k and a flicker/noise free image from my Minix U9. So I did many tests in regards of banding and the result is that with S912 based devices banding is not an issue at all (with the right kernel patch and if the source material is free of banding). With S905X there is some slight banding left which can be recognized if you are using a projector. On a TV screen it is much more harder to be recognized.
-
This could be down to deinterlacing or noise reduction, have you tried turning them on/off?
Let me know how the patch goes for you.No, it has nothing to do with noise reduction. The issue is caused by faulty round/dither options. 8.2.2.3 with the patch mentioned by wrxtasy just compiled successfully. Going to test it in the evening, results will follow.
Side note: The anti flicker/noise patch is already included in the new kernel you are using now.
-
GDPR-2: Thanks for your open words. 8.2.x is without patching not an alternative because with the old kernel there is visible flickering on S905 and noise on S912 with 4k/HDR videos (even while playback is being paused).
I am going to try to patch the 8.2.x with the anti flicker patch by Sam. Lets see if this is a solution.
-