This sits firmly in minor annoyance. I have a Vero V, and I noticed that after a half a second at the beginning of Dark Knight, theres a stutter in the video (not the the audio). I don’t see it after that first stutter, but it’s not present when I play directly from my PC. The source file is an MKV rip of my blu-ray stored on a NAS. Haven’t done a search to see if other titles exhibit this. Just figured I’d ask if this is a known thing and if there’s a setting I need to tweak.
I’d suggest posting some logs so we can see what’s going on here.
Sam
I have SSH access. What’s the easiest way to do that?
I think that’s a known issue. Gemini Man 4k also shows it occasionally. Unfortunately, I have no clue yet what’s causing it. It’s difficult to reproduce. If I turn on debug logs with the components I need, it’s gone. It’s for sure a timing issue. When a clip starts a lot of things are initialized and I think that something gets in the way.
Can you check if it you get that stutter if you rewind to the start of the clip, too?
Yes, it’s there even when I rewind. Seems to happen with almost every WB film that’s encoded with VC-1.
Dirty Harry
Harry Potter 5,6
Sherlock Holmes
Inception
In the case of Sherlock Holmes and Inception, it actually goes to black, displays the Kodi menu again for a bit, then starts the movie. If I could figure a way to upload a video clip I’d be able to show you.
Is it possible for you to upload a small sample (which exhibits the problem) to a service like Dropbox temporarily?
Sam
That’s interesting. I remember having an issue with Sherlock Holmes, too, but I thought that it’s fixed. I’ll have a look.
So one mystery solved. The black screen, to menu, to video that happens with Sherlock and Inception resolves if I set “Adjust display refresh rate” to “off”. The stutter still remains.
However, I’ve discovered that when I resume playback of one of these movies neither the black screen nor the stutter occurs for the same movie, even with “adjust refresh rate” set to “on start / stop” (which is my normal setting). These anomalies are only occurring when starting playback fresh.
Also let me know if a debug of these would help and of so which debug settings to enable.
Hm, now I need debug logs. Also turn on component logging and activate the A/V sync and video components. Then reboot twice and reproduce that Sherlock issue. Afterwards post the logs please.
Done.
https://paste.osmc.tv/qihohanube
Let me know if you want an example of
-
A video that does only the skip.
-
Resuming the video from the menu (which avoids any anomalies).
It looks like there’s something wrong with the timestamps in the stream. The first frame is returned with 0.000 and the second frame with 1.001 (it should be 0.041). Until 1.126 it’s ok but then the next frame is returned with 2.002, so there’s another gap/skip in the timestamps. That irritates video playback of course. If you can upload the first 30 seconds of that clip somewhere then I can have a look if it’s a stream or decoder issue.
Neither file used to exhibit this behavior. I think both used to work on Vero V correctly within the past year, and I’m certain they used to work on the Raspberry Pi 3. I also know the files haven’t changed because I keep sha256 hashes of all the files for comparison.
Edit: I was able to make a 30s clip which exhibits the behavior. If you have a Gmail account, DM it to me and I’ll share the file with you.
More information. Tested the files on the raspberry Pi 3 running LibreElec 9.2.4 and it works fine. I keep the Pi on 9.2.4 because of the support for 3D MVC which that TV still has. That may be too old for comparison, but I think that rules out file corruption.
Any updates? I’ve got the clip.
No need for further tests or logs. I can reproduce that issue here and I’ll look into it.
Any luck with this?
Yes, I’ve fixed it. The fix will be part of the next release.
Can you talk about what the issue was? I’m always curious about that sort of thing.
Basically, the VC1 stream was correct, it did not have any issues. The problem was a combination of stream reading and processing in Kodi and processing it in the kernel. That resulted in unstable time codes (using 24 fps vs. 23.976 fps). That happened two times during the first seconds of the clip. The way how the frames were encoded in the stream triggered that issue, that’s why it did not occur on every VC1 clip.