I tried leaving off the leading slash, no luck. I tried leaving off the path altogether and just specifying sa3250first as well, no luck.<br><br>To make sure I&#39;m doing it right, here are my steps every time I make a change:
<br><br>1) Open terminal as root. service mythbackend stop.<br>2) Open terminal as the user mythtv (the default login on the system) and run mythtvsetup.<br>3) Make the changes in input connections, alt-F (finish).<br>4) Back to user root, service mythbackend start
<br>5) Back to user mythtv, mythtvfrontend<br>6) Test, curse, repeat.<br><br>Random questions:<br>Does it matter that the file is owned by root? I&#39;ve confirmed that I can run it from a terminal as mythtv so I&#39;m thinking it&#39;s not a problem. I should be running myttvsetup as the user mythtv, right? And finally, do I need to run mythfilldatabase every time I change something as simple as an external channel script?
<br><br><br><br><div class="gmail_quote">On Jan 7, 2008 7:58 PM, Greg &lt;<a href="mailto:greg12866@nycap.rr.com">greg12866@nycap.rr.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">Matt Emmott wrote:<br>&gt; Hi,<br>&gt;<br>&gt; I&#39;ve given up on recording from Firewire until the next Myth release<br>&gt; comes out, and am attempting to use S-video as my PVR-150&#39;s input. The
<br>&gt; cable box is a Scientific Atlanta SA3250HD. My cable box is outputting<br>&gt; component directly to my TV as well as S-video &amp; composite audio to my<br>&gt; PVR-150 on my Myth 0.20.2 box. It&#39;s kind of a unique setup but the box
<br>&gt; seems to output to both destinations simultaneously without an issue.<br>&gt;<br>&gt; Viewing / recording TV seems to be working - My issue is with changing<br>&gt; the channels via an external script. I&#39;m running a modified SA3250ch
<br>&gt; script that I obtained from this mailing list. I&#39;ll post the script<br>&gt; below. I named it sa3250first during my testing and the name just kind<br>&gt; of stuck. At any rate, I can change the channel just fine via terminal
<br>&gt; while logged in as the user mythtv (the same user that MythTV runs<br>&gt; under) by typing, say, &#39;sa3250first 005&#39; or typing the entire path, as<br>&gt; in /usr/local/bin/sa3250first 0005. The script calls the original
<br>&gt; sa3250ch script which is also in /usr/local/bin and is executable by<br>&gt; user mythtv.<br>&gt;<br>&gt; I&#39;ve set up the external tuner script in mythtvsetup under input<br>&gt; connections -&gt; /dev/video0 S-video 1 -&gt; External channel change
<br>&gt; command and entered /usr/local/bin/sa3250first. The permissions &amp;<br>&gt; details on the file are -rwxr-xr-x 1 root root 218 Dec 13 19:23<br>&gt; sa3250first<br>&gt;<br>&gt; There&#39;s nothing in the /var/log/mythtv/mythbackend.log that seems out
<br>&gt; of the ordinary, it thinks it&#39;s changing channels like so:<br>&gt;<br>&gt; 2008-01-07 17:44:57.828 Finished recording NewsCenter 5 at<br>&gt; Five-Thirty: channel 1003<br>&gt; 2008-01-07 17:48:20.220 ret_pid(4724) child(4724) status(0x0)
<br>&gt; 2008-01-07 17:48:20.222 External Tuning program exited with no error<br>&gt; 2008-01-07 17:48:20.235 Finished recording That &#39;70s Show &quot;Red&#39;s Last<br>&gt; Day&quot;: channel 1006<br>&gt; 2008-01-07 17:48:
20.279 Finished recording That &#39;70s Show &quot;Red&#39;s Last<br>&gt; Day&quot;: channel 1006<br>&gt; 0: start_time: 11.628 duration: 18.201<br>&gt; 1: start_time: 11.599 duration: 18.194<br>&gt; stream: start_time: 128.877
 duration: 202.554 bitrate=5193 kb/s<br>&gt; 2008-01-07 17:48:20.306 AFD: Opened codec 0xa128820, id(MPEG2VIDEO)<br>&gt; type(Video)<br>&gt; 2008-01-07 17:48:20.315 AFD: Opened codec 0xa128cd0, id(MP2) type(Audio)<br>&gt; 2008-01-07 17:48:
20.321 TVRec(4): RingBufferChanged()<br>&gt; 2008-01-07 17:48:20.329 Finished recording That &#39;70s Show &quot;Red&#39;s Last<br>&gt; Day&quot;: channel 1006<br>&gt; 2008-01-07 17:48:51.294 ret_pid(4731) child(4731) status(0x0)
<br>&gt;<br>&gt; Any ideas? Here&#39;s the sa3250first script:<br>&gt;<br>&gt; [mythtv@magic bin]$ cat sa3250first<br>&gt; #!/bin/sh<br>&gt;<br>&gt; l=`echo $1 | awk &#39;{print length($0)}&#39;`<br>&gt;<br>&gt; if [ $l -eq 3 ]
<br>&gt; then<br>&gt; &nbsp;sa3250ch -s $1<br>&gt; fi<br>&gt;<br>&gt; if [ $l -eq 2 ]<br>&gt; then<br>&gt; &nbsp;sa3250ch -s 0<br>&gt; &nbsp;sa3250ch -s $1<br>&gt; fi<br>&gt;<br>&gt; if [ $l -eq 1 ]<br>&gt; then<br>&gt; &nbsp;sa3250ch -s 0<br>
&gt; &nbsp;sa3250ch -s 0<br>&gt; &nbsp;sa3250ch -s $1<br>&gt; fi<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br></div></div>&gt; ------------------------------------------------------------------------<br>&gt;<br>&gt; _______________________________________________
<br>&gt; mythtv-users mailing list<br>&gt; <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>&gt; <a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
</a><br>&gt;<br>I am not sure if this is your problem or not, but when i enter the path<br>for the script i use to change channels on my 3250 hd &nbsp;i don&#39;t add the<br>leading / like you did in the setup...My path reads<br>
usr/local/MyBlaster.pl . You stated &nbsp;above &nbsp;in mythtvsetup under input<br><div class="Ih2E3d">connections -&gt; /dev/video0 S-video 1 -&gt; External channel change command<br>and entered /usr/local/bin/sa3250first.<br><br>
</div>^ try leaving that off..<br><br>Good luck<br><br>_______________________________________________<br>mythtv-users mailing list<br><a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br></blockquote></div><br>