[SOLVED] Dropped frames caused by subtitle rendering

  • You need to put the dtb WITH the tar.

    RPI3 1GB, Z4 RK3368 1GB, MINI MX-G 2GB, Mini M8S II 2GB (coreelec.org 9.0.1), H96 Pro 3GB (coreelec.org 9.0.1), ODORID N2 2GB (coreelec.org 9.0.1), H/K AVR 161S, LG 60SJ810V
    pel.hu

  • Hi,


    New here :)


    Tried 8.2.4-Subtitles-ff and it did fix subs stutter for me on my GT1 Ultimate but it broke Bluetooth Remote.


    I have a PS3 remote which was working fine on 8.2.2.3 and now it doesn't pair anymore. Tried pairing via terminal using bluetoothctl and the same happens I enable trust and it does connect but when bluez has to attach the HID device I got an org.bluez.Error.Failed. I do have a cheap BT gamepad and the same happens :(



    I made a card with the old 8.2.2.3 image and BT remote and gamepad works.


    I have done some OE hacking on the past to support another universal PS3 remote but I cannot bisect the problems here because I don't know where do you maintain your code.


    Any hint ? I found that the BT and WiFi firmware are unchanged; the Bluez binary have different MD5 between images but that could be even a change on the compiler you used :(


    TIA

    Edited once, last by Juanjo ().

  • Ok,


    I worked around it. Found that killing and restarting bluetoothd put my BT periphericals on working order, so I added a little autostart.sh


    Code
    1. (
    2. sleep 2;
    3. pkill bluetoothd;
    4. sleep 2;
    5. /usr/lib/bluetooth/bluetoothd
    6. ) &
  • Awesome!!! Thank you!!! I will test it using an USB stick asap (but Pinki confirmed it's working so i'm sure it will work on my box too :) ).


    Could you also make a fix/update for Kodi Leia? I'm using Leia on the U9 on internal storage, mainly because of the UHD bluray ISO support. Obviously it's still alpha, but everything i need works, with exception of the subtitle stutter. A fix would therefore be much appreciated :)


    Many many thanks once again :)

  • Still yours 8.2.4 Subtitles-ff is the best stable build of Kodi LE.

    We see how much time you spend to fix many problems, thank you :)


    Btw. maybe someone have similar problems like me: once per any h264 1080p movie I have black screen for 1 second in random moment (sound is still playing)

    Nothing helps (OC GPU, OC CPU, SW/HW decoding, CHroma changing, community options), with 4K H265 everything is ok...

  • Still yours 8.2.4 Subtitles-ff is the best stable build of Kodi LE.

    We see how much time you spend to fix many problems, thank you :)

    :thumbup:

    ODROID N2_S922 4G - 1GB Ethernet, X92_S912_q201 3/32G - 1GB Ethernet Box_Android 7.1.2, Mocool KM8_S905X 2/16 0.1GB Ethernet Box_Android 8.0, X96Mini_S905W 2/16G 0.1GB Ethernet Box_Android 7.1.2

  • Where do I get 8.2.4 from? I cant seem to find it.

    TV: Vizio 2017 M55-E0

    Streaming Apps: Roku Streaming Stick+ for 4K/HDR Netflix, Youtube, and Amazon Prime Video

    Kodi: Minix Neo U9-H w/LE installed on MicroSD

    Remote: Harmony Elite

    Media Server: Unraid 40TB BEAST!

    TV Tuner: 2x HDHomeRun Prime

    Server Apps: HDHomeRun DVR, Emby (for Kodi), Plex (for everyone else)

  • We are talking here about 8.2.4_OverClock build from @wrxtasy (MEGA)


    Nothing to do with with "normal" 8.2.4 build. (Index of /releases/archive/8.2.4)


    Which buld interests you?

    ODROID N2_S922 4G - 1GB Ethernet, X92_S912_q201 3/32G - 1GB Ethernet Box_Android 7.1.2, Mocool KM8_S905X 2/16 0.1GB Ethernet Box_Android 8.0, X96Mini_S905W 2/16G 0.1GB Ethernet Box_Android 7.1.2

  • I was interested in the Overclocking and patching the reported subtitle issue. I already have 8.2.3. I will update to regular 8.2.4 first.

    TV: Vizio 2017 M55-E0

    Streaming Apps: Roku Streaming Stick+ for 4K/HDR Netflix, Youtube, and Amazon Prime Video

    Kodi: Minix Neo U9-H w/LE installed on MicroSD

    Remote: Harmony Elite

    Media Server: Unraid 40TB BEAST!

    TV Tuner: 2x HDHomeRun Prime

    Server Apps: HDHomeRun DVR, Emby (for Kodi), Plex (for everyone else)

  • I was interested in the Overclocking and patching the reported subtitle issue. I already have 8.2.3. I will update to regular 8.2.4 first.

    No need, just drop "LibreELEC-S912.arm-8.2.4-Subtitles-ff.tar" in the .update folder together with correct dtb.img from here

    ODROID N2_S922 4G - 1GB Ethernet, X92_S912_q201 3/32G - 1GB Ethernet Box_Android 7.1.2, Mocool KM8_S905X 2/16 0.1GB Ethernet Box_Android 8.0, X96Mini_S905W 2/16G 0.1GB Ethernet Box_Android 7.1.2

  • @wrxtasy


    Had time today to test your latest "LibreELEC-S912.arm-8.2.4-Subtitles-ff" version without GPU OC (normal 500MHz speed), and still all my critical samples played without stutter. Gui is a little slower, but the temp is 4-5°C lower...

    ODROID N2_S922 4G - 1GB Ethernet, X92_S912_q201 3/32G - 1GB Ethernet Box_Android 7.1.2, Mocool KM8_S905X 2/16 0.1GB Ethernet Box_Android 8.0, X96Mini_S905W 2/16G 0.1GB Ethernet Box_Android 7.1.2

  • No need, just drop "LibreELEC-S912.arm-8.2.4-Subtitles-ff.tar" in the .update folder together with correct dtb.img from here

    Very quick process, thank you very much for the help :)

    TV: Vizio 2017 M55-E0

    Streaming Apps: Roku Streaming Stick+ for 4K/HDR Netflix, Youtube, and Amazon Prime Video

    Kodi: Minix Neo U9-H w/LE installed on MicroSD

    Remote: Harmony Elite

    Media Server: Unraid 40TB BEAST!

    TV Tuner: 2x HDHomeRun Prime

    Server Apps: HDHomeRun DVR, Emby (for Kodi), Plex (for everyone else)

  • Just for a bit of info here regarding Dirty Regions.


    That section of the XBMC/Kodi code appears to be pretty old and was needed back in the day when media players had relatively slow CPU's and weak GPU's with slow internal data transfer capabilities. The RPi's likely still need DR.


    The LE developers have had a discussion over in the Slack chat forum and we have found even modern LE/Linux Kodi - Intel hardware benefits from disabling Dirty Regions completely now too, resulting in a smoother GUI there as well.


    Newer ARM GPU's like the Mali-T820 in the AML S912's also employ technologies like ARM - ASTC, AFBC, SC and TE to further reduce memory bandwidth needed for data transfer and display rendering.


    Mali Technologies – Arm

  • Hi,

    I installed your build and everything works fine besides the subtitles. If i wan to load them, i takes ca. 1 minute before they appear (bsplayer, opensubtitlrs, subscene) and if i load them screen freezes ca 1 minute, than go back to main menu. If i change the folder for the subs to the local SD card, instead „with the video on my server“ its been loading and displayed. If a tvshow still has subs saved on my server, it shows the same freeze behavior. On my S905 and the „normal“ S912 Kzaq build everything is loaded fine and displayed. I have a beelink ultimate 3 gig.

    Based in GERMANY — working in cigar business — part time freelance webdesigner — PS4 Console Gamer and TV Show Junkie :cool:


    S912 with CE on NAND — S905x with CE on SD-Card (with EmulationStation&KODI shanti‘s build) - Odroid N2 with CE on emmc and EmuELEC on SD-Cad — 4K 65“ Sony — 4K Onkyo DD/DTSHD/ATMOS Receiver



  • No problem on my Beelink GT1 3GB with the latest build.


    Did you try to make a fresh install ?

    Jep ... make a totally fresh install... will look for the error log tomorrow, if there is something suspicious ;)

    Based in GERMANY — working in cigar business — part time freelance webdesigner — PS4 Console Gamer and TV Show Junkie :cool:


    S912 with CE on NAND — S905x with CE on SD-Card (with EmulationStation&KODI shanti‘s build) - Odroid N2 with CE on emmc and EmuELEC on SD-Cad — 4K 65“ Sony — 4K Onkyo DD/DTSHD/ATMOS Receiver



  • @wrtxtasy

    This is really awsome!! I have been waiting sooo long for an update that is fixing the subtitle framedrops. Greatfull thanks for this good work, it is the finishing touch on Kszaq's build.

    But I had a little problem:

    I put the tar and dtb file together in the update folder as written above and then reboot the device. I have a H96 pro+ 3G, 1000 Mb LAN with the 8.2.2.3 firmware.

    Everything was updating fine after the device did not boot anymore, stucked with the H96 pro+ logo.

    I used 8.2.4 subtitles ff.tar and device tree gxm_q200_3g.dtb

    After I took an other SD card and made a fresh install with the same files (img.gz) of course. And again the same problem, no boot.

    Then I deleted the dtb file and pasted the old dtb file (used with 8.2.2.3) back and the the device was booting perfect again.

    I could set the GPU clock to 792 Mhz in display> community extras.

    Then testing it with some critical movies and wow!! for the first time no framedrops when enable external subs.

    Sometimes the first sub is having the old evil, but after everything is playing fine and smooth, I read this before in this topic, no problem for me.

    But... why does the H96 pro+ not boot with the dtb file as you advice?

    I am happy allready but could it be more better if this adviced dtb file should work??

    The CPU temerature is various between 54 and 61C

    And clock speed is showing 1000 and sometimes 1500 Mhz


    Another issue (I solved allready) is the following:

    I did use my D-link router attached with an HDD as NAS using SMB connection.

    When I play an mkv with external subs on this way LibreElec is crashing and reboots.

    When I delete the srt file it is playing fine.

    I did not have this issue with the 8.2.2.3 build.

    Then I decided to connect the HDD straight into the usb port on the H96 and then it is playing fine with external subs.

    I made this NAS construction to play movies with external subs direct on my LG TV, but now the subtitle issue is solved I don't need this anymore, so I leave it same this.:)

    Does somebody recognize this issue when playing movies with srt over NAS using SMB?


    Is there anybody who can advice me to make it more better, or can I just leave everything as it is now.:shy: