I’m using an IPTV service and porting it to Live TV on plex. When selecting a channel on the guide, the tuner (TVHeadend) requires a little more time to kick then Plex allows… So the timeout occurs on Plex and then I select the same channel in the guide again and the channel kicks in… Is there a way to extend Plexs’ time out time at all? Either in settings or a config file? Any help would be appreciated.
I use a modified TVheadend as my backend and the channels load within 5 seconds most of the time.
I have mine modified to randomly select a stream source if you have multiple streams for the same channel. It will randomly switch sources if data is not received within 5 seconds so if a stream dies while watching or fails to initially tune TVheadend will automatically find a new one! Without the modifications TVheadend will try sources in a specific set order every time and die out quicker.
I also use a spawn profile with ffmpeg to transcode the audio stream to a specific format otherwise when switching channel source it will lose sync and get choppy if the audio is different from when it started on the other stream.
Search my name on github if you’re interested. I keep it updated.
There’s also a tweaked linuxserver.io Dockerfile I have on github that integrates streamlink functionality. Which can then be used with a TVheadend spawn profile for some really cool custom stuff.
Thanks for the info kegbeach… Definitely worth bookmarking!
To elaborate further on my setup, I have hls-proxy feeding TVheadend, then finally to plexheadend to Plex…
LOL, yes, it’s quite a process but I hate buffering…
So when you call up a channel on Plex, TVheadend makes the request from hls-proxy which opens the channel and starts downloading a pre-buffer… the problem is, some channels take longer to download a buffer than others and from Plex’s point of view, it’s not fast enough before it times out… Once it times out on Plex, I can select the channel again and it will come through pretty solid…
I’m not sure where I should be looking to correct the issue… TVheadend or Plex to be honest…
So I was able to adjust a setting on Tvheadend; Maximum timeout (seconds) set now to 60 seconds (as just to eliminate tvheadend from the equation)… so now tvheadend will try for 60 seconds and this is plenty of time… Now I’m looking for a setting or config file to edit to extend Plexs’ timeout… For the most part, channels come in just fine on first try… there are still some other channels that take a couple of attempts to come in… If I could extend Plex’s timeout time, I believe this would solve the problem…