Hi,<br><br>I've given up on recording from Firewire until the next Myth release comes out, and am attempting to use S-video as my PVR-150's input. The cable box is a Scientific Atlanta SA3250HD. My cable box is outputting component directly to my TV as well as S-video & composite audio to my PVR-150 on my Myth
0.20.2 box. It's kind of a unique setup but the box seems to output to both destinations simultaneously without an issue.<br><br>Viewing / recording TV seems to be working - My issue is with changing the channels via an external script. I'm running a modified SA3250ch script that I obtained from this mailing list. I'll post the script below. I named it sa3250first during my testing and the name just kind of stuck. At any rate, I can change the channel just fine via terminal while logged in as the user mythtv (the same user that MythTV runs under) by typing, say, 'sa3250first 005' or typing the entire path, as in /usr/local/bin/sa3250first 0005. The script calls the original sa3250ch script which is also in /usr/local/bin and is executable by user mythtv.
<br><br>I've set up the external tuner script in mythtvsetup under input connections -> /dev/video0 S-video 1 -> External channel change command and entered /usr/local/bin/sa3250first. The permissions & details on the file are -rwxr-xr-x 1 root root 218 Dec 13 19:23 sa3250first
<br><br>There's nothing in the /var/log/mythtv/mythbackend.log that seems out of the ordinary, it thinks it's changing channels like so:<br><br>2008-01-07 17:44:57.828 Finished recording NewsCenter 5 at Five-Thirty: channel 1003
<br>2008-01-07 17:48:20.220 ret_pid(4724) child(4724) status(0x0)<br>2008-01-07 17:48:20.222 External Tuning program exited with no error<br>2008-01-07 17:48:20.235 Finished recording That '70s Show "Red's Last Day": channel 1006
<br>2008-01-07 17:48:20.279 Finished recording That '70s Show "Red's Last Day": channel 1006<br>0: start_time: 11.628 duration: 18.201<br>1: start_time: 11.599 duration: 18.194<br>stream: start_time: 128.877
duration: 202.554 bitrate=5193 kb/s<br>2008-01-07 17:48:20.306 AFD: Opened codec 0xa128820, id(MPEG2VIDEO) type(Video)<br>2008-01-07 17:48:20.315 AFD: Opened codec 0xa128cd0, id(MP2) type(Audio)<br>2008-01-07 17:48:20.321
TVRec(4): RingBufferChanged()<br>2008-01-07 17:48:20.329 Finished recording That '70s Show "Red's Last Day": channel 1006<br>2008-01-07 17:48:51.294 ret_pid(4731) child(4731) status(0x0)<br><br>Any ideas? Here's the sa3250first script:
<br><br>[mythtv@magic bin]$ cat sa3250first<br>#!/bin/sh<br><br>l=`echo $1 | awk '{print length($0)}'`<br><br>if [ $l -eq 3 ]<br>then<br> sa3250ch -s $1<br>fi<br><br>if [ $l -eq 2 ]<br>then<br> sa3250ch -s 0<br> sa3250ch -s $1
<br>fi<br><br>if [ $l -eq 1 ]<br>then<br> sa3250ch -s 0<br> sa3250ch -s 0<br> sa3250ch -s $1<br>fi<br><br><br><br><br><br>