[mythtv-users] Myth not calling channel change script

Kye Macdonald kyemacdonald at gmail.com
Sun Aug 17 04:47:19 UTC 2008


On Sun, Aug 17, 2008 at 2:07 PM, Nick Morrott <knowledgejunkie at gmail.com> wrote:
>
> On 17/08/2008, Kye Macdonald <kyemacdonald at gmail.com> wrote:
> >
> >  First install I had all the channels installed and worked with guide
> >  etc.  Split into two groups of Free to Air and Foxtel.  Channel changing
> >  works fine on the DVB-T half of the card and it moves from Digital or
> >  Analogue fine.  Analogue input is fine and I have sound and picture from
> >  the foxtel STU.
> >
> >  My only problem is that I cannot get Myth to call the script to send the
> >  signal through the IR Blaster.  Command line works fine - ie "irsend
> >  send_once sky select" works fine as does the script.
> >
> >  #!/bin/sh
> >  REMOTE_NAME=sky
> >  /usr/bin/irsend SEND_ONCE $REMOTE_NAME select
> >  for digit in $(echo $1 | sed -e 's/./& /g'); do
> >  /usr/bin/irsend SEND_ONCE $REMOTE_NAME $digit
> >  done
> >  /usr/bin/irsend SEND_ONCE $REMOTE_NAME select
> >
> >  I have it sending the select before and after to remove the chance of a
> >  2 digit entry forcing a wait on the foxtel box.  It runs fine from
> >  terminal either with a channel supplied or not.
> >
> >  To ensure its not a lirc problem I have also tried this script in its place
> >
> >  #!/bin/sh
> >  date >> ~/test_script_output.log
> >
> >  But that file is never created...
> >
> >  permissions on the script are
> >
> >  -rwxrwxrwx 1 root root 217 2008-08-17 11:55 change_foxtel2.sh
> >
> >  When I run Mythfrontend with full verbose this is all I can find
> >  regarding the channel change.
>
> Channel tuning happens through mythbackend, so check the mythbackend
> logfile for related messages. A successful channel change via a script
> should look something like:
>
> 2008-08-16 13:47:02.217 External Tuning program exited with no error
>
> Ensure you put the full path to the tuning script in the external
> channel change script configuration item for the analogue videosource,
> and ensure that all channels on that videosource have the correct
> freqid (you can verify this using the channel editor).
>
> Extra verbose logging of mythbackend with the channel and record
> targets may reveal additional info.
>
>
> Nick Morrott
>
> MythTV Official wiki:
> http://mythtv.org/wiki/
> MythTV users list archive:
> http://www.gossamer-threads.com/lists/mythtv/users
>
> "An investment in knowledge always pays the best interest." - Benjamin Franklin
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

Ok - these are the errors I have in the mythbackend log file.  All the
channels have the same data in channel number and frequency ID.


2008-08-17 13:26:20.854 TVRec(1): Changing from None to WatchingLiveTV
2008-08-17 13:26:20.867 TVRec(1): HW Tuner: 1->1
2008-08-17 13:26:20.886 Channel(/dev/video0) Error:
GetCurrentChannelNum(108): Failed to find Channel
2008-08-17 13:26:20.886 Channel(/dev/video0)::TuneTo(108): Error,
failed to find channel.
2008-08-17 13:26:20.887 TVRec(1) Error: Failed to set channel to 108.
2008-08-17 13:26:20.911 TVRec(1) Error: GetProgramRingBufferForLiveTV()
			ProgramInfo is invalid.
ProgramInfo: channame() startts(Sun Aug 17 13:26:20 2008) endts(Sun
Aug 17 13:26:20 2008)
             recstartts(Sun Aug 17 13:26:20 2008) recendts(Sun Aug 17
13:26:20 2008)
             title()
2008-08-17 13:26:21.978 NVR(/dev/video0): Unknown video codec.  Please
go into the TV Settings, Recording Profiles and setup the four
'Software Encoders' profiles.  Assuming RTjpeg for now.
2008-08-17 13:26:21.980 NVR(/dev/video0) Error: Unknown audio codec
2008-08-17 13:26:22.007 AutoExpire: CalcParams(): Max required Free
Space: 2.0 GB w/freq: 15 min
2008-08-17 13:26:35.219 TVRec(1): HW Tuner: 1->1
2008-08-17 13:26:35.251 Channel(/dev/video0) Error:
GetCurrentChannelNum(108): Failed to find Channel
2008-08-17 13:26:35.253 Channel(/dev/video0)::TuneTo(108): Error,
failed to find channel.
2008-08-17 13:26:35.253 TVRec(1) Error: Failed to set channel to 101.
2008-08-17 13:26:35.260 Finished recording : channel 4294967295
2008-08-17 13:26:35.264 TVRec(1) Error: GetProgramRingBufferForLiveTV()
			ProgramInfo is invalid.
ProgramInfo: channame() startts(Sun Aug 17 13:26:35 2008) endts(Sun
Aug 17 13:26:35 2008)
             recstartts(Sun Aug 17 13:26:35 2008) recendts(Sun Aug 17
13:26:35 2008)
             title()
2008-08-17 13:26:36.297 Finished recording : channel 4294967295


More information about the mythtv-users mailing list