Project

General

Profile

Why would Tvheadend wait for a stream to start if recording, but not if it is streaming to VLC?

Added by Sean Micklem almost 2 years ago

I have one stream I use as an IPTV source that takes a while to start (often 30 to 40 seconds but sometimes as much as a minute). I created an IPTV network and a mux under that network specifically for that stream, and set the network's "Maximum timeout (seconds):" value to 120 (2 minutes) just to give it plenty of time to start before Tvheadend times out and gives up. This works fine for recording, but if I try to view the channel live (such as in VLC) Tvheadend still times out and gives up after only 20 seconds. I feel this is a bug and submitted it as such but my issue was closed and marked invalid almost immediately with no explanation. Shouldn't the maximum timeout value for the IPTV network should be honored whether one is recording or viewing live? I don't understand this behavior and would like to know why Tvheadend won't wait.

It has occurred to me that this could be a VLC issue but typically if VLC doesn't see a valid stream at an address it times out almost immediately, not 20 seconds later. If it is VLC, it seems like a strange coincidence, that the default timeout for Tvheadend is exactly the point at which VLC gives up. How is VLC even staying up for that 20 seconds, if there is no stream at all there? If Tvheadend is sending some kind of a minimal "please wait..." type of stream during that period, is there any way to make it do that for more than 20 seconds?

I should probably mention this issue occurs in HTS Tvheadend 4.3-2093~g060df517c running under Ubuntu 22.04.


Replies (1)

RE: Why would Tvheadend wait for a stream to start if recording, but not if it is streaming to VLC? - Added by Dave Pickles almost 2 years ago

The 'Overview' tab on the project website states "Issue reports without debug logs/a stacktrace and instructions on how to reproduce the issue will not be accepted."

Can you supply a set of debug logs illustrating the behaviour you are seeing.

    (1-1/1)