[mythtv-users] Issues with external tuner script on SA3250HD STB
Greg
greg12866 at nycap.rr.com
Tue Jan 8 00:58:36 UTC 2008
Matt Emmott wrote:
> Hi,
>
> 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)
> type(Video)
> 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
> #!/bin/sh
>
> l=`echo $1 | awk '{print length($0)}'`
>
> if [ $l -eq 3 ]
> then
> sa3250ch -s $1
> fi
>
> if [ $l -eq 2 ]
> then
> sa3250ch -s 0
> sa3250ch -s $1
> fi
>
> if [ $l -eq 1 ]
> then
> sa3250ch -s 0
> sa3250ch -s 0
> sa3250ch -s $1
> fi
>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
I am not sure if this is your problem or not, but when i enter the path
for the script i use to change channels on my 3250 hd i don't add the
leading / like you did in the setup...My path reads
usr/local/MyBlaster.pl . You stated above in mythtvsetup under input
connections -> /dev/video0 S-video 1 -> External channel change command
and entered /usr/local/bin/sa3250first.
^ try leaving that off..
Good luck
More information about the mythtv-users
mailing list