[8.0.2e] LibreELEC 8.0 for S905/S905X


  • Do you have "Sync playback to display" enabled?


    Yes I did :( ... might have been on by default ?


    I moved back to my Atom+ION2 ... and finally updated to LE ... (was still on OpenELEC ... didn't realized its fate ) ... and had the same problem. Just had googled this for Kodi in general ... http://forum.kodi.tv/showthread.php?tid=292983&pid=2492915#pid2492915  - and this resolved my Atom+ION2 issue. I'll go back to the ARM later ... but suspect this was the issue.


    Would have been the last thing to think of.


    Thanks!


  • I'm sorry but I don't know how kernel audio driver works and I tinker only with the easiest part. I cannot help with resolving your issues.


    What I can tell is Amlogic audio driver is very, very messy and works only in some configurations. It needs fixing or a complete rewrite.


    There's still some hope that Kwiboo will find some time to work on driver or someone else with knowledge picks this up...


    I did some more testing with downloaded clips. 5.1 audio plays back fine at 192kHz. It's just the stereo audio that won't so I think it's selecting the wrong playback format. Works if I use "fixed" sample rate of 192kHz.


    kszaq - what did you change to enable 192kHz playback on S905X?

  • kszaq: Thank you very much kszaq, version 8.0.1c seems very good. All my files play very smoothly and without any issues. You are big man!

    Sunvell T95Z Max (S912) 2G/16G 1Gbit LAN, MXV+ (S905) 1G/8B 1Gbit LAN , NAS D-Link 320L, TV LG 65UK6500MLA, Receiver Yamaha RX-V475

  • I have a problem with HVEC stream from iptv, this is the log while change from a channel in h264 and after to a channel in HVEC,
    In Kodi for pc work correctly, but in libreelec and android is not working and I have to switch off and on the box to restart the video.
    Seems that the video go to a totaly wrong value.
    Please Kszaq can you see what is appening?
    Thank you.


    [ [email protected]] codec:video_blackout_policy_store(0)
    [ [email protected]] [tsync_avevent]event:1, param 1
    [ [email protected]] video pause!
    [ [email protected]] codec:video_receiver_event_fun: sent uevent FRAME_RATE_END_HINT
    [ [email protected]] DI: di_receiver_event_fun , is_bypass() 1 trick_mode 0 bypass_all 0
    [ [email protected]] di_receiver_event_fun: vf_notify_receiver unreg
    [ [email protected]] DI: di_task_handle,up enter unreg process.
    [ [email protected]] DI: di_unreg_process unreg start 1.
    [ [email protected]] codec_mm:NULL mem_handle for keeper!!
    [ [email protected]] codec:alloced keep buffer yaddr=0000000078b00000,u_addr=0000000078f00000,v_addr=0000000079000000
    [ [email protected]] codec:vf_keep_current keep_y_addr=0000000078b00000 763c3000
    [ [email protected]] codec:ge2d_store_frame_NV21 cur_index:s:0x626160
    [ [email protected]] codec:ge2d_store_frame d:0xd9d8
    [ [email protected]] codec:vf_keep_current: VIDTYPE_VIU_NV21
    [ [email protected]] codec:vf_keep_current: keep video on with keep
    [ [email protected]] [tsync_avevent]event:2, param 0
    [ [email protected]] codec:video first pts = 0
    [ [email protected]] DI: di_unreg_process unreg stop 0.
    [ [email protected]] DI: di_task_handle,up enter unreg process.
    [ [email protected]] DI: di_unreg_process_irq unreg irq start.
    [ [email protected]] di_unreg_process_irq unreg irq stop.
    [ [email protected]] DI: di_receiver_event_fun:unreg_req_flag_cnt:0 timerc_cnt 39500!!!
    [ [email protected]] codec:vdec1 video changed to 0 x 0 0 fps clk->200MHZ
    [ [email protected]] codec:vdec_create instance ffffff8004b8a000, total 1
    [ [email protected]] codec:Video stbuf alloced at 0000000075200000, size = 3145728
    [ [email protected]] codec:vdec_init, dev_name:amvdec_h264, vdec_type=VDEC_TYPE_SINGLE
    [ [email protected]] codec:vdec_init set vfm decoder ffffff8004b8a000
    [ [email protected]] codec:vdec_dev_reg.mem[0x75500000 -- 0x784fffff]
    [ [email protected]] codec:H264 sysinfo: 1280x720 duration=3840, pts_outside=1,
    [ [email protected]] codec:vdec_request_irq ffffffc0015b30a0, vh264-irq
    [ [email protected]] DI: di_receiver_event_fun: vframe provider reg
    [ [email protected]] DI: di_task_handle,up enter reg process.
    [ [email protected]] DI: di_receiver_event_fun:reg_req_flag_cnt:0!!!
    [ [email protected]] set run_early_proc_fun_flag to 1
    [ [email protected]] codec:video_receiver_event_fun: sent uevent FRAME_RATE_HINT=3840
    [ [email protected]] codec:vdec_init, vf_provider_name =
    [ [email protected]] codec:video first pts = 0
    [ [email protected]] codec:vdec_request_irq ffffffc0015a4b28, parser
    [ [email protected]] codec:video_blackout_policy_store(1)
    [ [email protected]] codec:DisableVideoLayer()
    [ [email protected]] codec:video_receiver_event_fun: sent uevent FRAME_RATE_END_HINT
    [ [email protected]] DI: di_receiver_event_fun , is_bypass() 0 trick_mode 0 bypass_all 0
    [ [email protected]] di_receiver_event_fun: vf_notify_receiver unreg
    [ [email protected]] DI: di_task_handle,up enter unreg process.
    [ [email protected]] DI: di_unreg_process unreg start 1.
    [ [email protected]] codec:DisableVideoLayer()
    [ [email protected]] codec:disbled keep video before free keep buffer.
    [ [email protected]] codec:disbled video for next before free keep buffer!
    [ [email protected]] codec:DisableVideoLayer()
    [ [email protected]] codec:free_alloced_keep_buffer 0000000078b00000.0000000078f00000.0000000079000000
    [ [email protected]] codec:free_alloced_keep_buffer (null). (null). (null)
    [ [email protected]] [tsync_avevent]event:2, param 0
    [ [email protected]] codec:video first pts = 0
    [ [email protected]] DI: di_unreg_process unreg stop 0.
    [ [email protected]] DI: di_task_handle,up enter unreg process.
    [ [email protected]] DI: di_unreg_process_irq unreg irq start.
    [ [email protected]] di_unreg_process_irq unreg irq stop.
    [ [email protected]] codec:VsyncDisableVideoLayer
    [ [email protected]] codec:AFBC off now.
    [ [email protected]] DI: di_receiver_event_fun:unreg_req_flag_cnt:0 timerc_cnt 39651!!!
    [ [email protected]] codec:video_disable_store(1)
    [ [email protected]] codec:DisableVideoLayer()
    [ [email protected]] codec:free_alloced_keep_buffer (null). (null). (null)
    [ [email protected]] vfm_map_store:rm default
    [ [email protected]] vfm_map_store:add default decoder ppmgr deinterlace amvideo
    [ [email protected]] codec:VsyncDisableVideoLayer
    [ [email protected]] codec:AFBC off now.
    [ [email protected]] vfm_map_store:rm default
    [ [email protected]] vfm_map_store:add default
    [ [email protected]] vfm_map_store:rm default
    [ [email protected]] vfm_map_store:add default decoder ppmgr deinterlace amlvideo amvideo
    [ [email protected]] codec:vdec_create instance ffffff8004bbb000, total 1
    [ [email protected]] codec:HEVC stbuf alloced at 0000000075200000, size = 6291456
    [ [email protected]] codec:vdec_init, dev_name:amvdec_h265, vdec_type=VDEC_TYPE_SINGLE
    [ [email protected]] codec:vdec_init set vfm decoder ffffff8004bbb000
    [ [email protected]] codec:vdec_dev_reg.mem[0x0 -- 0x0]
    [ [email protected]] codec:vdec base memory alloced [0000000075800000 -- 00000000778fffff]
    [ [email protected]] codec_mm:end: cached pages: 16384, speed 120 ms
    [ [email protected]] [0]h265:pts_unstable=0
    [ [email protected]] [0]h265: ver (201602101,0) decinfo: 1280x720 rate=3840
    [ [email protected]] [0]vh265 mmu ucode loaded!
    [ [email protected]] DI: di_receiver_event_fun: vframe provider reg
    [ [email protected]] DI: di_task_handle,up enter reg process.
    [ [email protected]] DI: di_receiver_event_fun:reg_req_flag_cnt:0!!!
    [ [email protected]] set run_early_proc_fun_flag to 1
    [ [email protected]] codec:video_receiver_event_fun: sent uevent FRAME_RATE_HINT=3840
    [ [email protected]] codec:hevc video changed to 3840 x 2160 60 fps clk->667MHZ
    [ [email protected]] codec:vdec_init, vf_provider_name =
    [ [email protected]] codec:video first pts = 0
    [ [email protected]] codec:vdec_request_irq ffffffc0015a4b28, parser
    [ [email protected]] [tsync_avevent]event:1, param 1
    [ [email protected]] video pause!
    [ [email protected]] codec:video_freerun_mode_store(1)
    [ [email protected]] codec:video first checkin pts = 0
    [ [email protected]] codec:first check in vpts <0x0:0x0> ok!
    [ [email protected]] [0]set pic_list_init_flag 1
    [ [email protected]] [0]allocate begin
    [ [email protected]] [0]allocate end
    [ [email protected]] [0]init_decode_head_hw: (1280, 720) body_size 0x167600 header_size 0xf00
    [ [email protected]] [0]init_buf_spec2 1280 720
    [ [email protected]] [0]set pic_list_init_flag to 2
    [ [email protected]] [0]set pic_list_init_flag to 3
    [ [email protected]] [0]Bit depth luma = 13
    [ [email protected]] [0]Bit depth chroma = 13
    [ [email protected]] [0]Pic Width/Height Change (1280,720)=>(38002,37493), interlace 0
    [ [email protected]] [0]init_decode_head_hw: (38002, 37493) body_size 0xa9f68000 header_size 0x54fb40
    [ [email protected]] over size : 38002 x 37493.
    [ [email protected]] aml_snd_m8_card aml_m8_snd.46: I2S playback disable
    [ [email protected]] aml_snd_m8_card aml_m8_snd.46: IEC958 playback disable
    [ [email protected]] aml_spdif_dai: aml_hw_iec958_init,runtime->rate=48000, same source mode(1)
    [ [email protected]] aml_spdif_dai: share the same clock
    [ [email protected]] aml_spdif_dai: iec958 mode PCM16
    [ [email protected]] aml_audio_hw: IEC958 16bit
    [ [email protected]] hdmitx: audio: aout notify rate 48000
    [ [email protected]] hdmitx: audio: aout notify size 16
    [ [email protected]] hdmitx: audio: no update
    [ [email protected]] aml_snd_m8_card aml_m8_snd.46: i2s/958 same source
    [ [email protected]] aml_spdif_dai: enterd aml_spdif_play,set_clock:4,sample_rate=4
    [ [email protected]] aml_spdif_dai: set normal 512 fs /4 fs
    [ [email protected]] aml_audio_hw: IEC958 16bit
    [ [email protected]] hdmitx: audio: aout notify rate 48000
    [ [email protected]] hdmitx: audio: aout notify size 16
    [ [email protected]] hdmitx: audio: no update

  • Hi, can anyone suggest me a best cachebuffersize for my KII Pro 2GB/16GB model ?
    i have a severe buffering issue while using Vidmax and Break Videos. it takes upto 2 minute once after playing the Video to return to the list of Videos. and also it takes upto 30 seconds to play a Video.
    i have a 50 mbps connection and the other Videos like Movies from other Addons work great. it worked like a charm when i installed the new version at first. but after that it is lagging. DOes anyone have a clue why it is like that ? or is it just me or anyone else also facing the same issue ?


    i am waiting for a helping hand. Thanks in Advance.


  • Please Kszaq can you see what is appening?


    Once again I ask to read the first post and sticky post carefully to understand what I need to look into any playback related issue. I am unable to help if you post a random part of kernel log only.


    Hint: post a sample.

  • Still getting weird background changes every 2 seconds, with what looks like a red ghost, also on videos or back screen. Changing refresh rate does nothing. 8.0.1a still works fine.


    3840x2160p Refresh 60 - LG UHD


    Wish I could take a picture, but it occurs so quick....


    Lyle


    Found Issue - Bad HDMI 2 Cable.
    Please cancel :)

    Edited once, last by kf6dlq ().

  • For people who for some reason want to try 64bit 8.0.1c : LE – Google Drive
    LibreELEC-S905.aarch64-8.0-devel-20170406001607-r25777-gab328ab.img.gz
    [built verbatim from kszaq repository]
    I also rebuilt some TV related addons (none were updated since 8.0.1a)
    pvr.hts-3.4.19.1.zip
    pvr.iptvsimple-2.4.8.1.zip
    pvr.mythtv-5.0.9.1.zip
    service.tvheadend42-8.1.110.zip

    player : Mini MX-G p200_2G & Inphic Spot i7 PRO p212 & Khadas VIM2 q200
    monitor : iiyama ProLite E2283HS
    speaker : UE Boom 2
    dvb-t : PCTV microStick (79e)
    firmware : android | LE 64bit | balbes 3in1 | gentoo

  • Some interested questions re 64bit version from Nofan Tasi.
    Is the install the same as 32bit s905X hardware box version? ie copy to update directory and reboot? Does it need the same tree or is none ok?
    If there are problems can roll back to 32bit version (assuming directory update is available)?
    Does current 32bit addons install and work or only 64bit updates?
    thanks for info on this release.



    In theory there is no difference between theory and practise, but in practise there is!

  • minsik


    Thanks for asking.


    I should in fact perhaps repeat upon every update.


    - 64bit image is built from same code as 32bit one, all credits to our
    hero kszaq.


    - I never ran 32bit image. I suppose going from 64bit image to 32bit
    image or vice versa is similar. Also, I always run from external SD.


    Perhaps a clean install on dedicated external SD is safest approach.


    - 32bit image will need less memory.


    - 32bit image runs more addons. One cannot mix 32bit and 64bit code
    So only addons without any binary code can work on both.


    - 32bit image can also, should this ever be needed, use 32bit code
    from android partitions. I doubt however if such would ever be needed
    for average use. And I also doubt if it would work.


    - It may be harder to find some 64bit addons. One may need to build
    them oneself.



    * In short: 32bit image has many advantages. 64bit image has some
    disadvantages.



    That said. For my, agreed, simple usage, 64bit image with some TV
    related addons works just fine. The few other addons I need work fine
    too.


    I use 64bit LE primarily to allow me to maintain a gentoo 64bit
    stage3 chroot. And because I have sufficient amount of RAM. And
    because I have a 64bit machine.


    I would say, use at own risk.

    player : Mini MX-G p200_2G & Inphic Spot i7 PRO p212 & Khadas VIM2 q200
    monitor : iiyama ProLite E2283HS
    speaker : UE Boom 2
    dvb-t : PCTV microStick (79e)
    firmware : android | LE 64bit | balbes 3in1 | gentoo

    Edited once, last by Nofan Tasi ().


  • But... Does it have any significant improvement talking about performance?

  • Thanks for Kszaq's great job!


    Is it a known bug, that you play video and use the rewind , only change time , but no more audio&video ?
    or it is refer to KII pro box?

  • Hello...


    Has anyone else noticed in the remote control buttons any "sticking effect"?


    That is when you push a button for going up or down and you need to push 2-3 times to get it done...


    My remote works alright at the start but after 1 minute or so it stops working fast... If i hold the button pressed the menu options are not scrolling smoothly or if i want to go up or down i need to press the button 2 or 3 times...

  • Sorry should have put that in...


    Its a Tonbux Q Box S905 2GB/16GB rooted I believe already.


    Im currently running it from SD Card but its very slow to respond and load box art etc so was going to backup android and use LIB as the OS hoping it will speed up. Sadly my good san disk ULTRA SD Card is now borked locked as read only so using a chap one which I think is why its slow.


    I run libreelec 8.0.1 (a/b/c) on both old 4gb sdhc class 4 on MXQ 4k Pro smoothly. External old 160gb get half power from USB power hub. Maybe power is the reason.


    Sent from my Venue 8 HSPA+ using Tapatalk

  • Hi Kszaq.


    I am getting a weird picture freeze with all the LE8 builds. Including the latest "c".
    I am playing TV using Simple IPTV PVR client. After a couple of hours (usually 4-5 hours) I have the below in log and the picture just "freezes".
    From the log, I can see that sometimes it does recover from it but then it just gets "stuck" with the "stream stalled" message and I need to manually stop the play, switch the channels a couple of times(just stop/play doesn't work after freeze!) and only then the video playback returns. There is no "buffering" circle, nothing. The picture just freezes.


    Is it related to running on s905 ? Is there any workaround to detect and restart the stream ?
    My box is S905x 2g/16gb (x96). The below happens both in your builds and builds that I did compile manually from your code.
    In the below log, the freeze happened at 05:38. I have came back to TV at around 11am and it was still showing a frozen picture.
    Can I somehow debug the problem further ? Looking at the KODI source where the log message is printed doesn't really help as I am not familiar with how it works and there is a "sleep(10)" in the code that doesn't make a lot of sense.


    Thank you for your work.

    Code
    1. 00:40:26.399 T:3658511264  NOTICE: CVideoPlayerAudio::Process - stream stalled
    2. 00:40:42.355 T:3930067872 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
    3. 01:32:49.247 T:3658511264 WARNING: Previous line repeats 4 times.
    4. 01:32:49.247 T:3658511264  NOTICE: CVideoPlayerAudio::Process - stream stalled
    5. 01:32:58.030 T:3930067872 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
    6. 02:36:04.393 T:3658511264 WARNING: Previous line repeats 1 times.
    7. 02:36:04.393 T:3658511264  NOTICE: CVideoPlayerAudio::Process - stream stalled
    8. 02:36:23.489 T:3930067872 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
    9. 05:38:09.192 T:3658511264 WARNING: Previous line repeats 1 times.
    10. 05:38:09.192 T:3658511264  NOTICE: CVideoPlayerAudio::Process - stream stalled
  • I did some more testing with downloaded clips. 5.1 audio plays back fine at 192kHz. It's just the stereo audio that won't so I think it's selecting the wrong playback format. Works if I use "fixed" sample rate of 192kHz.


    kszaq - what did you change to enable 192kHz playback on S905X?


    Hi fat-tony,


    your audio issue seems to be very close to the issue then I have. All 44.1k two channel audio is upsampled to 48k and, if I try to force Kodi to use 88.1k is uses 96k (see my post here thread-1492.html?highlight=44.1). It was solved in one older version (7.0.2.009), but however the fix hat been reverted in all later versions.


    You may can try the version 7.0.2.009 and see if it works better for you.

  • Hi fat-tony,


    your audio issue seems to be very close to the issue then I have. All 44.1k two channel audio is upsampled to 48k and, if I try to force Kodi to use 88.1k is uses 96k (see my post here thread-1492.html?highlight=44.1). It was solved in one older version (7.0.2.009), but however the fix hat been reverted in all later versions.


    You may can try the version 7.0.2.009 and see if it works better for you.


    I don't think my issue is the same. My 44.1kHz / 48kHz / 88.2kHz / 96kHz / audio is all played back at the correct sampling rate according to my amplifier display. I only have issues with 176.4 / 192kHz stereo output. When I was using Kodi on android Marshmallow (the Chinese box default), everything was being re-sampled to 48kHz, but once I installed LibreELEC most of my audio issues went away. I think your problems may be with a setting error somewhere in Kodi. I will have a read of your issue and see if I can see anything.
    [hr]

    Edited once, last by fat-tony ().