Need testers for S912/S905W green/red lines issue

I use an Tvheadend server with DVB-C hardware to watch 1080i50 streams from my cable provider.

@Jeroen, test version for S905W:
https://test.coreelec.org/boot2k3/S905/CoreELEC-Amlogic.arm-9.0-devel-1557940097.tar
Untested, but should work

@boot2k3 I just tried your build on my S905W box, but unfortunately I still get the green/red lines (or artifacts) when deinterlace is enabled.

Does it help if I provide an sample of the content where this problem occurs? I also noticed that I do not experience this problem on all my DVB-C channels, but still they all look like similar H264 1080i50 streams (maybe some small differences in bitrate or something else?)

Some channels start with the green/red lines right away, and on other channels they ‘popup’ after ~10 sec. watching. And as I already mentioned some channels are just fine with deinterlace enabled, no weird green/red lines are visible.

Thanks for investigating this issue! :slight_smile:

Thanks for the suggestions - got my remote working (had an old remote.conf still in existence that I think was causing problems). I didn’t get a chance to test the deinterlacing yet (travelling for work) - will do so over the weekend though. FYI, I’ve noticed there aren’t any deinterlacing issues on the M8S Pro L when playing back from the tvheadend server on my other Kodi (Libreelec) box - the red lines only ever appeared when also running the tvheadend server locally on the M8s Pro L box itself.

OK, waiting for your results.
This lines usually appear for 1080i50 content. And more easy to repeat them when box is busy with something more like tvh server or file transfer process

@Jeroen, new test version for S905W(can be used for S912 too).
https://test.coreelec.org/boot2k3/S905W_912/CoreELEC-Amlogic.arm-9.0-devel-1557994086.tar

@boot2k3 It looks like your fix works! I don’t have any green/red lines on 1080i50 content right now. I will try to test some more tomorrow, but it looks good! :smile:
Thanks!

2 Likes

@boot2k3 applied onto one of my boxes yesterday morning and so far with testing watching Live TV and Recordings in TVHeadend everything is working fine, so hopefully your fix has done the trick!

I will continue to test over the weekend, as this occurred very randomly for me previously, but I would have expected to have seen this by now.

1 Like

Still looking good after a weekend of testing :slight_smile:

Thank you for testing.
This change is included in today nightly build.

1 Like

Hello,
I installed the last nightly because of the changes to the deinterlacing problem for the S905w boxes.
I have an X96 mini, i tried to watch iptv over the iptv simple client in 1080i 50fps.
There are no more red or green lines but the video starts to flicker ~ every 2s.
After 1 min video stops sound is on repeat from the last 0.5s and the box doesnt respond any more.
I attached the kodi log.
If can provide more informations if u need it.

Log:

2019-05-23 15:43:57.053 T:4086669328  NOTICE: VideoPlayer::OpenFile: pvr://channels/tv/Alle Kanäle/pvr.iptvsimple_974123572.pvr
2019-05-23 15:43:57.057 T:3651285872  NOTICE: Creating InputStream
2019-05-23 15:43:57.495 T:3651285872  NOTICE: Creating Demuxer
2019-05-23 15:43:59.012 T:3651285872  NOTICE: Opening stream: 0 source: 256
2019-05-23 15:43:59.013 T:3651285872 WARNING: OpenStream - Unsupported stream 0. Stream disabled.
2019-05-23 15:43:59.013 T:3651285872  NOTICE: Opening stream: 1 source: 256
2019-05-23 15:43:59.013 T:3651285872  NOTICE: Finding audio codec for: 86019
2019-05-23 15:43:59.014 T:3651285872  NOTICE: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder ac3
2019-05-23 15:43:59.014 T:3651285872  NOTICE: Creating audio thread
2019-05-23 15:43:59.015 T:3608490864  NOTICE: running thread: CVideoPlayerAudio::Process()
2019-05-23 15:43:59.017 T:3651285872  NOTICE: Opening stream: 0 source: 256
2019-05-23 15:43:59.017 T:3651285872  NOTICE: CVideoPlayerVideo::OpenStream - Creating codec: 27
2019-05-23 15:43:59.026 T:3651285872  NOTICE: Creating video thread
2019-05-23 15:43:59.026 T:3600098160  NOTICE: running thread: video_thread
2019-05-23 15:43:59.062 T:3651285872  NOTICE: Opening stream: 1 source: 256
2019-05-23 15:43:59.069 T:3608490864  NOTICE: Creating audio stream (codec id: 86019, channels: 2, sample rate: 48000, no pass-through)
2019-05-23 15:43:59.361 T:3600098160  NOTICE: CAMLCodec::OpenDecoder - using V4L2 pts format: 64Bit
2019-05-23 15:44:00.051 T:4086669328  NOTICE: Whitelist search for: width: 1920, height: 1080, fps: 50.000, 3D: false
2019-05-23 15:44:00.052 T:4086669328  NOTICE: Display resolution ADJUST : 1920x1080 @ 50.00 - Full Screen (29) (weight: 0.000)
2019-05-23 15:44:00.053 T:4086669328  NOTICE: VideoPlayer: OnLostDisplay received
2019-05-23 15:44:00.275 T:4086669328  NOTICE: VideoPlayer: OnResetDisplay received
2019-05-23 15:44:00.516 T:3600098160 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer

Please check with 9.0.2 release if you have this issue too or not with same settings.
So you could see this red lines and check if it cause same flickering/stop or not.
If the same, than it could be different issue with DI for S905W and you still need to use disable deinterlace. If no such issue than collect full logs(dmesg and kodi) for both 9.0.2 and nightly to compare. Don’t choose “disable deinterlace” in both cases.

Thanks for your fast reply :wink:
With every release before 9.2 i had to disable deinterlace because i had the problem with the green/red lines.
With version 9.2 i have the same problem with the flickering/stop.
Now i am at the latest nightly and its the same like 9.2.
I build a cooling solution for my box so it is not overheating.
What i tried:
overclock gpu
change cpu govenor
tried different settings in kodi player settings

coreelec version: nightly_20190522

dmesg:
https://pastebin.com/QyFUibty
kodi log:
https://pastebin.com/zEGwuNMu

If you need more i can provide it.

Please execute command dispinfo while watching iptv and send me a link
Try to set default refresh rate to 50Hz to minimize screen switching for IPTV
And in PVR/TV settings ->Playback->Fallback Framerate choose 50Hz if most of you IPTV is 50 Hz

I set your settings.

Dispinfo:

CoreELEC Display Information...

------------ /etc/os-release ------------
NAME="CoreELEC"
VERSION="nightly_20190522"
ID="coreelec"
VERSION_ID="9.0"
PRETTY_NAME="CoreELEC (official): nightly_20190522"
HOME_URL="https://coreelec.org"
BUG_REPORT_URL="https://github.com/CoreELEC/CoreELEC"
BUILD_ID="63dc9278ed5877934cf741b5763d003735380357"
COREELEC_ARCH="Amlogic.arm"
COREELEC_BUILD="official"
COREELEC_PROJECT="Amlogic"
BUILDER_NAME="relkai"
BUILDER_VERSION="nightly_20190522"
------------ /proc/device-tree/coreelec-dt-id ------------ Missing!
------------ /proc/device-tree/le-dt-id ------------
gxl_p281_2g
------------ /proc/cmdline ------------
rootfstype=ramfs init=/init console=ttyS0,115200 no_console_suspend earlyprintk=aml-uart,0xc81004c0 ramoops.pstore_en=1 ramoops.record_size=0x8000 ramoops.console_size=0x4000 androidboot.selinux=permissive logo=osd1,loaded,0x3d800000,1080p60hz maxcpus=4 vout=1080p60hz,enable hdmimode=1080p60hz cvbsmode=576cvbs hdmitx= cvbsdrv=0 androidboot.firstboot=0 jtag=apao androidboot.ddrclk=666MHz androidboot.hardware=amlogic mac=90:0e:b3:04:1b:5d androidboot.mac=90:0e:b3:04:1b:5d androidboot.slot_suffix=_a bootfromsd console=tty0 systemd.show_status=auto BOOT_IMAGE=kernel.img boot=LABEL=COREELEC disk=LABEL=STORAGE
------------ /sys/devices/virtual/amhdmitx/amhdmitx0/edid ------------
Rx Brand Name: SAM
Rx Product Name: SAMSUNG
Manufacture Week: 46
Manufacture Year: 2012
Physical size(cm): 89 x 50
EDID Version: 1.3
EDID block number: 0x1
blk0 chksum: 0x67
Source Physical Address[a.b.c.d]: 1.0.0.0
YCC support 0x03, VIC (native 16):
ColorDeepSupport 0xb8 10/12/16/Y444 1/1/0/1
16 31 4 19 5 20 3 18 32 33 34 7 22 
Audio {format, channel, freq, cce}
{1, 1, 0x07, 0x07}
Speaker Allocation: 0x01
Vendor: 0x000c03
MaxTMDSClock1 225 MHz
SCDC: 0
RR_Cap: 0
LTE_340M_Scramble: 0
  DeepColor
checkvalue: 0x671e0000
------------ /sys/devices/virtual/amhdmitx/amhdmitx0/edid_parsing ------------
ok
------------ /sys/devices/virtual/amhdmitx/amhdmitx0/rawedid ------------
00ffffffffffff004c2d7d0a010000002e160103805932780aee91a3544c99260f5054bdef80714f81c0810081809500a9c0b3000101023a801871382d40582c450024724200001e662156aa51001e30468f330024724200001e000000fd00184b0f5117000a202020202020000000fc0053414d53554e470a20202020200167020330f14d901f04130514031220212207162309070783010000e2000f72030c001000b82d21d0080140073f405090a0011d80d0721c1620102c258024724200009e011d8018711c1620582c250024724200009e011d00bc52d01e20b828554024724200001e011d007251d01e206e28550024724200001e000000000000001e
------------ /sys/devices/virtual/amhdmitx/amhdmitx0/config ------------
cur_VIC: 31
VIC: 31 1920x1080p50hz
Colour depth: 10-bit
Colourspace: YUV444
Colour range: limited
EOTF: SDR
YCC colour range: limited
Colourimetry: BT.709
PLL clock: 0xc000029a, Vid clock div 0x000b0000
audio config: on
3D config: off
------------ /sys/devices/virtual/amhdmitx/amhdmitx0/dc_cap ------------
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
------------ /sys/devices/virtual/amhdmitx/amhdmitx0/preferred_mode ------------
1080p60hz
------------ /sys/devices/virtual/amhdmitx/amhdmitx0/hdr_cap ------------
Supported EOTF:
    Traditional SDR: 0
    Traditional HDR: 0
    SMPTE ST 2084: 0
    Future EOTF: 0
Supported SMD type1: 0
Luminance Data
    Max: 0
    Avg: 0
    Min: 0
------------ /sys/module/am_vecm/parameters/hdr_mode ------------
2
------------ /sys/module/am_vecm/parameters/sdr_mode ------------
0
------------ /sys/class/display/vinfo ------------
current vinfo:
    name:                  1080p50hz
    mode:                  18
    width:                 1920
    height:                1080
    field_height:          1080
    aspect_ratio_num:      16
    aspect_ratio_den:      9
    sync_duration_num:     50
    sync_duration_den:     1
    screen_real_width:     890
    screen_real_height:    500
    video_clk:             148500000
    viu_color_fmt:         2

hdr info:
    hdr_support           0x00000000
    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

------------ kodi display settings ------------
coreelec.amlogic.limit8bit: false
coreelec.amlogic.force422: false
coreelec.amlogic.deinterlacing: false
coreelec.amlogic.noisereduction: false
coreelec.amlogic.hdr2sdr: 
coreelec.amlogic.sdr2hdr: 
videoplayer.adjustrefreshrate: 2
videoplayer.useamcodec: true
videoplayer.useamcodech264: 0
videoplayer.useamcodecmpeg2: 0
videoplayer.useamcodecmpeg4: 800
videoplayer.usedisplayasclock: false
videoscreen.whitelist: 
lookandfeel.skin: skin.estuary
------------ /storage/.kodi/userdata/disp_cap ------------ Unset by user!
------------ /flash/boot.ini ------------ Missing!
------------ /flash/config.ini ------------ Missing!
------------ /storage/.config/autostart.sh ------------
#!/bin/bash
(
sleep 10;
mount -t cifs //192.168.0.106/share /storage/share/ -o user=pi
wget --no-check-certificate 'https://docs.google.com/xxx' -O /storage/xxx
wget --no-check-certificate 'https://docs.google.com/xxx' -O /storage/xxx 
) &

hm…

Colour depth: 10-bit

looks like it plays iptv in 10bit
Try to select force 8 bit in coreelec setting, reboot and check if it plays normal or not…
also send me please dispinfo again after this actions while watching tv

changed setting for 8 bit , nothing changed flickering is there.
new dispinfo
CoreELEC Display Information…

------------ /etc/os-release ------------
NAME="CoreELEC"
VERSION="nightly_20190522"
ID="coreelec"
VERSION_ID="9.0"
PRETTY_NAME="CoreELEC (official): nightly_20190522"
HOME_URL="https://coreelec.org"
BUG_REPORT_URL="https://github.com/CoreELEC/CoreELEC"
BUILD_ID="63dc9278ed5877934cf741b5763d003735380357"
COREELEC_ARCH="Amlogic.arm"
COREELEC_BUILD="official"
COREELEC_PROJECT="Amlogic"
BUILDER_NAME="relkai"
BUILDER_VERSION="nightly_20190522"
------------ /proc/device-tree/coreelec-dt-id ------------ Missing!
------------ /proc/device-tree/le-dt-id ------------
gxl_p281_2g
------------ /proc/cmdline ------------
rootfstype=ramfs init=/init console=ttyS0,115200 no_console_suspend earlyprintk=aml-uart,0xc81004c0 ramoops.pstore_en=1 ramoops.record_size=0x8000 ramoops.console_size=0x4000 androidboot.selinux=permissive logo=osd1,loaded,0x3d800000,1080p60hz maxcpus=4 vout=1080p60hz,enable hdmimode=1080p60hz cvbsmode=576cvbs hdmitx= cvbsdrv=0 androidboot.firstboot=0 jtag=apao androidboot.ddrclk=666MHz androidboot.hardware=amlogic mac=90:0e:b3:04:1b:5d androidboot.mac=90:0e:b3:04:1b:5d androidboot.slot_suffix=_a bootfromsd console=tty0 systemd.show_status=auto BOOT_IMAGE=kernel.img boot=LABEL=COREELEC disk=LABEL=STORAGE
------------ /sys/devices/virtual/amhdmitx/amhdmitx0/edid ------------
Rx Brand Name: SAM
Rx Product Name: SAMSUNG
Manufacture Week: 46
Manufacture Year: 2012
Physical size(cm): 89 x 50
EDID Version: 1.3
EDID block number: 0x1
blk0 chksum: 0x67
Source Physical Address[a.b.c.d]: 1.0.0.0
YCC support 0x03, VIC (native 16):
ColorDeepSupport 0xb8 10/12/16/Y444 1/1/0/1
16 31 4 19 5 20 3 18 32 33 34 7 22 
Audio {format, channel, freq, cce}
{1, 1, 0x07, 0x07}
Speaker Allocation: 0x01
Vendor: 0x000c03
MaxTMDSClock1 225 MHz
SCDC: 0
RR_Cap: 0
LTE_340M_Scramble: 0
  DeepColor
checkvalue: 0x671e0000
------------ /sys/devices/virtual/amhdmitx/amhdmitx0/edid_parsing ------------
ok
------------ /sys/devices/virtual/amhdmitx/amhdmitx0/rawedid ------------
00ffffffffffff004c2d7d0a010000002e160103805932780aee91a3544c99260f5054bdef80714f81c0810081809500a9c0b3000101023a801871382d40582c450024724200001e662156aa51001e30468f330024724200001e000000fd00184b0f5117000a202020202020000000fc0053414d53554e470a20202020200167020330f14d901f04130514031220212207162309070783010000e2000f72030c001000b82d21d0080140073f405090a0011d80d0721c1620102c258024724200009e011d8018711c1620582c250024724200009e011d00bc52d01e20b828554024724200001e011d007251d01e206e28550024724200001e000000000000001e
------------ /sys/devices/virtual/amhdmitx/amhdmitx0/config ------------
cur_VIC: 31
VIC: 31 1920x1080p50hz
Colour depth: 8-bit
Colourspace: YUV444
Colour range: limited
EOTF: SDR
YCC colour range: limited
Colourimetry: BT.709
PLL clock: 0xc000027b, Vid clock div 0x000a339c
audio config: on
3D config: off
------------ /sys/devices/virtual/amhdmitx/amhdmitx0/dc_cap ------------
444,10bit
444,8bit
422,10bit
422,8bit
rgb,10bit
rgb,8bit
------------ /sys/devices/virtual/amhdmitx/amhdmitx0/attr ------------
8bit

------------ /sys/devices/virtual/amhdmitx/amhdmitx0/disp_cap ------------
480p60hz
576p50hz
720p60hz
1080i60hz
1080p60hz*
720p50hz
1080i50hz
1080p30hz
1080p50hz
1080p25hz
1080p24hz
------------ /sys/devices/virtual/amhdmitx/amhdmitx0/preferred_mode ------------
1080p60hz
------------ /sys/devices/virtual/amhdmitx/amhdmitx0/hdr_cap ------------
Supported EOTF:
    Traditional SDR: 0
    Traditional HDR: 0
    SMPTE ST 2084: 0
    Future EOTF: 0
Supported SMD type1: 0
Luminance Data
    Max: 0
    Avg: 0
    Min: 0
------------ /sys/module/am_vecm/parameters/hdr_mode ------------
2
------------ /sys/module/am_vecm/parameters/sdr_mode ------------
0
------------ /sys/class/display/vinfo ------------
current vinfo:
    name:                  1080p50hz
    mode:                  18
    width:                 1920
    height:                1080
    field_height:          1080
    aspect_ratio_num:      16
    aspect_ratio_den:      9
    sync_duration_num:     50
    sync_duration_den:     1
    screen_real_width:     890
    screen_real_height:    500
    video_clk:             148500000
    viu_color_fmt:         2

hdr info:
    hdr_support           0x00000000
    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

------------ kodi display settings ------------
coreelec.amlogic.limit8bit: true
coreelec.amlogic.force422: false
coreelec.amlogic.deinterlacing: false
coreelec.amlogic.noisereduction: false
coreelec.amlogic.hdr2sdr: 
coreelec.amlogic.sdr2hdr: 
videoplayer.adjustrefreshrate: 2
videoplayer.useamcodec: true
videoplayer.useamcodech264: 0
videoplayer.useamcodecmpeg2: 0
videoplayer.useamcodecmpeg4: 800
videoplayer.usedisplayasclock: false
videoscreen.whitelist: 
lookandfeel.skin: skin.estuary
------------ /storage/.kodi/userdata/disp_cap ------------ Unset by user!
------------ /flash/boot.ini ------------ Missing!
------------ /flash/config.ini ------------ Missing!
------------ /storage/.config/autostart.sh ------------
#!/bin/bash
(
sleep 10;

In that case for now I don’t know how it can be fixed. Something is wrong with DI in S905W.
Several users on new 4.9 code have also ‘pre_de_irq’ issues sometimes.
So only solution now for this issue is “disable deinterlace” feature.
As it will be fixed in 4.9 than it possible can be include in 3.14 code

Thank you for your time and effort!
I will look at it again when the new kernel is out.
Have a nice day

You welcome
I sent 2 more commands for test in PM.