|Assignee:||Andreas Öman||% Done:|
At present if I set-up TVheadend to use more then one iptv service concurrently (Record/Play) they start no problem, but due to my bandwidth limitation they pixel/jitter then eventually stop. (bad if it's recording something I wanted) My 6Mb ADSL line is really only good enough for one UDP multicast from my ISP. So it would be a good feature if TVheadend users could have control over their bandwidth setting and thereby not start new iptv services if to much bandwidth will be consumed.
Add a user defined "Max bandwidth" option the iptv set-up, to allow users to define their ISP bandwidth i.e. 3Mb -> Unlimited
Add a user defined "Stream bandwidth" to each iptv service set-up. i.e. 3Mb (~3Mb for SD stream)
As a new iptv service is request for recoding or playback, check the total "Consumed bandwidth" (Sum of "Stream bandwidth" from all other active iptv services) if it's greater then "Max bandwidth" return an error -: "Exceeds Bandwidth Quota" otherwise allow the service to start.
This should be a relatively simply way of controlling the number of iptv service running at a given time and allows flexibility for people with differing bandwidths and iptv stream types.
#3 Updated by Phill Lavender over 1 year ago
First test is bascily that. It only allows one iptv service to be playing/recording. It's not pretty but it's working...ish. (No UI, Recordings/Streams don't abort and continue to re-attempt so continuous logging until stopped but it's a start) The issue with concurrent streams however is that some peolpe may have a mix of HD and SD streams, so they may be able to use, say 2 SD, but only 1 HD. My idea of a Bandwidth is really just a weighting scheme to allow this to be configured and deducted from a total. It's not really true Bandwidth usage.
You can have a look at my GitHub branch 'Bandwidth' if you want to see my work in progress. I'm not really a programmer but I need this feature so learning as I go.