IPTV max streams behavior
Added by Phil Uithoven almost 10 years ago
Running v3.9.2303~gcde79eb
I'm wondering about the intended behavior for "Max input streams" setting on the Network for IPTV sources.
In order to make HDHOMERUN Prime work with virtual channels for CableCard, I'm accessing them via IPTV using http://[ip]:5004/auto/v[num] - this works surprisingly well. What I'm struggling with is getting TVHeadend to use two separate boxes.
I have defined two networks (relating to two HDHOMERUN boxes, each with three tuners). I've set "Max input streams" on both networks to 3 (for the three tuners).
For each TV channel, I've created two muxes - pointing to the same channel number on the different boxes. Example for channel 702:
Mux named "702" on network1 -> http://[box1]:5004/auto/v702
Mux named "702" on network2 -> http://[box2]:5004/auto/v702
The muxes are scanned and services get created. Then I create a channel named "702" and link to both of the services.
I'd expect to be able to run 6 streams like this - three streams from the first box, then when the fourth stream is called for, it'd see that the max from the first network is filled, and start a stream from the second network. Unfortunately this isn't what's happening. Instead, I'm getting "No input source available" on the fourth stream. Three simultaneous works just fine.
So it looks like it's treating that setting as a total max number of streams across all networks, instead of it being a max streams PER network.
I'm able to verify that streams work from both boxes by changing the priority at the network level to make it prefer one box over the other and can switch back and forth manually.
Any thoughts on the actual intended behavior for max input streams, or thoughts on how to make it spread between the two boxes? Otherwise, I haven't found any other way to make TVHeadend work with the virtual channels for CableCard - if there is a way, I'd love to know.
Replies (3)
RE: IPTV max streams behavior - Added by Phil Uithoven almost 10 years ago
I've decided to handle this by hacking together a script to track which box has available tuners and assign accordingly. Then use just one network with the max streams set to 6. This seems to be working for me now.
It did turn up a small issue with the spawned process being killed with SIGKILL which kills the script with no way to trap it and kill the child processes or a nice way to do cleanup. I've put in a feature request: https://tvheadend.org/issues/2594
RE: IPTV max streams behavior - Added by Peter Brown over 9 years ago
Fixed in this git commit https://github.com/tvheadend/tvheadend/commit/d4160380a26ecae1449ac6af3ac54ff6673b1327
RE: IPTV max streams behavior - Added by Phil Uithoven almost 9 years ago
Peter Brown wrote:
Fixed in this git commit https://github.com/tvheadend/tvheadend/commit/d4160380a26ecae1449ac6af3ac54ff6673b1327
I should have replied to this before now (sorry about that) - this is working well for me. I've switched back away from using my custom script, and have two networks with max streams = 3 like I described above. It'll choose between the two networks as availability allows. Nice!
Thank you.