I currently record to .ts files (pass-through profile) as I know that MKV recordings in tvheadend can be problematic (based on what I’ve read on various forums).
I can try to capture the issue to a MKV file, and see whether I see the same frame skips (if providing you with such a file would aid debugging)?
From what I’ve seen, at least on tvheadend 4.2, recording to ts is the only way to watch a recording as it is recording. With a mkv, it plays until where it was when the playback started.
2019-09-27 07:59:53.941 T:3467637472 INFO: CVideoPlayerVideo - Stillframe detected, switching to forced 50.000000 fps
2019-09-27 07:59:53.942 T:3467637472 INFO: CVideoPlayerVideo - Stillframe left, switching to normal playback
2019-09-27 07:59:58.002 T:4070170624 DEBUG: ------ Window Deinit (DialogNotification.xml) ------
2019-09-27 07:59:58.444 T:3467637472 DEBUG: CPtsTracker: detected pattern of length 1: 40000.00, frameduration: 40000.000000
2019-09-27 08:00:06.901 T:3467637472 INFO: CVideoPlayerVideo - Stillframe detected, switching to forced 50.000000 fps
2019-09-27 08:00:06.901 T:3467637472 DEBUG: CPtsTracker: pattern lost on diff 100000.000000, number of losses 3
2019-09-27 08:00:06.902 T:3467637472 INFO: CVideoPlayerVideo - Stillframe left, switching to normal playback
2019-09-27 08:00:08.901 T:3467637472 INFO: CVideoPlayerVideo - Stillframe detected, switching to forced 50.000000 fps
2019-09-27 08:00:08.901 T:3467637472 INFO: CVideoPlayerVideo - Stillframe left, switching to normal playback
2019-09-27 08:00:10.541 T:3467637472 INFO: CVideoPlayerVideo - Stillframe detected, switching to forced 50.000000 fps
2019-09-27 08:00:10.541 T:3467637472 INFO: CVideoPlayerVideo - Stillframe left, switching to normal playback
2019-09-27 08:00:11.680 T:3467637472 DEBUG: CPtsTracker: detected pattern of length 42: -60000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 100000.00, frameduration: 39047.619048
2019-09-27 08:00:11.843 T:3467637472 DEBUG: CPtsTracker: pattern lost on diff 40000.000000, number of losses 4
2019-09-27 08:00:16.720 T:3467637472 DEBUG: CPtsTracker: detected pattern of length 1: 40000.00, frameduration: 40000.000000
2019-09-27 08:00:22.581 T:3719414496 DEBUG: Thread JobWorker 3719414496 terminating (autodelete)
2019-09-27 08:00:26.341 T:3467637472 INFO: CVideoPlayerVideo - Stillframe detected, switching to forced 50.000000 fps
2019-09-27 08:00:26.341 T:3467637472 DEBUG: CPtsTracker: pattern lost on diff 100000.000000, number of losses 5
2019-09-27 08:00:26.342 T:3467637472 INFO: CVideoPlayerVideo - Stillframe left, switching to normal playback
2019-09-27 08:00:30.840 T:3467637472 DEBUG: CPtsTracker: detected pattern of length 1: 40000.00, frameduration: 40000.000000
2019-09-27 08:00:38.541 T:3467637472 INFO: CVideoPlayerVideo - Stillframe detected, switching to forced 50.000000 fps
2019-09-27 08:00:38.541 T:3467637472 DEBUG: CPtsTracker: pattern lost on diff 100000.000000, number of losses 6
2019-09-27 08:00:38.542 T:3467637472 INFO: CVideoPlayerVideo - Stillframe left, switching to normal playback
2019-09-27 08:00:40.381 T:3467637472 INFO: CVideoPlayerVideo - Stillframe detected, switching to forced 50.000000 fps
2019-09-27 08:00:40.381 T:3467637472 INFO: CVideoPlayerVideo - Stillframe left, switching to normal playback
2019-09-27 08:00:44.879 T:3467637472 DEBUG: CPtsTracker: detected pattern of length 1: 40000.00, frameduration: 40000.000000
...
I captured this to an mkv recording, but unfortunately there were no frame skips when I played back the mkv file
I was tailing the logfile at the time of seeing the skips in livetv, and the frame skips occur exactly at the time of each “Stillframe detected” debug message.
I took a quick look at the code in this area and do wonder whether vero3-153-fix-timeout-calculation.patch (included in the may release onwards) may be causing this ?
I’ll create a build with that patch excluded to see if this makes any difference…
@sam_nazarko I’ve been running for a whole week on my custom build (based on af5f276 of osmc master, with patch 153 removed); and haven’t yet seen a single skipped frame in livetv.