DLNA Streaming - Specify specific tuner?
#1
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!
Reply
#2
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.
Windows Media Center PVR addon (pvr.wmc) and server backend (ServerWMC)
http://bit.ly/serverwmc
Reply
#3
Given that I already constrain the system to 4/6 tuners it might be nice to avoid WMC throwing recording failure errors due to tuner availability. I don't know if it is applicable, but I believe you can specify the tuner in the URL string using "/tuner#" in the path.

http://hdhomerunaddress:port/tuner#/vchannel#
IE:
http://192.168.1.167:5004/tuner2/v805

see:
https://www.silicondust.com/forum/viewto...a&start=15


To clarify on the 30 minute pausing.. its really more of a stutter / unresponsive scenario. When timers activate, especially when watching livetv on the same channel as the recording (without DLNA) we see some unexpected / undesired behaviors. The system seems a bit disk constrained (4 disk RAID 5) when doing multiple simultaneous recordings and watching livetv on a channel that is recording. I am hoping DLNA and a separate livetv pool / dedicated livetv tuner could eliminate this elegantly, but even right now the DLNA is fantastic compared to the previous method and likely resolves that issue.
Reply
#4
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.
Windows Media Center PVR addon (pvr.wmc) and server backend (ServerWMC)
http://bit.ly/serverwmc
Reply
#5
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.
Reply
#6
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.
Windows Media Center PVR addon (pvr.wmc) and server backend (ServerWMC)
http://bit.ly/serverwmc
Reply
#7
I just released this in preview release 1228
Windows Media Center PVR addon (pvr.wmc) and server backend (ServerWMC)
http://bit.ly/serverwmc
Reply
#8
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?
Reply
#9
Yes, just add a new clientrestriction for the new client.
Windows Media Center PVR addon (pvr.wmc) and server backend (ServerWMC)
http://bit.ly/serverwmc
Reply
#10
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>
Reply
#11
I don't think so. Take a look at the serverwmc change log, i put an example there.
Windows Media Center PVR addon (pvr.wmc) and server backend (ServerWMC)
http://bit.ly/serverwmc
Reply

Logout Mark Read Team Forum Stats Members Help
DLNA Streaming - Specify specific tuner?0