It should not matter but did you try set different refresh rate in System settings -> Display? By default it is 60 Hz for my setup. I've changed it to 50 Hz.
[SOLVED] Dropped frames caused by subtitle rendering
- avirex
- Thread is Unresolved
-
-
There is no subtitle stutters with enabled playerdebug (ctrl+shift+o)
Maybe its a hint to fix this? Tested with 8.90.5
-
Also on my S912 box, no stutter with Playerdebug overlay on, with 8.90.4 and 8.2.2.3
-
Is there is any chance to fix this issue now after discovering playerdebug behaviour?
-
Is there is any chance to fix this issue now after discovering playerdebug behaviour?
This is known a long time.
No, there is no chance to fix it in every special case.
I´m lucky - my hardware has no issue
-
I have a big problem with subtitles stutters with kszaq 8.2.2.3 and wrxtasy chroma 422 with enabled new features and 8.90.5
Look at this video Libreelec subtitles stutters - YouTube
Without amcodec acceleration everything is OK! but cpu is to slow for software 4k decoding
I`m using
echo '422,10bit' > /sys/class/amhdmitx/amhdmitx0/attr
echo 0 > /sys/module/di/parameters/nr2_en
echo 1 > /sys/module/di/parameters/bypass_all
Player > Video >
Adjust display refresh rate > Start/stop
Sync Playback to Display > Off
Hi Pinki, this is the exact same issue i'm having, a stutter in panning scenes at the moment (or just before) the subitle appears. Good thing you uploaded a YouTube video, that's probably better then explaining it in text.
Also, I'm not using the adjustments in the attr, nr2_en and bypass_all files you mentioned (using the echo commands). My player/video settings are the same though.
-
It should not matter but did you try set different refresh rate in System settings -> Display? By default it is 60 Hz for my setup. I've changed it to 50 Hz.
I tried it just to be sure but it makes no difference (i also tried 24 and 23.98 rates). Afaik when using the 'adjust refresh rate on start/stop' option, it does not matter what the refresh rate is of the Kodi interface as it will change according to the content which is being played (hence the option).
-
No, there is no chance to fix it in every special case.
I´m lucky - my hardware has no issue
I can assure you this is not hardware related and your box does have this issue. You just don't see it
I'm sorry but that's the truth. Most users are happy they can use LibreELEC and they don't see any stuttering because this is not relevant to them.
Users with more sensitive eye, you just have to accept it.
-
This is known a long time.
No, there is no chance to fix it in every special case.
I´m lucky - my hardware has no issue
How is it "hardware issue" when it does not exist without hw acceleration? Looks more like a video driver issue to me.
-
How is it "hardware issue" when it does not exist without hw acceleration? Looks more like a video driver issue to me.
Hardware issue based on hardware acceleration and TV panel(hardware) - no LE developer is able to write a new amlogic hardware decoding driver until yet
-
Its possible to display subtitles without stuttering (playerdebug overlay)
Maybe someone can add "invisible overlay" like playerdebug as workaround to fix this?
-
I`ve found interesting thing. Video stutters only in some movies, whats the difference between them?
It looks like the problem is only with UTF8 subtitles internal/external srt? with internal PGS its OK. tested with 8 movies.
Example of stutering subtitle in attachment
I converted srt file from attachment to PGS (.sup) with GOSUP and then used MKVToolNix to merge PGS subtitles with mkv and now its working without stuttering!
Stuttering:
Text #2
ID : 5
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 2 h 1 min
Bit rate : 33 b/s
Count of elements : 1008
Stream size : 29.5 KiB (0%)
Title : Forced
Language : Polish
Default : Yes
Forced : Yes
CodeFormat profile : Main [email protected]@HighEncoding settings : cpuid=1173503 / frame-threads=5 / numa-pools=20 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=3840x1504 / interlace=0 / total-frames=184037 / level-idc=51 / high-tier=1 / uhd-bd=0 / ref=4 / no-allow-non-conformance / repeat-headers / annexb / aud / hrd / info / hash=0 / no-temporal-layers / no-open-gop / min-keyint=1 / keyint=24 / bframes=4 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=25 / lookahead-slices=4 / scenecut=40 / no-intra-refresh / ctu=64 / min-cu-size=8 / rect / no-amp / max-tu-size=32 / tu-inter-depth=1 / tu-intra-depth=1 / limit-tu=0 / rdoq-level=2 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / no-strong-intra-smoothing / max-merge=3 / limit-refs=3 / limit-modes / me=3 / subme=3 / merange=57 / temporal-mvp / weightp / no-weightb / no-analyze-src-pics / deblock=-2:-2 / no-sao / no-sao-non-deblock / rd=4 / no-early-skip / rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / no-b-intra / rdpenalty=0 / psy-rd=2.00 / psy-rdoq=1.00 / no-rd-refine / analysis-mode=0 / no-lossless / cbqpoffs=0 / crqpoffs=0 / rc=crf / crf=17.0 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=0 / vbv-maxrate=160000 / vbv-bufsize=160000 / vbv-init=0.9 / crf-max=0.0 / crf-min=0.0 / ipratio=1.40 / pbratio=1.30 / aq-mode=1 / aq-strength=1.00 / cutree / zone-count=0 / no-strict-cbr / qg-size=32 / no-rc-grain / qpmax=69 / qpmin=0 / sar=1 / overscan=0 / videoformat=5 / range=0 / colorprim=9 / transfer=16 / colormatrix=9 / chromaloc=1 / chromaloc-top=2 / chromaloc-bottom=2 / display-window=0 / master-display=G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(10000000,0) / max-cll=1000,640 / min-luma=0 / max-luma=1023 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / opt-qp-pps / opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / no-opt-cu-delta-qp / no-aq-motion / hdr / hdr-opt / no-dhdr10-opt / refine-level=5 / no-limit-sao / ctu-info=0No stuttering:
Text #18
ID : 38
Format : PGS
Muxing mode : zlib
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 2 h 6 min
Bit rate : 23.8 kb/s
Count of elements : 2970
Stream size : 21.6 MiB (0%)
Title : Polish-PGS
Language : Polish
Default : No
Forced : No
CodeFormat profile : Main [email protected]@High -
If someone does not see the problem with subtitles, please check this files (20MB mkv) and give us know if it's now visible on s912 with HW decoding
-
Thx. for the sample Pinki
I can now clearly seen video frame upsets happening about every 1 second with the external subtitles when played on the U9 (S912) using Hardware video decoding.
However my S905 ODROID C2 does not have any problems whatsoever nor does a MECOOL S905X box, both running LE 8.2.x and using HW decoding.
It appears only S912's that are using the Hybrid Android/Linux GPU drivers are having such subtitle, video frame upset issues.
Subtitle rendering is a GPU function.We really need better optimised S912 Linux GPU video drivers to fix this LE S912 problem.
EDIT - good news S912 owners !
I've updated the kszaq modded Hybrid GPU drivers for the S912 and added an important VSync Hardkernel ODROID C2 patch:
I see no S912 Subtitle / video frame problems now playing the above test clip when using this LE 8.2.4 Kodi Krypton release:
LibreELEC-S912.arm-8.2.4-S912-Subtitles-fix.tar
The Kodi user interface seems snappier now as well.
W.
-
Great news.
Will try this immediately
Thank you so much for your work !
-
I don't really use .srt subs a lot beside for some TV shows, and use PGS for movies mainly. I do however experience this issue when using Plex for Kodi addon. It might be because the way it has a different OSD overlay over Kodi, so most my media stutter every second (no dropped frames though in codecinfo) no matter if I use subtitles or not.
This issue has caused me to use PlexKodiConnect instead, which does not experience this issue with the same files on the same device.
This issue has only seemed to happen on my Minix U9 and not any other Kodi running device (Sony Android TV, Windows).
using wrxtasy build finally fixed this issue for me. Thanks a lot.
-
Indeed, problem is also fixed by my side.
Thank you so much !!
-