No subject


Sat Jun 21 03:26:05 UTC 2008


characters like space and semi-colons that are special to the shell and
could affect how user jobs are invoked. This could possibly be related to
the "unable to find executable" error you're seeing in the mythbackend.log
(since semi-colons that are not enclosed in quotes signify end of a command
and the start of the next command in shell). Do the jobs that complete
successfully have any special characters like space or semi-colon in their
recording file names ?

Have you tried enclosing the arguments to the "removecommercials" script in
double quotes ? This would prevent any shell interpretation of the
arguments. Also, from the talk page on the wiki, it looks like the
"removecommercials" script would need the chanid and starttime parameters
for mpeg2 lossless transcoding to work properly. Hence, you might want to
try specifying the user job in mythtv-setup as:

removecommercials "%DIR%" "%FILE%" "%CHANID%" "%STARTTIME%"

The quotes are probably not necessary for any other arguments but %FILE%,
but it makes better sense consistency wise to use the quotes uniformly on
all arguments.

-=Venkat=-

------=_Part_20945_28335767.1218256881654
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div dir="ltr">On Fri, Aug 8, 2008 at 6:35 PM, Bobby Gill <span dir="ltr">&lt;<a href="mailto:bobbygill at rogers.com">bobbygill at rogers.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr">On Fri, Aug 8, 2008 at 5:31 PM,  <span dir="ltr">&lt;<a href="mailto:mythtv at corwyn.net" target="_blank">mythtv at corwyn.net</a>&gt;</span> wrote:<br><div><div class="Wj3C7c"><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



<br>
If you get this working, pls let me know, as I&#39;ve tried and it<br>
doesn&#39;t appear to work.<br>
<div><div></div><div><br>
At 05:20 PM 8/8/2008, Boleslaw Ciesielski wrote:<br>
&gt;Bobby Gill wrote:<br>
&gt; &gt; Thank you, I am here:<br>
&gt; &gt;<br>
&gt; <a href="http://www.mythtv.org/wiki/index.php/Talk:Script_-_RemoveCommercials#honorcutlist_and_mpeg2_lossless_transcoding" target="_blank">http://www.mythtv.org/wiki/index.php/Talk:Script_-_RemoveCommercials#honorcutlist_and_mpeg2_lossless_transcoding</a><br>




&gt; &gt;<br>
&gt; &gt; But this part:<br>
&gt; &gt;<br>
&gt; &gt; &quot;Then the script can be modified as such.<br>
&gt; &gt;<br>
&gt; &gt; CHANID=$3<br>
&gt; &gt; STARTTIME=`echo $4 | sed -e<br>
&gt; &#39;s/\([0-9]\{4\}\)\([0-9]\{2\}\)\([0-9]\{2\}\)\([0-9]\{2\}\)\([0-9]\{2\}\)/\1-\2-\3-\4-\5/&#39;`<br>
&gt; &gt; ....<br>
&gt; &gt; mythtranscode --mpgeg2 --honorcutlist -c $CHANID -s $STARTTIME -o<br>
&gt; $VIDEODIR/$FILENAME.tmp&quot;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Where exactly do I add that into the script? I don&#39;t wanna put it in the<br>
&gt; &gt; wrong place. Thanks for the links!<br>
&gt;<br>
&gt;You should be able to just use the complete script at the end of this page.<br>
&gt;<br>
&gt;Bolek<br>
</div></div></blockquote></div></div></div></div><br>
Okay I&#39;m getting some wierd stuff happening. For some of my recordings,
the Job Queue winds up with successfull completion, but on others it is
giving me an error that it can&#39;t find the executable (the script).<br>
<br>I have the file in /usr/bin, permissions are right:<br><br><span style="font-family: courier new,monospace;">~ # ls -laF /usr/bin/ | grep removecommercials</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">-rwxr-xr-x&nbsp; 1 bobby2 bobby2&nbsp;&nbsp;&nbsp;&nbsp; 2100 2008-08-08 20:51 removecommercials*</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">-rw-r--r--&nbsp; 1 bobby2 bobby2&nbsp;&nbsp;&nbsp;&nbsp; 5641 2008-08-08 20:47 removecommercials~</span><br><br>This is from /var/log/mythbackend.log:<br><br><span style="font-family: courier new,monospace;">2008-08-08
20:54:17.701 JobQueue Error: User Job &#39;removecommercials /media/mythtv
Licence to Grill- Skateboard Dude Party- Maple mustard pork burgers;
chicken smoked pizza; corn on the cob with chili butter.-07.10.08.mpg&#39;
failed, unable to find executable, check your PATH and backend logs.</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">2008-08-08 20:54:17.790 JobQueue: Current PATH: &#39;/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/kde/bin:/usr/bin/perlbin/site:/usr/bin/perlbin/vendor:/usr/bin/perlbin/core:/opt/qt/bin&#39;</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">(END) &quot;</span><br><br>Here&#39;s my path from /etc/profile:<br><br><span style="font-family: courier new,monospace;">export PATH=&quot;/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin</span><br>
<br>I&#39;m kind of intermediate at best with linux so hopefully
someone can clarify what I&#39;ve done wrong or am missing here?? My job in
mythtv-setup is still:<br><br><span style="font-family: courier new,monospace;">removecommercials %DIR% %FILE%</span><br><br>Now not only this, but on the recordings that ran the job
successfully there is no difference; nothing has been cut. I&#39;m using
the entire script from the Talk page as advised by Boleslaw. Is my Job
command above incorrect for this version of the script?? This is
puzzilng :(<br>
<br>Thanks for any help,<br>
Bob<br></blockquote></div><br>From your mythbackend.log, I am seeing that the recording file name has characters like space and semi-colons that are special to the shell and could affect how user jobs are invoked. This could possibly be related to the &quot;unable to find executable&quot; error you&#39;re seeing in the mythbackend.log (since semi-colons that are not enclosed in quotes signify end of a command and the start of the next command in shell). Do the jobs that complete successfully have any special characters like space or semi-colon in their recording file names ?<br>
<br>Have you tried enclosing the arguments to the &quot;removecommercials&quot; script in double quotes ? This would prevent any shell interpretation of the arguments. Also, from the talk page on the wiki, it looks like the &quot;removecommercials&quot; script would need the chanid and starttime parameters for mpeg2 lossless transcoding to work properly. Hence, you might want to try specifying the user job in mythtv-setup as:<br>
<br>removecommercials &quot;%DIR%&quot; &quot;%FILE%&quot; &quot;%CHANID%&quot; &quot;%STARTTIME%&quot;<br><br>The quotes are probably not necessary for any other arguments but %FILE%, but it makes better sense consistency wise to use the quotes uniformly on all arguments.<br>
<br>-=Venkat=-<br></div>

------=_Part_20945_28335767.1218256881654--


More information about the mythtv-users mailing list