ddejager wrote: ↑Fri Aug 24, 2018 6:37 am
Not sure the the PVR Client can do much about this: Sometimes I get a glitch in my recordings. When this happens, attempts to seek forward (through commercials) gets messed up. It appears to seek and then drops back by about the amount of time missing in the glitch. So, for example, if the glitch was 2 minutes long, and I attempt to see forward by 1 minute, I actually end up back by one minute after the seek. I need to see forward about 5 minutes to actually go forward about 3. This does not happen when watching the same recording using the HDHomeRun app. The app seems to seek forward (or backward) relative to the current position correctly. The DVR seems to calculating what the position should be relative to the start of the video, and gets it wrong because of the glitch.
By the way, the seek times seem noticeably faster (on OSMC running on Raspberry Pi) with the most recent few versions. Thanks!
Can you send me a Kodi log? If there is anything I can do about it, there should be some evidence in the log. If the PVR isn't complaining at all, then nothing is wrong from it's perspective and there wouldn't be anything for me to key off of. I've noted a lot of differences with how the HDHomeRun App handles the streams as opposed to Kodi, and honestly SD did a better job. Not to knock on Kodi, it serves a lot of masters and needs a much more generic set of internals. SD only has to worry about MPEG-TS, in Kodi the same code seems to be used for both MPEG-TS as well as DVD and a handful of other MPEG-type stuff.
I'm pretty sure there won't be anything available to do on the PVR side, if an error occurs on seek I added a notification a couple versions back. If you're not seeing that, all has gone as planned. Let's check the log and be sure.
Seek ... ah, the glorious and highly annoying seek. I spent all night last night trying to make it even better -- I tried adding a "slide" seek, in that if a forward seek is small enough, just keep reading. Turns out I also learned something new last night -- it's not the seek operation that's slow, it's DXVA acceleration on Windows. Turn that off and seek is amazing on Windows! CPU goes through the roof, but hey - no more buffering. Still not quite as peppy as HDHomeRun App, but so much better. Side note there - whatever the deal is with DXVA they appear to have fixed it for Leia. Leia seek is waaaaay better than Krypton. Unfortunately half the UI controls aren't working in Leia (for me), but when they work that out and finish dealing with that weird video glitching on some streams (Discovery Family is particularly awful) I think Leia will be a big boost for us PVR using folks. I'd love a Krypton 17.7 with some of these things fixed, but c'est la vie. The newer versions of this PVR on an nVidia Shield running Krypton seem just as good as Leia seek-wise to my old eyes.
If interested, the raw seek times on a Windows 10 PC on a 1Gbps LAN are typically under 2ms. Kodi thrashes about for a while looking for what I assume is a key frame, so it asks for a bunch of individual seek operations, but add them up and it's still well under 50ms, effectively instantaneous. If it asks for a small seek backwards I handle that with the buffer, cutting a couple more milliseconds off when possible. Regardless, it has become obvious to me that there really aren't any more optimizations available. Even going crazy with a custom demuxer to try and cut down the number of seeks wouldn't do much! The RECORD engine is great, it responds extremely quickly. Any lag we see appears to be just the result of Kodi doing whatever Kodi needs to do to sync things back up and start playing again.