Amlogic-NO discussion

Suspend isn’t really supported by Linux. Use power off, this works.

Ive found a lot of issues don’t happen if you do not turn box off at all.
I leave mine on as recommended a few times from posters.

Thanks, First_8K_Video_from_Space_-_Ultra_HD_VP9.webm this video works with today’s update, but there is buffering at first and then it is fixed.

On am6plus is working play video after wakeup from suspend. Only i saw stuttering due to 100% working of cpu. This stuttering/100% using of cpu is out after cca 2 minutes of playing video after wakeup from suspend. I have also a issue of not working of my cec tv remote on CE22NO.

https://paste.coreelec.org/RefuelSettled

In comparing of logs i identified only changing of order of lines in dmesg and changing of number behind of stream input: from 13 to 11 (self repairing of counting in system during many testing ?). But maybe it means nothing (decoders of stream input are only 11 also in case of number 13).

After many my testing now know, that issue of not working of my cec tv remote is after changing of source from kodi to tv and back to kodi. So is not depend on suspending/wakeup = 2 different problem: of cec and of stuttering after wakeup for 100% using of cpu (on CE21NG is not this issue on same device).

/dev/amvideocap0 is broken for h264 video in CoreELEC-no, which mean Hyperion-ng no longer works.

Any chance of looking into it please.

Just switched off using h264, did not spot any issues.
Is it only the live preview or the LEDs to?

Not sure what you mean by switched of using h264?

Both, the issue is also present when taking a screenshot in Kodi with a h264 video playing.

Kodi-send --action=screenshot

off: switching off TV :grin:


No issues here on S5 S928X, h264 HW decoder.

The issue happens on my Dune/Homatics Box R 4K Plus S905X4 box. H264 gives a corrupt screen grab but H265 works fine.

Hi, so on my s905x3 box i have problem that my box freezes and i can only get it back to life by disconnecting power, and plug it back on. So today i desided to make new SDcard and try to capture this with logs, but NOW in same conditions kodi just crash and restar itself, so no loger freeze itself, this only happening on directory with files that have dolby vision 4k files

https://paste.kodi.tv/naquqojemu.kodi

After a more detailed check, kodi crash in all folders that have multiple files that contain 4k files, regardled if files are dv or not, its not matter.

This only happening if files dont have thumbnails (preview), if image is generated then all is ok.

Just tested on my X96 X10 S928X and both h264 and h265 capture ok

So capture wise:-
S905X4 - H264 = corrupt, H265 = ok
S928X - H264 = ok, H265 = ok

Would it be possible to get H264 to capture correctly on the S905X4 box.

Dolby vision is not triggering on my TV when using the TV led mode, player led does trigger it but it is pink and green. I am running latest nightly no branch.

cat /sys/class/amhdmitx/amhdmitx0/dv_cap
DolbyVision RX support list:
VSVDB Version: V2
2160p60hz: 1
Parity: 0
Support mode:
  DV_RGB_444_8BIT
  DV_YCbCr_422_12BIT
  LL_YCbCr_422_12BIT
IEEEOUI: 0x00d046
EMP: 0
VSVDB: eb0146d0004d0a8a7e6c8775

dmesg | egrep -i '(dv|dolb|dov)'
[    0.000000] Kernel command line: systemd.show_status=auto init=/init console=ttyS0,921600 no_console_suspend earlycon=aml-uart,0xfe078000 ramoops.pstore_en=1 ramoops.record_size=0x8000 ramoops.console_size=0x4000 loop.max_part=4 scramble_reg=0xfe02e030 otg_device=1 logo=osd0,loaded,0x3e800000 vout=2160p60hz,enable panel_type=lcd_1 hdmitx=, hdmimode=2160p60hz hdmichecksum=0xd1380000 dolby_vision_on=0 hdr_policy=1 hdr_priority= frac_rate_policy=0 hdmi_read_edid=1 cvbsmode=576cvbs osd_reverse=0 video_reverse=0 irq_check_en=0 androidboot.selinux=permissive androidboot.firstboot=1 jtag=disable disable_ir=0 usb3_off=0 androidboot.bootloader=01.01.241028.170257 androidboot.hardware=amlogic mac=30:F9:47:0D:6F:CF androidboot.mac=30:F9:47:0D:6F:CF androidboot.factory_flag=testok androidboot.wificountrycode=US androidboot.serialno=SK12403002273 BOOT_IMAGE=kernel.img boot=LABEL=COREELEC disk=LABEL=STORAGE console=tty0 no_console_suspend  keymap=us    remotewakeup=0xffffffff decode_type=0 remotewake
[    0.000000] get_amdv_on: 0, 0
[    0.850312] Advanced Linux Sound Architecture Driver Initialized.
[    1.075215] aml_dvb_extern_init: OK, version: V1.26
[    1.141932] amdolby_vision_init:module init
[    1.142468]  amdolby_vision probe start & ver: 20240626
[    1.142879] amdv_init_receiver(dvel)
[    1.142885] amdv_init_receiver: dvel
[    1.143466] dovi disable in uboot
[    1.330008] DOLBY: vout_notify_callback: VOUT_EVENT_MODE_CHANGE
[    1.623534] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[    1.624397] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.15
[    1.627172] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[    1.627768] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.15
[    1.633824] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[    1.634473] usb usb6: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.15
[    2.177719] usb 1-1: New USB device found, idVendor=04a6, idProduct=1507, bcdDevice= 2.00
[    3.003030] usb 5-1: New USB device found, idVendor=0bda, idProduct=9210, bcdDevice=20.01
[    9.998031] mali fe400000.valhall: clock dvfs cfg table size is 6
[    9.998113] mali fe400000.valhall: clock dvfs table size is 6
[   16.184686] dovi_gen_5_15_stb26: disagrees about version of symbol module_layout
[   16.184704] please rebuild ko: dovi_gen_5_15_stb26
[   16.184713] dovi_gen_5_15_stb26: module license 'AML' taints kernel.
[   16.185484] dovi_gen_5_15_stb26: disagrees about version of symbol __stack_chk_fail
[   16.185497] please rebuild ko: dovi_gen_5_15_stb26
[   16.186449] [dovi_gen_5_15_stb26]: *** amlogic_dolby_vision_init dv: gen ***
[   16.186463] error: dolby vision get fail ko, version: Shenzhen Sei Robotics Co., Ltd chip_name = gen [stb:2.6:e]-[v1.0]-[Tue Aug 27 14:41:20 CST 2024]-[jialong.jiang]-[]-[]-[]-[0]
[   16.186473] dv capability 7
[   16.186475] *** register_dv_stb2.6_functions.***
[   16.186677] [dovi_gen_5_15_stb26]: Creating DV mp success
[   16.186891] [dovi_gen_5_15_stb26]: Creating DV mp success
[   16.186902] enable DV HLG when stb v2.6. policy 123

Kodi.log with video component enabled is need:
https://wiki.coreelec.org/coreelec:ce_support

I reverted back to latest ce21 nightly, and now all is working fine, all thumbnails are generated fast and kodi is not crashing. For now ill stick to ce21, to bad that this dont have hdr10+ support, but its better lack of this function then constant freezes and crashes of ce22, ill wait more until ce22 get to beta stage

Should be working again tomorrow with next nightly.

1 Like

Thanks :+1:

In comparing CE22NO to CE21NG on device Ugoos am6plus, in input stream of CE22NO is missing: amvdec_h264mvc, amvdec_ports and amvdec_real. As extra was added to CE22NO: amvdec_h266 which maybe really NOT support for s922xj.

Output from CE22NO: https://paste.coreelec.org/RefuelSettled
Output from CE21NG:

Module                  Size  Used by
rfcomm                 98304  0
meson_remote           61440  0
8021q                  32768  0
hci_uart              122880  1
btqca                  16384  1 hci_uart
btbcm                  16384  1 hci_uart
btintel                24576  1 hci_uart
bluetooth             622592  8 hci_uart,btintel,btqca,btbcm,rfcomm
dovi                  929792  0
nfsd                  323584  5
nfs_acl                16384  1 nfsd
exportfs               16384  1 nfsd
joydev                 24576  1
hid_betopff            16384  0
dhd                  1097728  0
mali_kbase            516096  3
wireguard             135168  0
ip6_udp_tunnel         16384  1 wireguard
udp_tunnel             16384  1 wireguard
amvdec_vp9            143360  0
amvdec_av1            172032  0
amvdec_vc1             77824  0
amvdec_real            49152  0
amvdec_ports          167936  0
videobuf2_dma_contig    20480  1 amvdec_ports
v4l2_mem2mem           28672  1 amvdec_ports
videobuf2_memops       16384  1 videobuf2_dma_contig
videobuf2_v4l2         28672  2 amvdec_ports,v4l2_mem2mem
videobuf2_core         49152  3 amvdec_ports,v4l2_mem2mem,videobuf2_v4l2
v4l2_common            16384  1 amvdec_ports
amvdec_mpeg4           73728  0
amvdec_mpeg12         131072  0
amvdec_mmpeg4          49152  0
amvdec_mmpeg12         53248  0
amvdec_mmjpeg          32768  0
amvdec_mjpeg           45056  0
amvdec_mh264          184320  0
amvdec_h265           176128  0
amvdec_h264mvc         65536  0
amvdec_h264           172032  0
amvdec_mavs            61440  0
amvdec_avs             81920  0
amvdec_avs2           233472  0
stream_input          212992  13 amvdec_h265,amvdec_mavs,amvdec_mh264,amvdec_h264mvc,amvdec_av1,amvdec_ports,amvdec_real,amvdec_vp9,amvdec_h264,amvdec_avs2,amvdec_mpeg12,amvdec_avs,amvdec_mmpeg12
decoder_common        266240  19 amvdec_h265,amvdec_mavs,amvdec_mjpeg,amvdec_mh264,amvdec_mmpeg4,amvdec_h264mvc,amvdec_av1,amvdec_mmjpeg,amvdec_ports,amvdec_real,stream_input,amvdec_vp9,amvdec_h264,amvdec_avs2,amvdec_mpeg12,amvdec_avs,amvdec_vc1,amvdec_mmpeg12,amvdec_mpeg4
firmware               28672  19 amvdec_h265,amvdec_mavs,amvdec_mjpeg,amvdec_mh264,amvdec_mmpeg4,amvdec_h264mvc,amvdec_av1,amvdec_mmjpeg,decoder_common,amvdec_real,stream_input,amvdec_vp9,amvdec_h264,amvdec_avs2,amvdec_mpeg12,amvdec_avs,amvdec_vc1,amvdec_mmpeg12,amvdec_mpeg4
media_clock            57344  17 amvdec_h265,amvdec_mavs,amvdec_mh264,amvdec_mmpeg4,amvdec_av1,amvdec_mmjpeg,decoder_common,amvdec_ports,firmware,stream_input,amvdec_vp9,amvdec_h264,amvdec_avs2,amvdec_mpeg12,amvdec_avs,amvdec_vc1,amvdec_mpeg4
video_framerate_adapter    16384  1 decoder_common
amlvideodri            20480  0
videobuf_res           16384  1 amlvideodri
videobuf_core          32768  2 amlvideodri,videobuf_res
videodev              282624  6 amlvideodri,v4l2_common,amvdec_ports,videobuf2_core,v4l2_mem2mem,videobuf2_v4l2
media                  53248  1 videodev

According to datasheet of S922x:

Amlogic Video Engine (AVE-10) offloads the Cortex-A53 CPUs from all video CODEC processing. It includes dedicated hardware video decoder and encoder. AVE-10 is capable of decoding 4Kx2K resolution video at 75fps with complete Trusted Video Path (TVP) for secure applications and supports full formats including MVC, MPEG-1/2/4, VC-1/WMV, AVS, AVS+, AVS2 RealVideo, MJPEG streams, H.264, H265- 10, VP9 and also JPEG pictures with no size limitation. The independent encoder is able to encode in JPEG or H.265/H.264 up to 1080p at 60fps.

No maybe really not…
No idea what you want to!?
The decoder driver loads but it will not work when hardware do not support it.
What is the problem?

No problem, i tried found reason that why is stuttering after wakeup from suspending of device at CE22no. At ce21ng is not stuttering after wakeup.

Start analysis of processes and threads would be an option:

1 Like