Posts: 4,137
Joined: Jul 2009
Reputation:
48
amet
Retired Team-Kodi Member
Posts: 4,137
just as an info, I run tvheadend without any buffer and caching and it opens channels in 1/3 of the time.
<pvr>
<minvideocachelevel>0</minvideocachelevel>
<minaudiocachelevel>0</minaudiocachelevel>
<maxvideocachelevel>0</maxvideocachelevel>
<maxaudiocachelevel>0</maxaudiocachelevel>
<cacheindvdplayer>false</cacheindvdplayer>
</pvr>
Posts: 258
Joined: Dec 2010
Reputation:
3
2014-01-05, 22:01
(This post was last modified: 2014-01-05, 22:06 by xxxnelly.)
Is that without @Jalle19 changes? or just putting that in advancedsettings.xml?
Posts: 258
Joined: Dec 2010
Reputation:
3
2014-01-06, 00:01
(This post was last modified: 2014-01-06, 00:02 by xxxnelly.)
setting the advance setting has the issue @FernetMenta/@xhaggi suggested where the audio streams are different between switches and require manual audio change.
I think @Jalle19 changes have looked at this fixing this, I will test his change,
Posts: 3,735
Joined: Dec 2010
Reputation:
53
negge
yo guysv7may bd latr tomorroe
Posts: 3,735
Yeah that shouldn't be a problem with this code, I think I fixed it earlier today.
Posts: 6,810
Joined: Jul 2010
Reputation:
198
You risk audio stalls when you disable caching. clocks on server (broadcaster) and client are never 100% in sync. If your audio device is clocked a little faster it's only a matter of time until audio stalls. We intend to implement a mode which observes cache level and resamples audio accordingly. (won't work with passthrough audio). Only in this mode pre-caching can be skipped.
btw: the default value of 10% (of 8 seconds) for audio is only slightly above max cache level of audio engine + audio device. That means once playback gets started almost all cached audio packets go into audio engine.
On my living room system I have set minaudiocachelevel to 15
Posts: 3,735
Joined: Dec 2010
Reputation:
53
negge
yo guysv7may bd latr tomorroe
Posts: 3,735
Sorry, I misunderstood the 8 vs. 0.8 seconds.
I still don't see the point of caching 0.8 seconds of audio if there is no way to increase the buffer once playback has started. Won't that just postpone eventual hiccups? Once 0.8 seconds of audio have been missed (thus not making it into the buffer) you're back in the same situation where you never buffered anything.
Posts: 3,735
Joined: Dec 2010
Reputation:
53
negge
yo guysv7may bd latr tomorroe
Posts: 3,735
Is that really a reasonable scenario to prepare for? And like you said yourself, if you consume more audio packets than you "produce" it is only a matter of time until you're screwed anyway. An initial buffering only delays the inevitable. Do I have this all backwards or what?