[BUG] Receiver is not accepting 10bit signal after latest update


#1

Update: Some receivers are not accepting 4:2:2 color depth with 10bit signal and since update 8.99.2 changed the HDMI driver to use 4:2:2 instead of 4:4:4, my receiver can’t show HDR content in 10bit. Most UHD content is in 4:2:0 which means that the standard color depth should be 4:2:0, which the devs are working on. The best way would be to change the color depth according to the content, however, that require much effort and since we are in the middle of a leap towards using a new kernel and graphic driver (Panfrost) to support the next version of Kodi, the easiest option to use 4:2:0 as default should be the one to go for :slight_smile:

Hi,

I’ve been using CoreELEC for the latest months and cd/cs have been working perfectly. However, after the latest update my receiver is saying the signal receiving is 8-bit when playing HDR10 content which Kodi says is 10-bit. I can also tell that the picture quality is more dim and not the same as when my receiver says the signal is 10-bit and the TV colours are brighter. Please let me know if there are any more information needed. The clips I’ve tested are remuxes and demonstration clips as:

LG Chess HDR
Sony 4K HDR Camp
LG New York HDR Ultra-HD
Sony BRAVIA OLED HDR

During playback:

CoreELEC:~/downloads # bash dispinfo2.sh
CoreELEC display information…

------------ /etc/os-release ------------
NAME=“CoreELEC”
VERSION=“9.0-nightly_20190203”
ID=“coreelec”
VERSION_ID=“9.0”
PRETTY_NAME=“CoreELEC (official): 9.0-nightly_20190203”
HOME_URL=“https://coreelec.org
BUG_REPORT_URL=“https://github.com/CoreELEC/CoreELEC
BUILD_ID=“954202406ee16901dc374f2e50a54b303ec43eeb”
COREELEC_ARCH=“S905.arm”
COREELEC_BUILD=“official”
COREELEC_PROJECT=“Amlogic”
BUILDER_NAME=“relkai”
BUILDER_VERSION=“9.0-nightly_20190203”
------------ /sys/devices/virtual/amhdmitx/amhdmitx0/edid ------------
Rx Brand Name: ONK
Rx Product Name: TX-NR747
Manufacture Week: 0
Manufacture Year: 2015
Physical size(cm): 133 x 75
EDID Version: 1.3
EDID block number: 0x1
blk0 chksum: 0xd1
Source Physical Address[a.b.c.d]: 4.1.0.0
YCC support 0x03, VIC (native 255):
ColorDeepSupport 0xb8 10/12/16/Y444 1/1/0/1
97 16 31 4 19 5 20 32 33 34 93 94 95 96 101 102 98 99 100 3 18 95 94 93 98 353 352 357 358
Audio {format, channel, freq, cce}
{1, 1, 0x7f, 0x07}
{1, 7, 0x7f, 0x07}
{2, 7, 0x07, 0x00}
{7, 7, 0x06, 0x00}
{9, 1, 0x02, 0x00}
{10, 7, 0x06, 0x01}
{11, 7, 0x7e, 0x03}
{11, 7, 0x7e, 0x01}
{12, 7, 0x7f, 0x01}
Speaker Allocation: 0x4f
Vendor: 0xc03
MaxTMDSClock1 300 MHz
Vendor2: 0xc45dd8
MaxTMDSClock2 600 MHz
ColorMetry: 0xc3
SCDC: 1
RR_Cap: 0
LTE_340M_Scramble: 0
HDR DeepColor
checkvalue: 0xd1150000
------------ /sys/devices/virtual/amhdmitx/amhdmitx0/edid_parsing ------------
ok
------------ /sys/devices/virtual/amhdmitx/amhdmitx0/rawedid ------------
00ffffffffffff003dcb710f000000000019010380854b780a23ada4544d99260f474a2dcf00010181c08100818095000101b300010108e80030f2705a80b0588a00501d7400001e023a801871382d40582c4500501d7400001e000000fc0054582d4e523734370a20202020000000fd00184b0f873c000a20202020202001d1020360f05561101f041305142021225d5e5f60656662636403123b097f070f7f071707503f06c04902005706015f7e035f7e01677f01834f00006e030c004100b83c2000800102030467d85dc401788003e305c301e2000fe30f01e0e3060501011d80d0721c1620102c2580501d7400009e0000000000000000000000000015
------------ /sys/devices/virtual/amhdmitx/amhdmitx0/config ------------
cur_VIC: 97
VIC: 97 3840x2160p60hz
Colour depth: 10-bit
Colourspace: YUV422
Colour range: limited
EOTF: HDR10
YCC colour range: limited
PLL clock: 0xc000027b, Vid clock div 0x000a339c
audio config: on
3D config: off
------------ /sys/devices/virtual/amhdmitx/amhdmitx0/dc_cap ------------
420,10bit
420,8bit
444,10bit
444,8bit
422,10bit
422,8bit
rgb,10bit
rgb,8bit
------------ /sys/devices/virtual/amhdmitx/amhdmitx0/attr ------------

------------ /sys/devices/virtual/amhdmitx/amhdmitx0/disp_cap ------------
480p60hz
576p50hz
720p60hz
1080i60hz
1080p60hz
720p50hz
1080i50hz
1080p30hz
1080p50hz
1080p25hz
1080p24hz
2160p30hz
2160p25hz
2160p24hz
smpte24hz
smpte25hz
smpte30hz
smpte50hz
smpte60hz
smpte50hz420
smpte60hz420
2160p50hz
2160p60hz
2160p50hz420
2160p60hz420
------------ /sys/devices/virtual/amhdmitx/amhdmitx0/preferred_mode ------------
2160p60hz
------------ /sys/devices/virtual/amhdmitx/amhdmitx0/hdr_cap ------------
Supported EOTF:
Traditional SDR: 1
Traditional HDR: 0
SMPTE ST 2084: 1
Future EOTF: 0
Supported SMD type1: 1
Luminance Data
Max: 0
Avg: 0
Min: 0
------------ /sys/class/display/vinfo ------------
current vinfo:
name: 2160p60hz
mode: 32
width: 3840
height: 2160
field_height: 2160
aspect_ratio_num: 16
aspect_ratio_den: 9
sync_duration_num: 2997
sync_duration_den: 50
screen_real_width: 1330
screen_real_height: 750
video_clk: 594000000
viu_color_fmt: 2

hdr info:
hdr_support 0x00000005
lumi_max 0
lumi_avg 0
lumi_min 0
sink_flag hdmi out

hdr master display info:
present_flag 0
features 0x0
primaries 0x0, 0x0
0x0, 0x0
0x0, 0x0
white_point 0x0, 0x0
luminance 0, 0

------------ /storage/.kodi/userdata/disp_cap ------------ Unset by user!
------------ /storage/.config/autostart.sh ------------ Unset by user!


Black screen while changing TV channel in 4K mode
#2

Try to change your GUI resolution to 1080p and try all clips again.


#3

The resolution is 1080p. The code above is from during playback. Here is info before playback:

CoreELEC:~/downloads # bash dispinfo2.sh
CoreELEC display information…
------------ /etc/os-release ------------
NAME=“CoreELEC”
VERSION=“9.0-nightly_20190203”
ID=“coreelec”
VERSION_ID=“9.0”
PRETTY_NAME=“CoreELEC (official): 9.0-nightly_20190203”
HOME_URL=“https://coreelec.org
BUG_REPORT_URL=“https://github.com/CoreELEC/CoreELEC
BUILD_ID=“954202406ee16901dc374f2e50a54b303ec43eeb”
COREELEC_ARCH=“S905.arm”
COREELEC_BUILD=“official”
COREELEC_PROJECT=“Amlogic”
BUILDER_NAME=“relkai”
BUILDER_VERSION=“9.0-nightly_20190203”
------------ /sys/devices/virtual/amhdmitx/amhdmitx0/edid ------------
Rx Brand Name: ONK
Rx Product Name: TX-NR747
Manufacture Week: 0
Manufacture Year: 2015
Physical size(cm): 133 x 75
EDID Version: 1.3
EDID block number: 0x1
blk0 chksum: 0xd1
Source Physical Address[a.b.c.d]: 4.1.0.0
YCC support 0x03, VIC (native 255):
ColorDeepSupport 0xb8 10/12/16/Y444 1/1/0/1
97 16 31 4 19 5 20 32 33 34 93 94 95 96 101 102 98 99 100 3 18 95 94 93 98 353 352 357 358
Audio {format, channel, freq, cce}
{1, 1, 0x7f, 0x07}
{1, 7, 0x7f, 0x07}
{2, 7, 0x07, 0x00}
{7, 7, 0x06, 0x00}
{9, 1, 0x02, 0x00}
{10, 7, 0x06, 0x01}
{11, 7, 0x7e, 0x03}
{11, 7, 0x7e, 0x01}
{12, 7, 0x7f, 0x01}
Speaker Allocation: 0x4f
Vendor: 0xc03
MaxTMDSClock1 300 MHz
Vendor2: 0xc45dd8
MaxTMDSClock2 600 MHz
ColorMetry: 0xc3
SCDC: 1
RR_Cap: 0
LTE_340M_Scramble: 0
HDR DeepColor
checkvalue: 0xd1150000
------------ /sys/devices/virtual/amhdmitx/amhdmitx0/edid_parsing ------------
ok
------------ /sys/devices/virtual/amhdmitx/amhdmitx0/rawedid ------------
00ffffffffffff003dcb710f000000000019010380854b780a23ada4544d99260f474a2dcf00010181c08100818095000101b300010108e80030f2705a80b0588a00501d7400001e023a801871382d40582c4500501d7400001e000000fc0054582d4e523734370a20202020000000fd00184b0f873c000a20202020202001d1020360f05561101f041305142021225d5e5f60656662636403123b097f070f7f071707503f06c04902005706015f7e035f7e01677f01834f00006e030c004100b83c2000800102030467d85dc401788003e305c301e2000fe30f01e0e3060501011d80d0721c1620102c2580501d7400009e0000000000000000000000000015
------------ /sys/devices/virtual/amhdmitx/amhdmitx0/config ------------
cur_VIC: 16
VIC: 16 1920x1080p60hz
Colour depth: 8-bit
Colourspace: YUV444
Colour range: limited
EOTF: SDR
YCC colour range: limited
PLL clock: 0xc000027b, Vid clock div 0x000a339c
audio config: on
3D config: off
------------ /sys/devices/virtual/amhdmitx/amhdmitx0/dc_cap ------------
420,10bit
420,8bit
444,10bit
444,8bit
422,10bit
422,8bit
rgb,10bit
rgb,8bit
------------ /sys/devices/virtual/amhdmitx/amhdmitx0/attr ------------

------------ /sys/devices/virtual/amhdmitx/amhdmitx0/disp_cap ------------
480p60hz
576p50hz
720p60hz
1080i60hz
1080p60hz
720p50hz
1080i50hz
1080p30hz
1080p50hz
1080p25hz
1080p24hz
2160p30hz
2160p25hz
2160p24hz
smpte24hz
smpte25hz
smpte30hz
smpte50hz
smpte60hz
smpte50hz420
smpte60hz420
2160p50hz
2160p60hz
2160p50hz420
2160p60hz420
------------ /sys/devices/virtual/amhdmitx/amhdmitx0/preferred_mode ------------
2160p60hz
------------ /sys/devices/virtual/amhdmitx/amhdmitx0/hdr_cap ------------
Supported EOTF:
Traditional SDR: 1
Traditional HDR: 0
SMPTE ST 2084: 1
Future EOTF: 0
Supported SMD type1: 1
Luminance Data
Max: 0
Avg: 0
Min: 0
------------ /sys/class/display/vinfo ------------
current vinfo:
name: 1080p60hz
mode: 16
width: 1920
height: 1080
field_height: 1080
aspect_ratio_num: 16
aspect_ratio_den: 9
sync_duration_num: 60
sync_duration_den: 1
screen_real_width: 1330
screen_real_height: 750
video_clk: 148500000
viu_color_fmt: 2

hdr info:
hdr_support 0x00000005
lumi_max 0
lumi_avg 0
lumi_min 0
sink_flag hdmi out

hdr master display info:
present_flag 0
features 0x0
primaries 0x0, 0x0
0x0, 0x0
0x0, 0x0
white_point 0x0, 0x0
luminance 0, 0

------------ /storage/.kodi/userdata/disp_cap ------------ Unset by user!
------------ /storage/.config/autostart.sh ------------ Unset by user!


#4

I’ve not selected any options in the whitelist.

Build: 9.0-nightly_20190203

My receiver is showing:

All 25 fps ++ content is showing 8-bit
HDMI 1
4K(3840x2160) 59Hz
YCbCr422 24bit

All 24 < fps clips show the following, which is correct
HDMI 1
4K(3840x2160) 23Hz
YCbCr444 30bit

8.99.2 (S905.arm)

My receiver is showing:

All 25 fps ++ content is showing 8-bit
HDMI 1
4K(3840x2160) 59Hz
YCbCr422 24bit

All 24 < fps clips show the following
HDMI 1
4K(3840x2160) 23Hz
YCbCr422 24bit

LG Colours of Journey HDR UHD 4K Demo (2015) 53mbit 60fps
HDMI 1
4K(3840x2160) 60Hz
YCbCr420 30bit

The odd thing is that some clips work, and some don’t. All the remuxes I’ve tried is not working, yet I’ve had some luck with some of the demo clips


CoreELEC 8.99.2
#5

From your receiver description you need to be connected in port 1 or 3 and use only 24/25/30Hz Frame rate for 2160p resolution for 422 or 444 output


#6

I know. I’m using port 1 which have showed 10-bit for all my clips before the latest update. I tried port 4 or something earlier to test and it only showed 8-bit, so the setup should be correct.

Update: I think I found the problem:
The remark is: “With YCbCr4:2:2, Color Depth supported is 12 bit only.” So 4:2:2 seems to be a problem for my receiver and probably others


#7

Mu suggestion is either to modify the HDMI driver to use 4:2:0 which is standard for movies, tv and sport content or setup a toggle to choose between etc. 4:2:0 or 4:2:2 in the settings. There are no benefits of using 4:2:2 for normal UHD content and 4:4:4 is a problem with 50+ fps content, so why the standard option is not 4:2:0 is for me incomprehensible.

However, I have to add that the work you guys have been doing for almost a year now is remarkable! It’s inspiring for studentens like me who study computer science to be part of something similar in the future :slight_smile:


#8

We know a reason now, so we will try to fix it. :grinning:


#9

Great! In the meantime, could you please send me a PM with a link of an earlier build (before 8.99.2) as I can’t play UHD content with 10-bit for the time being?

Thanks in advance!


#10

I think you can try 20190203 nightly build or day before if you don’t use media_build dvb drivers https://relkai.coreelec.org/


#11

Thanks!

I suspect I can force playing content with 4:4:4 and 10bit with the following command while using the latest version, so take your time to find a solution that works for everybody.
echo "444,10bit">/sys/class/amhdmitx/amhdmitx0/attr


#12

Try the following build here (S905 only).


#13

@adamg, that build is working perfectly! The build is using 4:4:4 for all < 50 fps clips and 4:2:0 for all > 50 fps clips :slight_smile: I’ve tested several of the clips and none of them showed 8bit result.

------------ /etc/os-release ------------
NAME=“CoreELEC”
VERSION=“devel-1549511200”
ID=“coreelec”
VERSION_ID=“9.0”
PRETTY_NAME=“CoreELEC (official): devel-1549511200”
HOME_URL=“https://coreelec.org
BUG_REPORT_URL=“https://github.com/CoreELEC/CoreELEC
BUILD_ID=“71a613541a86ca94d3c65e17d07b4b9fc1b25eac”
COREELEC_ARCH=“S905.arm”
COREELEC_BUILD=“official”
COREELEC_PROJECT=“Amlogic”
COREELEC_DEVICE=“S905”

Before playback:

------------ /sys/devices/virtual/amhdmitx/amhdmitx0/config ------------
cur_VIC: 16
VIC: 16 1920x1080p60hz
Colour depth: 10-bit
Colourspace: YUV444
Colour range: limited
EOTF: SDR
YCC colour range: limited
PLL clock: 0xc000029a, Vid clock div 0x000b0000
audio config: on
3D config: off

During playback

------------ /sys/devices/virtual/amhdmitx/amhdmitx0/config ------------
cur_VIC: 93
VIC: 93 3840x2160p24hz
Colour depth: 10-bit
Colourspace: YUV444
Colour range: limited
EOTF: HDR10
YCC colour range: limited
PLL clock: 0xc000029a, Vid clock div 0x000b0000
audio config: on
3D config: off

Receiver is showing the following before playback:

HDMI 1
1920 x 1080p 60 Hz
YCbCr444 30bit

Receiver is showing the following for all 23 fps HDR and SDR (10bit x265) clips (tested 8 different - remuxes, encodings and demo clips):

HDMI 1
4K(3840x2160) 23 Hz
YCbCr444 30bit

Receiver is showing the following for all 59 fps clips (tested 5 different):

HDMI 1
4K(3840x2160) 59 Hz
YCbCr420 30bit

I could test even more clips, yet the problem seem to be solved.
The clips used for 60 fps are the following:

LG Chess HDR (2018)
Sony BRAVIA OLED HDR
Sony Food Fizzle (2018)
Sony 4K HDR Camp
Samsung Chasing the Light


#14

Could you try some 25hz and 30hz clips?


#15

Sure, I’ll try 25 Hz, 30 Hz and 50 Hz clips when I get home from the lab (say 2-3 hours). Please let me know if there are any specific clips you want me to try or you want further information as mediainfo etc :+1: The clips I’m currently testing are from 4K Media (10bit, both BT.709 and BT.2020)


#16

@cdu13a, here are the results from the tests. As you can see all of the 10 clips played in 10bit :slight_smile: The 25 fps clips played at 50 Hz and the 30 fps clips played at 60 Hz. No stuttering or any playback issues.

CoreELEC (official): devel-1549511200
COREELEC_DEVICE=“S905”

Before playback:

1920x1080p60hz, 10-bit, YUV444, SDR


25 Hz (mediainfo says all three clips are 25fps)
0. Astra DVB Sample (2160p 420 10bit (BT.709) 25fps 19mbit)

Kodi: 3840x2160p50hz 10-bit YUV420 SDR
Receiver: HDMI 1 4K(3840x2160) 50 Hz YCbCr420 30bit

  1. Samsung Fashion Show Milan 4K Demo (2160p 420 10bit (BT.709) 25fps 61mbit)

Kodi: 3840x2160p50hz 10-bit YUV420 SDR
Receiver: HDMI 1 4K(3840x2160) 50 Hz YCbCr420 30bit

  1. LG New York HDR UHD 4K Demo (2160p 420 10bit (BT.2020) 25fps 51mb)

Kodi: 3840x2160p50hz 10-bit YUV420 HDR10
Receiver: HDMI 1 4K(3840x2160) 50 Hz YCbCr420 30bit


30 Hz (mediainfo says all four clips are 30fps)

  1. Samsung The Quiet Czech 4K Demo (2160p 420 10bit (BR.709) 30fps 51mbit)

Kodi: 3840x2160p60hz 10-bit YUV420 SDR
Receiver: HDMI 1 4K(3840x2160) 60 Hz YCbCr420 30bit

  1. Samsung Dive To The New World 2160p Demo (2160p 420 10bit (BT.709) 30fps 51mb)

Kodi: 3840x2160p60hz 10-bit YUV420 SDR
Receiver: HDMI 1 4K(3840x2160) 59 Hz YCbCr420 30bit

  1. Samsung Iceland 4K Demo (2160p 420 10bit (BT.709) 30fps 51mbit)

Kodi: 3840x2160p60hz 10-bit YUV420 SDR
Receiver: HDMI 1 4K(3840x2160) 59 Hz YCbCr420 30bit

  1. Samsung HDR Picture Quality 4K Demo (2160p 420 10bit (BT.2020) 30fps 50mbit)

Kodi: 3840x2160p60hz 10-bit YUV420 HDR
Receiver: HDMI 1 4K(3840x2160) 59 Hz YCbCr420 30bit


50 Hz

  1. Astra SES UHD 4K Demo (2160p 420 10bit (BT.709) 50fps 24mbit)

Kodi: 3840x2160p50hz 10-bit YUV420 SDR
Receiver: HDMI 1 4K(3840x2160) 50 Hz YCbCr420 30bit

  1. LG La Boheme 4K Demo (2160p 420 10bit (BT.709) 50fps 62mbit)

Kodi: 3840x2160p50hz 10-bit YUV420 SDR
Receiver: HDMI 1 4K(3840x2160) 50 Hz YCbCr420 30bit

  1. TravelXP 4K HDR HLG Demo (2160p 420 10bit (BT.2020 HLG) 50fps 20mbit)

Kodi: 3840x2160p50hz 10-bit YUV420 SDR
Receiver: HDMI 1 4K(3840x2160) 50 Hz YCbCr420 30bit

Regarding clip 9, I suspect HLG is not supported as Kodi says EOTF is SDR which didn’t trigger the HDR logo on my TV.


#17

Don’t want to hijack the thread but just thought I would mention that this test build fixes a problem I was having on the last released version.

The Chess HDR video (and some other content) would black screen unless I unselected 3840x2160 @ 59.97 hz from the white list. At which point it would play, but only in the resolution I had set for the UI and without HDR.

Plays fine in this version. Incidentally I don’t need to change resolution (have a different UI resolution) for HDR to work.


#18

No worries, the thread is related to the HDMI driver and which colourspace to use regarding the latest version (8.99.2). So, it’s great to hear that the dev version is fixing other problems related to the topic! :slight_smile: Just to be clear, you should disable all whitelist options (not select any of them) and run the gui at 1920x1080p60hz (if you don’t already do).

Hopefully this version doesn’t result in new problems for other users etc, but we’ll have to wait and see


#19

Thanks.

The only issue with running the GUI at 1920x1080p60hz is that 1080p content is then played at 1920x1080. Kodi doesn’t change to a 4K resolution. I prefer the box to upscale rather than the TV. Doesn’t make a difference what whitelist resolutions are selected, or if none at all are selected.


#20

Black screen as in the screen would go completely black or you’d get drop outs?
If you had drop outs, it’s a problem with your HDMI cable, most likely.