[mythtv-users] prefinput for channels

Stephen Worthington stephen_agent at jsw.gen.nz
Mon Jun 9 05:50:11 UTC 2014


On Sun, 08 Jun 2014 22:11:40 -0400, you wrote:

>On 06/08/2014 07:22 PM, Eyal Lebedinsky wrote:
>> On 06/09/14 08:24, Michael T. Dean wrote:
>>> On 06/08/2014 08:56 AM, Eyal Lebedinsky wrote:
>>>> I have a number of tuners, and some have problems with specific 
>>>> channels. Don't ask.
>>>>
>>>> For this reason in my recording schedule I assign for each program a 
>>>> preferred input
>>>> that is known to be good.
>>>
>>> However, you can have different Video Sources for different inputs
>>>
>>
>> This is probably how I can handle it. However, I will need to create 
>> the Video Sources dynamically
>> because every boot has different problems. And I need to see if I can 
>> reliably identify these
>> problems in a script, because at times a channel *will* tune, slowly, 
>> and deliver a signal with
>> unacceptable (useless) quality. At other times it will fail to tune at 
>> all.
>>
>
>In that case, create an appropriate number of Video Sources and put all 
>channels in all Video Sources, then either hide the channel (setting it 
>to be not visible) if you don't ever want it used or reduce it's 
>priority (if you want it used only as a last resort).  That will be much 
>easier than trying to add and delete channels as things change.
>
>Mike

Might this not be a use for the powerpriority table?  It would be
fairly easy to get a script to set up powerpriority rules that would
boost (or reduce) the priority of specified channels on the tuners
that they work on.  That is what I have on my system, so that each
DVB-T multiplex is scheduled to use any of the multirec tuners of a
specific physical tuner:

mysql> select * from powerpriority\G
*************************** 1. row ***************************
priorityname: TVNZ multiplex
 recpriority: 20
selectclause: channel.mplexid=2 and cardinputid in (1,2,3,4,5)
*************************** 2. row ***************************
priorityname: Mediaworks multiplex
 recpriority: 20
selectclause: channel.mplexid=3 and cardinputid in (11,12,13,14,15)
*************************** 3. row ***************************
priorityname: Kordia multiplex
 recpriority: 20
selectclause: channel.mplexid=4 and cardinputid in (6,7,8,9,10)
3 rows in set (0.00 sec)

That gives a priority boost of 20 for each channel of a multiplex
whenever it is scheduled on one of the tuners specified in the
selectclause.


More information about the mythtv-users mailing list