﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	mlocked
6636	external channel changer not getting channel number passed in	dominique@…	Isaac Richards	"I am having trouble using an external channel changer script from within mythtv.  

The channel changer works perfectly fine when run manually from the command line but fails when run by mythtv.  The error that I get is that the channel number, which is suppose to passed to the script as $1 is not being passed to the script.

running mythtv backend in a verbose mode using the following command:

mythbackend --verbose channel 

And this is the output I receive (also attached):

2009-06-16 19:36:57.456 Seem to be woken up by USER
2009-06-16 19:37:09.309 MainServer::HandleAnnounce Monitor
2009-06-16 19:37:09.309 adding: pvr as a client (events: 0)
2009-06-16 19:37:09.309 MainServer::HandleAnnounce Monitor
2009-06-16 19:37:09.310 adding: pvr as a client (events: 1)
2009-06-16 19:37:09.315 MainServer::HandleAnnounce Playback
2009-06-16 19:37:09.315 adding: pvr as a client (events: 0)
2009-06-16 19:37:09.318 TVRec(1): Changing from None to WatchingLiveTV
2009-06-16 19:37:09.318 TVRec(1): Start channel: 103.
2009-06-16 19:37:09.322 TVRec(1): HW Tuner: 1->1
2009-06-16 19:37:09.323 Channel(/dev/video0): Device name 'Hauppauge WinTV PVR-150' driver 'ivtv'.
2009-06-16 19:37:09.343 ChannelBase(1): Input #1: 'Composite 1' schan(103) sourceid(1) ccid(1)
2009-06-16 19:37:09.343 ChannelBase(1): Current Input #1: 'Composite 1'
2009-06-16 19:37:09.343 Global TVFormat Setting 'PAL-I'
2009-06-16 19:37:09.344 Channel(/dev/video0): Input #1: 'Composite 1' schan(103) tun() v4l1(PAL) v4l2(PAL-I)
2009-06-16 19:37:09.344 Channel(/dev/video0): SetFormat(Default) fmt(PAL-I) input(1)
2009-06-16 19:37:09.344 Channel(/dev/video0)::SwitchToInput(in 1, '')
2009-06-16 19:37:09.346 Channel(/dev/video0): SetInputAndFormat(1, PAL-I) (v4l v2)
2009-06-16 19:37:09.346 Channel(/dev/video0): SetChannelByString(103)
2009-06-16 19:37:09.349 Channel(/dev/video0): SetFormat(Default) fmt(PAL-I) input(1)
2009-06-16 19:37:09.349 External channel change: /usr/local/bin/chan_changer.sh
2009-06-16 19:37:09.350 Waiting for External Tuning program to exit
2009-06-16 19:37:10.351 ret_pid(25469) child(25469) status(0x100)
2009-06-16 19:37:10.351 External Tuning program no longer running
2009-06-16 19:37:10.351 ChannelBase: external tuning program exited with error 1
2009-06-16 19:37:10.351 TVRec(1) Error: Failed to set channel to 103. Reverting to kState_None
2009-06-16 19:37:10.351 TVRec(1): Changing from WatchingLiveTV to None 

Please help :( as without this I can't use the system at all."	defect	closed	blocker	unknown	MythTV - General	unknown	medium	invalid			0
