Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeshift: buffering / stuttering after seeking in timeshift buffer #319

Closed
dkonerma opened this issue Jul 16, 2017 · 68 comments
Closed

Timeshift: buffering / stuttering after seeking in timeshift buffer #319

dkonerma opened this issue Jul 16, 2017 · 68 comments

Comments

@dkonerma
Copy link
Contributor

Hello,,

I'm using Kodi with TVH for many years now... and observed that timeshifting was never stable for me. Currently I'm using the latest Milhouse LibreELEC Leia build (#0715) with almost latest TVH. Bleeding edge though.

Timeshifting is failing completely for me on German channels like ZDF HD and ARD HD: These are 720p, whereas most other HD channels are 1080i and timeshift a lot better, not perfect also.

Example:
When I skip back into the timeshift buffer while watching ZDF HD 720p Live, then - after some seconds timeshifted playback - Kodi starts buffering ("busy circle") for several seconds. Afterwards playback resumes, but heavily stutters every few seconds. I also heave artifacts then, unwatchable. Skipping forward into LiveTV mode fixes the issue immediately.

When I do the very same with e.g. SAT1.HD 1080i, then I also see the buffering, which is annoying. But afterwards all is fine and watchable most of the time.

Here is a log of Kodi while doing the above steps.
http://sprunge.us/QIKE

Issues like these tend to bounce around between Kodi, PVR addon and TVH. Unfortunately Kodi Video folks (VDR promoters) don't really like to help wih TVH issues, IMHO. ;-)

Hope I can start the process to look into these issue here, in the "DMZ" between Kodi and TVH? ;-) Because Kodi with TVH is such a lovely solution... and stable timeshifting is the little remaining open issue before it gets nearly perfect.

Thanks
Dietmar.

@CvH
Copy link

CvH commented Jul 16, 2017

Just want to add that the same happens at windows too and overall it is not really stable to seek at timeshifted playback. Like said this is nothing new, never worked for me regardless of Tvh version. Everything beside pause/play is not use able.

There were timeshift related fixes at Tvh in the past that made it much better, I am not too sure if the current situation isn't maybe due an Tvh server related bug.

@alexhass
Copy link

alexhass commented Dec 5, 2017

Not only if you try to rewind...

Make a recording and than start viewing from start after 5 minutes. Use kabel1 or any other non-hd channel. When advertising start... wind over the advertising... when you reach the end of the recording the picture end with artefacts and sound issues. It never recovers. From logs i see ffmpeg causes out of order packets. The only workaround is stopping play and restarting. This is 100% reproducible.

I have never seen this with openelec v6 or v7. This started with libreelec v8 from my point of view.

@Hotk3y
Copy link

Hotk3y commented Feb 17, 2018

I also have the exact same Problem. Is there any news or possible workaround?

@michaelarnauts
Copy link

I'm seeing the same issue on Kodi 17 and Kodi 18b4, with tvheadend 4.2 and 4.3. Is this a known issue, or are there workarounds?

@nkichukov
Copy link

Hello,
The same is also observed when seeking in an active recording(not the timeshift function, though same concept) while it is still running. Forward seeking with fixed 30 seconds generates faster updates, within 4-6 seconds range, while random seek forward, say 10 minutes forward can take from 60 up to 120 seconds, it varies. If the recording has finished, but playback was started while it was recording, then seeking behaves as described above, even though it no longer records. But if you stop the playback and resume from current position on the fully recorded stream, then seeking becomes instant.

The storage is a CIFS network mount. See attachment dvr and profile configurations for tvheadend settings in use for the recordings. Matroska profile without webm.

This is reproduced on latest builds of kodi, kodi-pvr-hts and tvheadend stable on 32bit GNU/Gentoo running on raspberry pi 3B:

Linux ARM 32-bit version 4.19.6-v7+
pvr.hts v4.4.5 installed
Kodi (18.0-RC4 Git:20181216-922b68cae5-dirty)
tvheadend-4.2.7

pvr-hts-tvheadend.settings.txt

Thank you,
-N

@ghost
Copy link

ghost commented Feb 17, 2019

Last days I've upgraded Kodi from v17 to v18. Kodi and tvheadend are installed on same Lubuntu 18.04.2 system. I was using stable releases, but after getting issues I've changed to unstable release. This issue is still there.
Live TV works fine. But when I skip back the video resumes immediately and after some seconds it's buffering round about 5 seconds, afterthat it resumes playback without issues. Kodi 18 is causing this issue. With v17 everything worked fine.

Software:
Tvheadend = v4.2.8
Kodi = unstable Repo 18.1 (same issue with 18.0)

Hardware:
Core i7 8700t, 8GB RAM, SSD

Together with kodi v18, also this addon was upgraded. I've asked on kodi forum. The user FernetMenta helped me, he says that either tvheadend or this addon is causing my issues.

@jahutchi
Copy link
Contributor

@davincino I have the exact same problems with time shifting in kodi v18 (was fine in krypton).

It's also reported here: https://forum.kodi.tv/showthread.php?tid=325178

@dkonerma
Copy link
Contributor Author

dkonerma commented Feb 20, 2019 via email

@jahutchi
Copy link
Contributor

FTR: I am using pvr.hts v4.4.13 against leia 18.1.

@ksooo
Copy link
Member

ksooo commented Feb 20, 2019

Live TV works fine. But when I skip back the video resumes immediately and after some seconds it's buffering round about 5 seconds, afterthat it resumes playback without issues.

I am using pvr.hts v4.4.13

Latest is 4.4.14, which contains the (potential) fix.

@ksooo
Copy link
Member

ksooo commented Feb 20, 2019

Technically, two different problems:

When I skip back into the timeshift buffer while watching ZDF HD 720p Live, then - after some seconds timeshifted playback - Kodi starts buffering ("busy circle") for several seconds.

Should be fixed in 4.4.14

Afterwards playback resumes, but heavily stutters every few seconds. I also heave artifacts then, unwatchable. Skipping forward into LiveTV mode fixes the issue immediately.

No fix available yet. As far as I know this only happens with 720p channels (like German "ZDF HD" or "Das Erste HD"). There are rumors that this is caused by a tvheadend bug (I-frames handling when timeshifting or the like), but it's only rumors...

@ghost
Copy link

ghost commented Feb 20, 2019

v4.4.14 is included in Ubuntu nightly repo. I will test it later, when I'm at home.

@alexhass
Copy link

alexhass commented Feb 20, 2019

Tvheadend with timeshift enabled is extremly unstable. It crashes with both in memory and to disk mode. I was forced to disable it completly as all at home have seen crashing tvheadend and kodi every few hours. Cvh has confirmed this is known, but not that massive. He told me he has no issues with in memory only, but I cannot confirm this. This issues exists for an long time in libreelec. Aside this is not only ZDF, this ia also on every other private like pro7/rtl/vox and so on.

An htpc without timeshift is really a useless device. I disabled all timeshifting and libreelec run fine for weeks in a row without a reboot. Every few weeks kodi crashes for other unknown reasons and auto restarts.

@ghost
Copy link

ghost commented Feb 20, 2019

I've installed latest version 4.4.14
Now timeshift is working like a charm. Thank you for the fix. Channels at 720p resume also immediately after skip within timeshift, but after some seconds there can be freezer.
It's a known issue from the past and not related to kodi v18 (combined with new pvr.hts).

@ksooo
Copy link
Member

ksooo commented Feb 20, 2019

@alexhass whatever your massive problems with timeshift are, those have other root cause than the problems discussed in this issue. This is about single buffering and continuous micro stuttering with 720p channels after pausing/rewinding.

It makes no sense to use this issue to report all kind of timeshift problems. Please refrain from this and open a separate issue where you describe in detail what your problems are and where you attach a debug log file with pvr.hts trace enabled and service.log form tvheadend. Thanks.

@davincino thanks for reporting back.

@jahutchi
Copy link
Contributor

I've also upgraded to v 4.4.14 and timeshift is working perfectly for me now too. Thanks @ksooo for this, and all the great work you do.

@alexhass
Copy link

@ksooo: yes, it is tvheadend that is crashing. Collecting logs is impossible as tvheadend crashes and than auto restart. When it auto restarts the logfile with crash information is overwritten and therefore lost. No chance to identify the crash. There is no logfile rollover or keep the last logfile in libreelec...

@ksooo
Copy link
Member

ksooo commented Feb 21, 2019

If tvheadend is crashing, then this issue is the wrong place to report this. You should instead open a ticket for tvheadend at tvheadend.org.

@ksooo
Copy link
Member

ksooo commented Feb 21, 2019

@jahutschi thanks for reporting back and for the nice words. You're welcome. 😀

@Jalle19
Copy link
Contributor

Jalle19 commented Feb 26, 2019

Should we consider this closed if things work better in 4.4.14?

@ghost
Copy link

ghost commented Feb 26, 2019

I'm using 4.4.14 and after skip back the system is not buffering anymore. But sometimes (not reproducible) live tv is stuttering after some minutes.
I don't know if the fix is causing this issue. With old stable version, 4.4.12, I've got buffering for some seconds but afterthat live tv worked really fine.

@dkonerma
Copy link
Contributor Author

Like @ksooo wrote, I actually reported two issues here and the really annoying one still stands, unfortunately: the stuttering in Timeshift with 720p channels (after some minutes watching). I'm still testing with the new 4.4.14, tvheadend master.
Would be interesting to get tvh guro @perexg into the discussion... and maybe also videoplayer and streaming guru @FernetMenta. This issue was meant to get the different parties work todether... I'm happy to assisist in testing and delivering traces at any time.

Keeping the fingers crossed to get this finally sorted our. Last major bug in this solution IMHO.

@FernetMenta
Copy link
Contributor

see my comments here: #403

this change is actually not a proper fix because it does not allow the demux buffer to be filled in timeshift mode.

@ksooo
Copy link
Member

ksooo commented Feb 26, 2019

@FernetMenta imo we are talking about two issues with different root cause here.

The buffering after skip back is the one "fixed" with 4.4.14, people confirm the fix working.

The continuous stuttering with only 720p channels after pausing/unpausing live tv is unrelated to the 4.4.14 change. There are people out there claiming they have debugged tvheadend and found that the issue is there. Don't know any more details about that story, sorry.

@dkonerma
Copy link
Contributor Author

btw, also reported to tvh, https://tvheadend.org/issues/4831

@ksooo
Copy link
Member

ksooo commented Feb 26, 2019

Nobody at the tvheadend side seems to care... :-/

@dkonerma
Copy link
Contributor Author

Well, Kai. ;-)
720p issues are not that relevant outside Germany, I'm afraid. And @perexg is the only real tvh dev, being quite busy. That's how it is, unfortunately.
To you my warmest compliments and thanks for your hard work on the Kodi PVR side of things. Very much appreciated...
We are using it daily as our main live TV setup on a dirt cheap China Amlogic box. Works like a charm, with this last real issue open.

Cheers
Dietmar.

@malvinas2
Copy link

Dietmar, you're right that 720p is not that relevant outside Germany, because other countries -as well as private stations in Germany- are using 1080i50. But does this issue not occur in higher resolutions, e.g. the mentioned 1080? I always assumed it is related to higher data rates?

@dkonerma
Copy link
Contributor Author

Nope, 1080i streams are working fine without that issue, at least here with my setup.

@perexg
Copy link
Contributor

perexg commented Feb 26, 2019

There is no 720p problem, but there are probably litttle problems with the specific encoder settings. From my investigation, German 720p channels do really heavy video (H264) frame reordering (up to one or two seconds) to save the bandwidth and it seems that the player code is confused (DTS/PTS). Unfortunately, we are doing a bit ping-pong here, because everytime when I ask for the timing details where things are breaking about the player the answer is - other PVR backends are fine, so find the bug yourself. And no, I don't use kodi in my environment (sorry).

@perexg
Copy link
Contributor

perexg commented Feb 26, 2019

From your explanation, 53738.244000 = 53.738244 seconds, right? The frames for elementary stream 1 (video) are written here to the next layers (htsp server):

2019-02-26 16:39:28.107 [  TRACE]:timeshift: ts 12 pkt out - stream 1 type P pts   53838266 dts   53738244 dur       1800 len  68719 time       55018266
2019-02-26 16:39:28.108 [  TRACE]:timeshift: ts 12 pkt out - stream 1 type B pts   53798266 dts   53758244 dur       1800 len  43327 time       55018266
2019-02-26 16:39:28.108 [  TRACE]:timeshift: ts 12 pkt out - stream 1 type B pts   53778266 dts   53778244 dur       1800 len   2048 time       55018266
2019-02-26 16:39:28.108 [  TRACE]:timeshift: ts 12 pkt out - stream 1 type B pts   53818266 dts   53798244 dur       1800 len    512 time       55018266
2019-02-26 16:39:28.108 [  TRACE]:timeshift: ts 12 pkt out - stream 1 type P pts   53918266 dts   53818244 dur       1800 len  68338 time       55018266
2019-02-26 16:39:28.108 [  TRACE]:timeshift: ts 12 pkt out - stream 1 type B pts   53878266 dts   53838244 dur       1800 len  42986 time       55018266
2019-02-26 16:39:28.108 [  TRACE]:timeshift: ts 12 pkt out - stream 1 type B pts   53858266 dts   53858244 dur       1800 len   2053 time       55018266
2019-02-26 16:39:28.108 [  TRACE]:timeshift: ts 12 pkt out - stream 1 type B pts   53898266 dts   53878244 dur       1800 len    523 time       55018266
2019-02-26 16:39:28.108 [  TRACE]:timeshift: ts 12 pkt out - stream 1 type I pts   53998266 dts   53898244 dur       1800 len 124548 time       55018266
2019-02-26 16:39:28.109 [  TRACE]:timeshift: ts 12 pkt out - stream 1 type B pts   53958266 dts   53918244 dur       1800 len  50528 time       55018266
2019-02-26 16:39:28.109 [  TRACE]:timeshift: ts 12 pkt out - stream 1 type B pts   53938266 dts   53938244 dur       1800 len   2496 time       55018266
2019-02-26 16:39:28.109 [  TRACE]:timeshift: ts 12 pkt out - stream 1 type B pts   53978266 dts   53958244 dur       1800 len     83 time       55018266
2019-02-26 16:39:28.109 [  TRACE]:timeshift: ts 12 pkt out - stream 1 type P pts   54078266 dts   53978244 dur       1800 len  84028 time       55018266
2019-02-26 16:39:28.109 [  TRACE]:timeshift: ts 12 pkt out - stream 1 type B pts   54038266 dts   53998244 dur       1800 len  44386 time       55018266
2019-02-26 16:39:28.109 [  TRACE]:timeshift: ts 12 pkt out - stream 1 type B pts   54018266 dts   54018244 dur       1800 len   2302 time       55018266
2019-02-26 16:39:28.109 [  TRACE]:timeshift: ts 12 pkt out - stream 1 type B pts   54058266 dts   54038244 dur       1800 len     98 time       55018266
2019-02-26 16:39:28.109 [  TRACE]:timeshift: ts 12 pkt out - stream 1 type P pts   54158266 dts   54058244 dur       1800 len  65425 time       55018266
2019-02-26 16:39:28.109 [  TRACE]:timeshift: ts 12 pkt out - stream 1 type B pts   54118266 dts   54078244 dur       1800 len  41938 time       55018266
2019-02-26 16:39:28.109 [  TRACE]:timeshift: ts 12 pkt out - stream 1 type B pts   54098266 dts   54098244 dur       1800 len   2050 time       55018266
2019-02-26 16:39:28.109 [  TRACE]:timeshift: ts 12 pkt out - stream 1 type B pts   54138266 dts   54118244 dur       1800 len    552 time       55018266

So it seems that B-frames are somewhere dropped.

The HTSP protocol has another feature which drops the frames/packets when a threshold is reached and it starts with the B-frames. Could you retest with this patch?

diff --git a/src/htsp_server.c b/src/htsp_server.c
index a7f8a79e0..f1ed9ba1d 100644
--- a/src/htsp_server.c
+++ b/src/htsp_server.c
@@ -4017,7 +4017,7 @@ htsp_stream_deliver(htsp_subscription_t *hs, th_pkt_t *pkt)
     return;
   }
 
-  if(video &&
+  if(0 && video &&
      ((qlen > hs->hs_queue_depth     && pkt->v.pkt_frametype == PKT_B_FRAME) ||
       (qlen > hs->hs_queue_depth * 2 && pkt->v.pkt_frametype == PKT_P_FRAME) ||
       (qlen > hs->hs_queue_depth * 3))) {

Or pvr.hts can set the "queueDepth" parameter in the subscription method. The default value is 500000 which seems to be a bit small for fast forward (speed 400% or more).

@ksooo
Copy link
Member

ksooo commented Feb 26, 2019

Thanks @perexg. What would be a good value for "queueDepth"?

@ksooo
Copy link
Member

ksooo commented Feb 26, 2019

pvr.hts already sets "queueDepth" to 2000000.

https://github.com/kodi-pvr/pvr.hts/blob/master/src/tvheadend/Subscription.cpp#L138
https://github.com/kodi-pvr/pvr.hts/blob/master/src/tvheadend/Subscription.h#L63

Is this still to small? Again, what would be a good value?

@Trujulu
Copy link

Trujulu commented Feb 26, 2019

Thanks @perexg. What would be a good value for "queueDepth"?

What about tvh patch? Does it work?

@ksooo
Copy link
Member

ksooo commented Feb 26, 2019

What about tvh patch? Does it work?

Sorry, bed time here. If you find some time for testing I would be glad to hear from you.

@FernetMenta
Copy link
Contributor

From your explanation, 53738.244000 = 53.738244 seconds, right?

Right. Away from my systems during the day. Can do further tests in the evening. Note that I already run modified versions of Kodi and pvr.hts that have corrects some weaknesses.

@ksooo
Copy link
Member

ksooo commented Feb 27, 2019

Note that I already run modified versions of Kodi and pvr.hts that have corrects some weaknesses.

Would be great if you could PR those fixes, so that all users can benefit. Thanks.

@dkonerma
Copy link
Contributor Author

With a tear in the eye I really feel that the problem is finally fixed. Snief. ;-)

Actually this issue was quite easy to duplicate with my setup. After applying the patch on my tvh server I'm unable to do so... and I tried a lot this morning.

So, folks. Looks like you finally did it. At least I hope so, I'm quite confident.

@perexg
Copy link
Contributor

perexg commented Feb 27, 2019

Looking again to the collected logs, I think that we are missing the "big picture" for the data streaming when the timeshift is activated. The full queue is just a symptom that the server/client sync is broken.

If we look to the tvh logs from comment , this type of operations are done:

Time Operation Speed Video DTS Expected DTS
16:38:15 live play
16:38:41 rewind to start 100% 1.778-2.818 ok
16:38:41 fast forward 400% 2.838-16.298
16:38:48 play 100% 16.338-27.518
16:39:00 rewind to start 100% 0.958-1.938
16:39:00 fast forward 400% 1.958-12.598
16:39:01 play 100% 12.618-12.698
16:39:01 fast forward 400% 12.718-16.298
16:39:01 play 100% 16.318-14.578
16:39:04 fast forward 400% 14.598-21.858
16:39:05 play 100% 21.878-25.458
16:39:09 fast forward 400% 25.478-27.518
16:39:09 play 100% 27.538-36.538
16:39:17 seek to 16.501 100% 16.238-16.298
16:39:17 fast forward 400% 16.338-24.398
16:39:18 play 100% 24.418-25.458
16:39:19 seek to 8.128 100% 6.538-6.858
16:39:19 fast forward 400% 6.878-16.298
16:39:22 seek to 1.866 100% 1.778-2.738
16:39:22 fast forward 400% 2.758-12.698
16:39:23 play 100% 12.718-16.238
16:39:26 seek to 35.820 100% 36.378-36.558
16:39:26 fast forward 400% 36.578-47.658
16:39:28 play 100% 47.678-48.638
16:39:28 fast forward 400% 48.658-55.018
16:39:28 play 100% none
16:39:28 fast forward 400% 55.038-65.538
16:39:28 play 100% 65.558-82.418
16:39:44 end

It looks that the problem is that tvh sends a lot of data to the client when speed=400% (very visible at 16:39:26 and 16:39:28). I am looking further to logs to analyze the issue.

@perexg
Copy link
Contributor

perexg commented Feb 27, 2019

With a tear in the eye I really feel that the problem is finally fixed. Snief. ;-)

Actually this issue was quite easy to duplicate with my setup. After applying the patch on my tvh server I'm unable to do so... and I tried a lot this morning.

So, folks. Looks like you finally did it. At least I hope so, I'm quite confident.

Nope, the patch is just a workaround for the real issue. You may hit other wrong behaviour with it.

@dkonerma
Copy link
Contributor Author

Jaroslav, thank for looking into it.
Concerning "a lot of data to the client when speed=400%"... I'm quite sure that the issue could be duplicated without using seek at all. Just pausing some time and continue playing in timeshift is enough to trigger the stuttering.

@FernetMenta
Copy link
Contributor

@perexg Kodi sets speed to 400 in timeshift mode when it wants to fill its internal buffers. It could read even faster but AFAIK tvh would turn into keyframe mode then.

@perexg
Copy link
Contributor

perexg commented Feb 27, 2019

@perexg Kodi sets speed to 400 in timeshift mode when it wants to fill its internal buffers. It could read even faster but AFAIK tvh would turn into keyframe mode then.

Then it looks like a protocol "misuse", but it explains the behaviour. I found another 100%->400% change and added it to the table. Each speed change sets the new time threshold (the client time), so if the client does 100%-400%-100%-400% rapidly, tvh sends a lot of data (there is build-in one second ahead threshold which is multiplied by the speed, too). There's some delay between data delivery, but it seems that kodi issues the new speed change request before it waits for the new data, thus they are buffered in the tvh (and dropped due to the congestion filter).

Personally, I am not happy with the current timeshift protocol at all (I inherited it from the past and occasionally trying to fix it). It is somewhat difficult to compute the client expectations (how many frames should be sent ahead and especially track the actual client position - from logs, you can see the big desync - the server sends much more data ahead and other parts in tvh starts to protect the total network congestion).

We have several ways to resolve this. The easiest way is to remove the current protocol and use the polled one (which you somewhat simulate), like - I want elementary streams from DTS A to B (or PTS as you like). Done. No states, no double position tracking, easy to implement on the server side. This will move the data flow arbitration completely to the client as you probably expect.

@FernetMenta
Copy link
Contributor

The easiest way is to remove the current protocol and use the polled one

sounds good imo

@ksooo
Copy link
Member

ksooo commented Feb 28, 2019

@perexg @FernetMenta the 720p stuttering also occurs on changes 100->0->100, not only on changes 100->greater 100->100. So, no heavy data traffic needed to run into the problem, imo.

Does this fit into your problem analysis and the derived idea for solution?

This will move the data flow arbitration completely to the client as you probably expect.

Just a headsup that I have no clue how to implement that. Somebody else would need to do this.

@FernetMenta
Copy link
Contributor

I can do pvr.hts once tvh provides this new interface. @perexg do you have time to implement this in the near future?

@FernetMenta
Copy link
Contributor

@ksooo in the meantime you can fix

P8PLATFORM::SyncedBuffer<DemuxPacket*> m_pktBuffer;

pktBuffer silently eats packets received from tvh. By default it can buffer 100 packets which is not much considering that channels like ZDF have at least 2 audio streams + teletext + subtilte + video.

@ksooo
Copy link
Member

ksooo commented Feb 28, 2019

I can do pvr.hts once tvh provides this new interface.

Great.

By default it can buffer 100 packets which is not much considering that channels like ZDF have at least 2 audio streams + teletext + subtilte + video

What would be a good value?

@ksooo
Copy link
Member

ksooo commented Feb 28, 2019

By default it can buffer 100 packets which is not much considering that channels like ZDF have at least 2 audio streams + teletext + subtilte + video

https://github.com/kodi-pvr/pvr.hts/blob/master/src/tvheadend/HTSPDemuxer.cpp#L47 => paket buffer should be large enough already

@FernetMenta
Copy link
Contributor

@ksooo sorry I missed this old school ctor init and a c-cast hack :)

@perexg I increased queueDepth to 10000000 and issues seem to be gone. Still my version that sets speed to 400

@perexg
Copy link
Contributor

perexg commented Feb 28, 2019

@FernetMenta : Please, ensure also that you don't do the 100-400-100-400 transitions quickly (wait for the answer and probably use speed 0 (pause) if there are many packets in the client's queue - you can check the real time for it). As I said, the increased buffer is just a workaround and it affects the memory usage on the server.

@ksooo
Copy link
Member

ksooo commented Feb 28, 2019

sorry I missed this old school ctor init and a c-cast hack :)

Hehe, im not the author of that code in case you wanted to ask... 😀

@moje1977
Copy link

moje1977 commented Jun 3, 2019

Been following this one since i'm experiencing very unrelyable timeshifting with my IPTV setup. Been trying to nail down if this really is the same, but as with @dkonerma i have alot of (swedish) streams in 720p.

I'm running TVHeadend 4.3-1792~g466a01431 (2019-05-20T17:02:26) and KODI client (leia) with latest official pvr.hts.

What i'm wondering is if this patch/fix is included in that build of TVH? Have tried to verify but guess my git-knowledge fails me here :o

@dkonerma
Copy link
Contributor Author

dkonerma commented Jun 3, 2019

ksooo increased queueDepth to 10000000, see
1690ecf
It's in pvr.hts from 4.4.16 onwards.

Cheers
Dietmar.

@moje1977
Copy link

moje1977 commented Jun 3, 2019

Thanks Dietmar!

I think i run 4.4.17. Cannot verify from work now. But that was the workaround part, right? Was there no fix in TVH by @perexg aswell?

@ksooo
Copy link
Member

ksooo commented Jun 3, 2019

No, no fix in TVH so far. Increased queue depth size in pvr.hts seems to solve the problem. At least I have not heard anything else so far.

@moje1977
Copy link

moje1977 commented Jun 3, 2019

Thanks @dkonerma and @ksooo for quick replies. Still issues like described here in my setup. And timeshifting cannot be trusted....

@ksooo
Copy link
Member

ksooo commented Jan 10, 2021

Is this still an issue with latest Kodi v19 nightly builds and tvh 4.3+? If I get no response within two weeks, I will close this issue.

@dkonerma
Copy link
Contributor Author

dkonerma commented Jan 14, 2021 via email

@ksooo ksooo closed this as completed Jan 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests