[mythtv-users] Channel change script parameters

Michael T. Dean mtdean at thirdcontact.com
Fri Feb 12 23:36:37 UTC 2010


On 02/12/2010 06:25 PM, Nick Morrott wrote:
> On 12 February 2010 22:33, Nick Rout wrote:
>    
>> What does myth pass to the channel change script and in what order?
>>      
> A string containing channel.freqid for the channel it is attempting to
> change to.
>    

Where the freqid can be any value you like--up to 10 characters--if 
you're using an external channel change script.  It's a user-editable 
field available in the various channel editors (mythtv-setup, MythWeb, 
and probably mythfrontend).

So, basically create unique freqid's for each of your channels (that 
need not have any relationship to channel numbers) and define the 
mapping between those ID's and the commands your script needs to send to 
tune the identified channel.

The approach you use could be anything from encoding information into 
the freqid to having a lookup table in your channel change script or 
something.

Though note that if you're just trying to pass a single extra argument 
to the script that specifies which capture card is in use so it can tune 
the appropriate STB, you can do that by just specifying the arg at the 
end of the channel change script setting, i.e. "change_channel stb1" for 
the setting would result in Myth calling "change_channel stb1 <freqid>".

Mike


More information about the mythtv-users mailing list