# TVHeadend max timeout

**URL:** <https://forums.plex.tv/t/tvheadend-max-timeout/855961>\
**Category:** Live TV & DVR\
**Tags:** livetv-dvr\
**Created:** [October 7, 2023, 12:56am UTC](https://forums.plex.tv/t/tvheadend-max-timeout/855961 "2023-10-07T00:56:01Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![sixxnet](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@sixxnet](https://forums.plex.tv/u/sixxnet)\
**Post date:** [October 13, 2023, 7:58pm UTC](https://forums.plex.tv/t/tvheadend-max-timeout/855961/14 "2023-10-13T19:58:04Z")

</div>

Just set the timeout to 5 seconds and killall -9 ffmpeg in the terminal will make it switch. If you hover over ‘switch to another service’ it literally says what it does and if it’s worked before then it’s correct. The channels need more than one service assigned. If you see it keep trying the same service over and over again that’s because TVheadend tries services in a predetermined order and Plex is resetting the connection which makes it start over which is why I modded it to randomly select one. I also modded some timeouts in the source code to get it working stable. Use my mod.

> **[GitHub - kegbeach/tvheadend\_mod: Tvheadend is a TV streaming server for Linux...](https://github.com/kegbeach/tvheadend_mod)**
>
> Tvheadend is a TV streaming server for Linux supporting DVB-S, DVB-S2, DVB-C, DVB-T, ATSC, IPTV,SAT\>IP and other formats through the unix pipe as input sources. - GitHub - kegbeach/tvheadend\_mod...

> **[GitHub - kegbeach/docker-tvheadend\_mod-streamlink](https://github.com/kegbeach/docker-tvheadend_mod-streamlink)**
>
> Contribute to kegbeach/docker-tvheadend\_mod-streamlink development by creating an account on GitHub.

Make sure you checkout to the randomization branch in git before compiling tvheadend\_mod OR  
If you’re using docker/podman just build my container and import. Checkout to the streamlink branch in that case before building the container.

> [@Live TV (IPTV Support)](https://forums.plex.tv/t/live-tv-iptv-support/780320):
>
> Really think Plex should include support for IPTV streams as well as physical tuners. What is everyone elses thoughts on this? Before anyone starts spouting about IPTV streams and the legalities of them I’m just suggesting that they support IPTV streams and xml guides as a format. Plex would be no more encouraging illegal tv streams than they are already encouraging downloading illegally sourced movies and tv shows etc. If Plex had IPTV support then maybe more cable/satelite providers might sta…

This thread I go into great detail helping another person get it going along with many others who have contacted me about it.

if you’re scared to use my source then do a diff between TVheadends repo and mine to see the changes or look at my commits.

All the info is here, it works, I use it daily.

---

_[View the full topic](https://forums.plex.tv/t/tvheadend-max-timeout/855961)._
