Posts: 4
Joined: Feb 2016
Reputation:
0
2016-02-02, 19:25
(This post was last modified: 2016-02-02, 19:27 by CLorox.)
Long-time lurker, first time poster. Fisrt, thanks for the tremendous job on ServerWMC. This has really started to address a long-standing gap in my home DVR setup since SageTV was acquired.
As for my question. I just started playing with the DLNA tuner support as LiveTV pauses at each half hour mark were driving WAF way down. I am curious if we can specify a specific tuner for DLNA streaming. I realize we can define the IP address of a DLNA tuner, but I would prefer to dial down to a specific DLNA device or device order. I have two HDHomerun Primes (so 3 tuners each) and I have dedicated 4 of those tuners to WMC. I would like to ensure that the DLNA streaming only grabs from the two un-allocated (by WMC) tuners. If this is not possible, it would work okay at least in my single seated setup to allocate from a single dedicated tuning device.
Does your code already determine what is free / not allocated by WMC, or will it just grab any available tuner and potentially conflict with WMC's tuner pool?
Thanks!
Posts: 3,438
Joined: Aug 2012
Reputation:
91
2016-02-02, 20:37
(This post was last modified: 2016-02-02, 20:50 by krustyreturns.)
Pausing every half hour?
To use dlna with kodi, swmc sends the IP address of the device and the channel number when Kodi requests the channel list, but you can't specify the tuner number within the device (at least from the hdhr docs I have read). You can however specify the tuner device that is used in swmc's settings.
So there is no way to stop live streaming from the 4th tuner you want to give exclusively to wmc. But the devices won't steal tuners from each other, so the only risk you have is wmc not being able to do 4 simultaneous recordings because you are using the 4th tuner for live streaming.
Posts: 3,438
Joined: Aug 2012
Reputation:
91
2016-02-03, 00:52
(This post was last modified: 2016-02-03, 00:53 by krustyreturns.)
That is cool about specifying the tuner number, I swear that is not in the hdhr documentation (but I tend to not read things as closely as I should - this forum attests to that).
It still doesn't solve your problem though unless you are willing to designate only one tuner for live-tv. That's because we only give kodi the channel dlna url once when kodi starts and you can only give it one url per channel. So it would only work if you are only going to run one live stream at a time.
Edit:
Also, in case you don't know, Kodi does not time shift dlna live streams.
Posts: 4
Joined: Feb 2016
Reputation:
0
2016-02-03, 03:17
(This post was last modified: 2016-02-03, 03:19 by CLorox.)
In my case, defining a single tuner would work as this is a mostly single room environment with idle / unallocated tuners. I have two tuners effectively idle 24x7 due to other hardware constraints. However, what works for me is probably a minority use-case for ServerWMC users.
Assuming the client cannot re-check with swmc to see if an idle non-wmc owned tuner is available, swmc could define a pool of non-wmc DLNA tuners for LiveTV and hand out one per connecting client. This might open the door for other enhancements like allowing the injection of non-WMC content from other network tuners (say an IPcam or IPTV or PlayOn stream) into the guide. I digress.. I would imagine that none of these approaches are exactly easy to implement and there would be drawbacks. It would leave tuners allocated and idle when the client isn't watching live streams. In larger implementations (where clients>tuners) it would lead to a situation where there is no available tuner for LiveTV. And of course now swmc would have to manage this mess. Perhaps I am trying to hard to think of ways to divorce responsibilities from WMC.
I am aware that there is no RW/FF time-shifting on the dlna stream (although pause / resume works on 16 RC2.... curious how long that buffer is). Thanks again for hearing me out and once again, kudos on the awesome interface to WMC. If you don't touch a thing it still works beautifully.
Posts: 3,438
Joined: Aug 2012
Reputation:
91
Yeah I can see that assigning a device&tuner to certain clients would work. You could even let wmc have access to all the tuners, just set the tuner order in wmc so that the dlna allocated ones are at the bottom of the priority list. Seems easy enough to implement, I will try to put this in the ever-growing settings file.
Thanks for the kind words.
Posts: 3,438
Joined: Aug 2012
Reputation:
91
I just released this in preview release 1228
Posts: 4
Joined: Feb 2016
Reputation:
0
Woah that was quick, thanks! I just installed the release and it looks like its working perfectly. Our main HTPC is grabbing a non WMC allocated tuner without issue. I might need to give the Prime a static DHCP reservation down the road to avoid losing the hardcoded IP in the config.
If I want to add a reservation for a second client would I just add an additional client entry in the config file?
Posts: 3,438
Joined: Aug 2012
Reputation:
91
Yes, just add a new clientrestriction for the new client.
Posts: 6
Joined: Aug 2015
Reputation:
0
Question in Client restriction. Does this Look Right? Fire TV is 192.168.1.9 - hdhr is 192.168.1.4. I got a config file error and this is what I changed.
<ClientRestriction>
<Client>192.168.1.9</Client>
<RestrictChannels>Unrestricted</RestrictChannels>
<RestrictRecordings>Unrestricted</RestrictRecordings>
<Groups></Groups>
<RestrictDLNA>true</RestrictDLNA>
<DLNA_Tuner>192.168.1.4:5004/tuner2/</DLNA_Tuner>
--- <DLNA_DeviceIP /> --- ? this tag is by it self?
</ClientRestriction>
Posts: 3,438
Joined: Aug 2012
Reputation:
91
I don't think so. Take a look at the serverwmc change log, i put an example there.