[mythtv-users] external channel changing script lag problems

Doug Young goofdad at gmail.com
Sun Oct 7 18:17:26 UTC 2007


On 10/7/07, Joe Auty <joe at netmusician.org> wrote:
> How would I do that? What exactly needs to be entered into the external
> channel change database field to do this? I thought that basically
> channels were piped to the value of this field (which is the path to the
> script)? How can I include the channel variable within this field value?

How about this...use two scripts.  One for myth that takes an arg, and
then calls the second in the background while returning control to
myth, and the second to do the real work.

ie:
Listing of changeexternchan.sh
------------------
#!/bin/bash

reallychangeexternchan.sh $1 &
------------------

where reallychangeexternchan.sh is your script from above.

I actually do something similar, except my "really change external
channel" is a daemon that is always running, listening on a named
pipe, so myth's channel changer simply writes the channel number to
the named pipe and exits, letting the daemon handle the rest.
-- 
Doug


More information about the mythtv-users mailing list