On auto record (autorecs) how are recording resources picked?
Added by Jim Abernathy almost 6 years ago
When I select a TV program to autorec in the EPG tab on the web page at port 9981, I see I can pick "any" for channel, tag, etc. If everything but the name and channel is "any" how does it decide which tag to use?
My setup is only Networks, no TV Adapters in DVB Inputs. I have 2 Networks defined, both HDHR devices but with separate antennas so the channels received are different but overlap a good bit. Each Network is defined by it's own .m3u file to point to the proper channel and http address to point to the right HDHR. I have one epg grabber defined that gets listing for all channels regardless of which HDHR tuner can receive them.
So when I look at my Channels listing I see duplicates in some cases but if the channel is only available on 1 HDHR then it's not duplicated. I use Tags to mark the Network source so Kodi's Guide shows the data correctly by tuner.
So if I have a channel that is only available on 1 HDHR and all the virtual channels(streams) in that tuner are busy, the recording fails, I'm guessing. But if the channel is available on both HDHRs what happens if it tries one source and all virtual channels are busy? Does it try the other HDHR, since the channel is available on both and the Tag is "any"?
I know my setup is a little different, but I can't set the HDHRs up as TV Adapters because they can't be dedicated to TVHeadend. PC's Tablets and phones could also be trying to access the HDHRs.
Replies (7)
RE: On auto record (autorecs) how are recording resources picked? - Added by Em Smith almost 6 years ago
In Config->Stream->Stream Profiles you will see some check boxes (you might need to click "view level expert" in the toolbar).
The ones you want are "restart on error" and "switch to another service".
I think that will work for you (though I have physical adapters on different aerials/satellites so don't know for sure). So "switch" means it will go A (fail) then try B. The "restart" means it will go A (fail), B (fail), retry A...
There is no a priori scheduling. So your first tuner (or highest priority one) will get the first programme recording and the next recording will go to your second tuner. If you happen to have needed the first programme to record on B because it has shared channels with A and your second programme is only on channels on A then, unfortunately, that does not happen.
RE: On auto record (autorecs) how are recording resources picked? - Added by Jim Abernathy almost 6 years ago
Thanks,
I see in steam profile 4 profiles: audio, htsp, matroska, and pass. Not sure which does what or do I need to add one?? I'm not sure if my Network DVB inputs are controlled by streams profiles, but what do I know. I'm a Newbie.
RE: On auto record (autorecs) how are recording resources picked? - Added by Jim Abernathy almost 6 years ago
Em Smith wrote:
There is no a priori scheduling. So your first tuner (or highest priority one) will get the first programme recording and the next recording will go to your second tuner. If you happen to have needed the first programme to record on B because it has shared channels with A and your second programme is only on channels on A then, unfortunately, that does not happen.
So if DVB Input -> Network -> FIrst entry can receiver channel 11.1 and the Second entry can't. I probably need to change the order? Because if there are 2 recordings starting that both can be run on the First entry, that stream will be maxed out. and then if a recording that is for 11.1 it can only go to the First entry tuner which is full and it fails. If I move the 2nd entry to First then it can record everything but 11.1. So it will get the first 2 recordings and the 11.1 recording will still have the 2nd entry tuner open.
Do I have that right?
RE: On auto record (autorecs) how are recording resources picked? - Added by Em Smith almost 6 years ago
I don't know for sure if they built-in streaming (they certainly work for physical adapters), but I think they do.
The default one is "pass" which you can change via Config->Recording->DVR Profiles "Stream Profile". It just means "pass through (without transcoding for a tablet, etc)".
Re: tuning. Yes that's how it should all work. There are a few additional rules such as "try to record on a tuner that already has that channel open", so if you were recording channel 11.1 and someone watched 11.1 live then it should use the existing tuner rather than lock a new tuner, but I suspect that logic would not apply for your m3u tuners since (I suspect) they would all be separate streaming connections.
RE: On auto record (autorecs) how are recording resources picked? - Added by Jim Abernathy almost 6 years ago
I was looking at my DVB Input -> Networks to see how to change the first entry to the second. I found 2 priority setting that seem to be what I want. I changed the second entry to priority 50 for both Priority and Steaming Priority.
I wonder if that would solve my problem?
RE: On auto record (autorecs) how are recording resources picked? - Added by Em Smith almost 6 years ago
That should do the trick for preferring your tuner B to your tuner A.
The "streaming" one is used when connecting/watching live tv via (for example) Kodi. But, I'd still tick the other boxes (such as restart on error).
You might be able to test it out in your environment if you have enough phones/tablets/laptops (running Kodi, or some tvheadend client) and each watching a different channel since recording and watching tv are pretty much the same. That way you'd know if it is working before you hit conflicts.
You can look in the UI "status" screen to see the different client connections.
RE: On auto record (autorecs) how are recording resources picked? - Added by Jim Abernathy almost 6 years ago
Thanks, I think I have enough to get this working.