I apologize for the posts that have been published repeatedly.
Yes, it’s one old, but I tried playing this sample on an Google TV (same Xiaomi box) using the official Kodi 22 Piers Beta 1 app, and it plays without any issues, it’s smooth with no frame skips.
So I figured there was probably a bug.
Did you check the Player Debug Info regarding skip frames during playback?
That’s when I figured out why it wasn’t running as smoothly as it should.
I’d rule that out because on Kodi (on the Google TV side) on the Xiaomi box, it works without any issues, no frame skips, everything runs smoothly.
I see this from time to time when switching to another TV channel. The stuttering also disappears after opening a debug overlay and returns after closing it. This is a very old issue.
I certainly hadn’t intention to waste anyone’s time. I only mentioned it because the behavior seems specific to a specific device.
Since CoreELEC works correctly on another box based on an Amlogic SoC, I thought it was appropriate to report it in case it indicated a device-specific issue.
I understand that transcoding or re-encoding was suggested as a workaround, but that would result in a loss of quality, so I thought it was still worth reporting the playback issue on that device as observed.
It seemed reasonable to leave feedback on a reproducible issue affecting a specific device.
My intention was simply to provide useful feedback in good faith.
I just wanted to explain why I reported it.
I didn’t understand what needed to be done. But I think I’ve found a “solution”.
import xbmc, xbmcgui, random
win = xbmcgui.Window(10000)
prop = "osd_running"
if win.getProperty(prop) == "true":
win.setProperty(prop, "false")
else:
win.setProperty(prop, "true")
video_win = xbmcgui.Window(12005)
label = xbmcgui.ControlLabel(-50, 175, 1800, 50, '', textColor='0xFFFFFF00', font='font14_bold')
video_win.addControl(label)
monitor = xbmc.Monitor()
while win.getProperty(prop) == "true" and not monitor.abortRequested() and xbmc.Player().isPlaying():
try:
random_number = random.randint(1, 10)
label.setLabel(f"{random_number}")
except Exception:
pass
if monitor.waitForAbort(0.0167):
break
video_win.removeControl(label)
win.setProperty(prop, "false")
If you bind this to any button (or create smt like always running service-addon) and press it, it will fix stutterring if it started. And also, If the button was pressed at the start of playback, stuttering after pause/resume will never happened.
It seems like a duct-tape solution (creating rapidly changing text in an invisible (-50 x-coordinate) part of the display) and will likely have a negative impact on other things, but it completely solves this problem. With this script, /sys/class/video/frame_rate is always completely stable and the video is visually smooth, always.
Did you check the Player Debug Info regarding skip frames during playback?
That’s when I figured out why it wasn’t running as smoothly as it should.
Which nightly build did you try?
Of course not. Why would I do that when I don’t see a single dropped frame, and I’ve watched this concert countless times - probably since the days of CoreELEC with Kodi 18?
But I will enable Player Debug Info and check it out…
Latest means latest available on CoreELEC nightly builds, so: 20260908
Thanks for trying to help. However, your version doesn’t work.
First, I installed the official nightly_20260908 build on a clean microSD. Without changing almost any settings or installing any add-ons whatsoever, I confirmed that the problem was present.
Then, I updated to your version. In that version, the appearance of any subtitles causes the image to stutter. Likewise, any OSD - such as the one from the scripts in my recent posts - also causes stuttering.
After that, I reverted to the official nightly_20260908 build, and the stuttering during subtitle or OSD display was gone.
Amlogic AM8 Pro hangs on stopping AV1 playback also on beta 2 and subsequent nightlies, screen goes black and audio keeps on playing the same short sequence. Not possible to produce a debug log which actually shows something useful and SSHing to the box doesn’t work when the hang occurs.
USB ports sometimes go unrecognized upon boot, I just had to reboot the device three times to be able to use my IR remote and keyboard.
As mentioned earlier in this thread, nightly 20260314 is the last one where these are not happening.
I worked with ChatGPT to build various combinations to try and find where the AV1 hanging issue actually appears. It’s impossible to say whether it’s the Linux kernel or common_drivers or both causing it, but I was able to narrow it down to this. In the tests, the repo was otherwise in the 20260317 nightly state.
Configuration
AV1 stop
5.15.170 + old common_drivers + old media_modules
WORKS
5.15.170 + old common_drivers + new media_modules
WORKS
5.15.196 + b9cd0739 common_drivers + new media_modules