Project

General

Profile

Slow seeking while tv is recording

Added by Brian Healy over 3 years ago

Hi,

Running Kodi 19 and Tvheadend 4.3 (Specifically: 4.3-1923~gaaca05cc1)

If i enable matroska streaming and recording, seeking is very slow while playing back a currently recording tv show. Once the tv show has completed, seeking is very quick.
If I use MPEG-TS Pass-thru for streaming and pass for recording it is also very quick to seek. Unfortunately i need the matroska version to workaround an issue i have with ts files.
Does anyone know why this is happening and if there is a way to fix it.

From what I see, while seeking in matroska while recording it seems like the kodi client is downloading the whole video until the point i'm seeking to. Seeking backwards does not seem to be as much of an issue.


Replies (5)

RE: Slow seeking while tv is recording - Added by saen acro over 3 years ago

And what are your storage capabilities?

RE: Slow seeking while tv is recording - Added by Anonymous over 3 years ago

Brian Healy wrote:

Hi,

Running Kodi 19 and Tvheadend 4.3 (Specifically: 4.3-1923~gaaca05cc1)

If i enable matroska streaming and recording, seeking is very slow while playing back a currently recording tv show. Once the tv show has completed, seeking is very quick.
If I use MPEG-TS Pass-thru for streaming and pass for recording it is also very quick to seek. Unfortunately i need the matroska version to workaround an issue i have with ts files.
Does anyone know why this is happening and if there is a way to fix it.

From what I see, while seeking in matroska while recording it seems like the kodi client is downloading the whole video until the point i'm seeking to. Seeking backwards does not seem to be as much of an issue.

Matroska streams are often non-seekable: a known limitation.

Matroska straming AND recording is bad. Better use mkv for
recording and htsp for streaming.

Look at matroska.org for Streaming mkv:

"seeking can be an expensive operation and SHOULD be avoided."

If you are using Kodi and tvh then switching to the recording channel
opens the options:

A: "switch to channel" and KODI switches to channel using htsp profile.

B: "play recording" tvh opens recording file and this causes problems until the recording is finished.

RE: Slow seeking while tv is recording - Added by Anonymous over 3 years ago

saen acro wrote:

And what are your storage capabilities?

Why do you think "storage capabilities" (whatever this means) are the problem ?

RE: Slow seeking while tv is recording - Added by Flole Systems over 3 years ago

Exactly, matroska is simply not designed for that.

RE: Slow seeking while tv is recording - Added by Brian Healy over 3 years ago

Thanks for the response guys. @der Depp i'm guessing there is no workaround then?

One of the main reasons i'm using mkv to record is that a tv station i record a lot is using hdlite. This plays fine when i record in mkv, but when i use htsp, instead of displaying in 16:9 ratio, it displays incorrectly in 4:3. One workaround is to make kodi play all 4:3 content in 16:9 but then this ruins any 4:3 native content i have.

Issue is described here https://discourse.coreelec.org/t/incorrect-aspect-ratio-for-hd-4-3-content/2856/19 and https://forum.libreelec.tv/thread/1542-solved-incorrect-aspect-ratio-with-some-tvheadend-channels/?pageNo=2

    (1-5/5)