I see in log, the decoder is skipping frames. The video stream is non standard encoded (e.g. frame duration is 0 msec, pts and dts have same value) and hw decoder has issue to decode it. In kernel log are reported following errors:
Im running TVHeadend on a server with PCIe DVB-S cards.
In CoreELEC I have stuttering/skipping frames. With LibreELEC not (but color banding issues with other files).
I tried several settings (disable hardware acceleration, disable deinterlace, allowed resulutions…) but nothing helped.
I agree with chakobsa, that these frames skips only with CoreELEC are strange.
I was very happy when I first used CoreELEC because this was the first time HDR movies run smooth and without color banding issues. But these (new) issues with all ts files are so Bad, that I couldnt use CoreELEC…
I’ve made some further research. I’ve recorded a tv show for a few seconds and played it with the current LibreELEC (v8.95.1 BETA), CoreEELE (8.95.6) and other video players in Windows 10 (VLC, Windows Media Player, Win10 Media Player).
You’re right, but this seems to be only the case for the very first second(s). After that, neither LibreELEC nor CoreELEC is logging this error anymore (ERROR: ffmpeg[D5334370]: [mpeg2video] Invalid frame dimensions 0x0.)
Something has to be wrong in CoreELEC. I’ve used the same hardware and the same media file.
Maybe the invalid frame size at the beginning might be the cause - but maybe this isn’t unusual for ts files in the first second and other media players don’t care?!
At the moment, I think I’m going back to LibreELEC. I watch far more TV recordings than 4k HDR videos (which are way better with CoreELEC)…
I hope that you create an issue for this bug. It’s a little bit sad, that this error is known for quite a time but it seems that no one cares (no reply to @chakobsa last post). Maybe ts files are not so relevant anymore, but in this case the feature should be disabled in CE.
I really wonder why Khadas Vim / S905X devices are officially supported by LE (and CE). I was trying to get different S905X with 4k HDR support to work since months. But nothing runs smooth and without errors… Sorry, but I’m a little disappointed, spend much money and time…
I’m using PVR functionality with TVH on a daily basis and everything is running smooth.
And I’m extremely sensible to stuttering videos.
Therefore I wouldn’t call it a general bug in CoreELEC.
Did you properly configure your resolution/refresh rate whitelist?
This is a new feature in Kodi Leia (not included in your LE Krypton build), which caused many problems with smooth playback.
But to make it clear: This is not a CoreELEC problem, but a Kodi one instead.
Just registered to post reply here that I have exactly same issue.
My box is M8S Pro+ 2/16gb and TVheadend on my Linux server.
I have zero problems when using LibreELEC (22.214.171.124) and also on my Windows 10 PC.
On CoreELEC however I have very similar logs like OP and my TV broadcasting missing some audio or video frames which is not enjoyable.
What I found is that under LibreELEC 8.9 or 9.0 which are based on Kodi 18 it’s donig it also so maybe this is something with Kodi or newer kernel used in this build?
Let my know if you need any logs from me but as I said, their are identical to OP.
EDIT: also it’s looks like this only happeining on HD streams, when I play SD there is no problem at all
Regarding my logs, both, CE and LE use/switch to 1080p @ 50hz when playing 576i or 720p, ts files with 25hz. 1080p @ 50Hz is also my default resolution (so no need to switch) and 50Hz is set to default in PVR settings.
I agree, in CE it looks like the refresh rate is wrong, even if logs say different.
I copied my settings from LE to CE, so they are identical.
I think yes, 1080p with 23.98, 24, 50 and 60hz. (In LE it works even without a whitelist). Die this issue it makes no difference if I define a resolution whitelist or not.
Maybe resolution switching is not working properly with Khadas VIM and ts files in CE?
Tomorrow I will disable the res. change in the settings. My default res. settings are already correct, so it should run without stutter. I’ll report If that changes anything (even if its no option for daily use)
=> Disabling resolution switching won’t fix it, still stuttering.
Which hardware do you use? @chakobsa just wrote “S905X”, I’m using Khadas Vim 1 (S905X), and @houmles has a M8S Pro+ 2/16gb (S905W, right !?).
My TV is a LG OLED 65 B7.
I don’t understand that. LibreELEC is running smooth, CoreELEC not - but it is a Kodi issue? Maybe you can explain it to me.
I’m using LE since 7 months, many different versions, different hardware (first PC, then several S905X until I bought the Khadas VIM). Stuttering playback was never an issue. Smooth playback was one of the reasons why I switched from MediaPortal (which I used over 10 years) to LE/Kodi.
Please tell me, if I can test anything more or if you need other logs or anything. It would be nice if you can fix this issue because I would like to use CE because of the color banding issues of LE with HDR movies.
I tried on my box, also all is working
One thing you can try more:
Upgrade to latest 8.95.7 release, there were some refresh rate improvements in this release.
Unselect all resolutions in Whitelist option
Check if “Adjust display refresh rate” is “On start/stop”
Try this file
If still the same situation than please try install 8.95.7 release from scratch on new sd card, don’t install nothing additional, check step 3, don’t change default refresh rate(left it 60Hz) and try this file.
Check if you have refresh rate change(TV must blink and change refresh rate)
If still have an issue - upload full logs, include also dmesg output.
I don’t know if it can help you, but you can try. We can’t repeat this issue.
I did all this, but still frame skips. The resolution change definitively works, my tv turns black for ~ 1 sec, before the playback starts. (My tv don’t show me the current refresh rate, only the resolution (which is 1080p). So if Kodi/CE sets the wrong refresh rate (not 50Hz, like the logs say), I couldn’t check that. I only now, that it is smooth in LE, I’m very sensible for stuttering.)
What I didn’t do so far is trying it with a clean install. I wait for your answer regarding “your ts file”. (BTW: I didn’t restore the Kodi settings from LE to CE, only network sources, databases, plugins&settings etc.).
I mean to try your file again(as you did).
As you have still the same problem, please try clean build on new card to exclude some config issues. And try your file again.
If problem will be solved than you can configure your system again step by step and check what cause this issue.
If not solved - full logs on clean system as I said before. May be we can find something more.
The stuttering has to do with the audio offset setting. If you play a .ts file and set an offset greater +50ms (ahead), stuttering starts. I need an offset of +125ms to keep audio in sync.
Audio delays are causing no problems, just positive values.
That was quite a long way today… With the clean system everything was smooth - now I know it was because I didn’t set the audio offset. A few hours ago I was searching the error in the backup/restore procedure…
I’m happy to find this out - hope you guys can reproduce and fix it
Yeah, this is a known issue, which seems to be introduced with Kodi 18.
Does your AVR provide an auto delay function or the possibility to manually define an audio delay value?
I know, this isn’t probably the fix you was hoping for, but at the moment, this your only option.
As I wrote, I dont need an audio delay, the audio has to come earlier (kind of a video delay). I could not config that anywhere else than in the video player. I’m also not sure where the delay is been produced. For e.g. Netflix, which I watch with my Smart TV, I dont need an audio offset - that is why I could not config it anywhere else, because I dont want to change it all the time…
How could it be a Kodi issue when LE with the same Kodi version doesn’t have that issue?
I’m getting annoyed to write that again, but getting no answer. Should I post in the Kodi forum that it doesnt run with CE (but others). What do you expect will they tell me?
An audio delay can also be a negative value.
At least my AVR is providing both options (auto delay / manual audio delay) with positive and negative values.
I never had a problem with the auto setting, so I don’t need to adjust it for every possible input.
I didn’t see, that you are using the Leia version of LE.
You are right, that this can’t be a Kodi problem then.
I will talk about it in the team and I’m sure we can provide a fix for it soon.