[mythtv-users] Issues with external tuner script on SA3250HD STB

Matt Emmott memmott at gmail.com
Mon Jan 7 23:10:43 UTC 2008


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.

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.

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

There's nothing in the /var/log/mythtv/mythbackend.log that seems out of the
ordinary, it thinks it's changing channels like so:

2008-01-07 17:44:57.828 Finished recording NewsCenter 5 at Five-Thirty:
channel 1003
2008-01-07 17:48:20.220 ret_pid(4724) child(4724) status(0x0)
2008-01-07 17:48:20.222 External Tuning program exited with no error
2008-01-07 17:48:20.235 Finished recording That '70s Show "Red's Last Day":
channel 1006
2008-01-07 17:48:20.279 Finished recording That '70s Show "Red's Last Day":
channel 1006
0: start_time: 11.628 duration: 18.201
1: start_time: 11.599 duration: 18.194
stream: start_time: 128.877 duration: 202.554 bitrate=5193 kb/s
2008-01-07 17:48:20.306 AFD: Opened codec 0xa128820, id(MPEG2VIDEO)
2008-01-07 17:48:20.315 AFD: Opened codec 0xa128cd0, id(MP2) type(Audio)
2008-01-07 17:48:20.321 TVRec(4): RingBufferChanged()
2008-01-07 17:48:20.329 Finished recording That '70s Show "Red's Last Day":
channel 1006
2008-01-07 17:48:51.294 ret_pid(4731) child(4731) status(0x0)

Any ideas? Here's the sa3250first script:

[mythtv at magic bin]$ cat sa3250first

l=`echo $1 | awk '{print length($0)}'`

if [ $l -eq 3 ]
 sa3250ch -s $1

if [ $l -eq 2 ]
 sa3250ch -s 0
 sa3250ch -s $1

if [ $l -eq 1 ]
 sa3250ch -s 0
 sa3250ch -s 0
 sa3250ch -s $1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20080107/3a589d3a/attachment.htm 

More information about the mythtv-users mailing list