hi peter,<br><br>i&#39;ve just installed pdatranscode.pl onto my mythbox (so i can convert stuff for the psp) and i noticed a small problem (which i just verified with the latest version (1.20) i saw online).<br><br>the options
<br><pre>-lavcopts aglobal=1:vglobal=1:vcodec=mpeg4:vbitrate=300=aac<br><br>should read:<br>-lavcopts aglobal=1:vglobal=1:vcodec=mpeg4:vbitrate=300;acodec=aac<br></pre><br>i&#39;ve not tested the output as its transcoding atm, however when i made that small change, the lavcopts could be parsed without error.. :-)
<br><br>anyways, hth<br>regs<br>Ryszard.<br><br><div><span class="gmail_quote">On 12/12/06, <b class="gmail_sendername">Peter Watkins</b> &lt;<a href="mailto:peterw@tux.org">peterw@tux.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Folks,<br><br>I&#39;ve just uploaded a new version of my &quot;pdatranscode.pl&quot; script that now<br>includes code for handling the MySQL updates needed to set up a User Job.<br>Setting up pdatranscode.pl to run as a User Job now can be as easy as running
<br>&nbsp;&nbsp;pdatranscode.pl --install-job-number 1<br><br>I&#39;ve updated the wiki with more info<br>&nbsp;&nbsp;<a href="http://www.mythtv.org/wiki/index.php/Transcoding_for_the_PDA">http://www.mythtv.org/wiki/index.php/Transcoding_for_the_PDA
</a><br>and the script, as usual, is here:<br>&nbsp;&nbsp;<a href="http://www.tux.org/~peterw/linux/pdatranscode.pl.txt">http://www.tux.org/~peterw/linux/pdatranscode.pl.txt</a><br><br>I&#39;d appreciate any pointers for my mysqlQuote() function -- I deliberately chose
<br>to write my own instead of relying on DBI in order to reduce external dependencies,<br>and I would not be surprised if there&#39;s something wrong with my logic.<br><br>-Peter<br><br>Sample &quot;install&quot; usage:<br>
<br># pdatranscode --install-job-number 1&nbsp;&nbsp;--install-job-name &quot;PDA Transcode (normal)&quot;<br><br>will install as UserJob number 1, &quot;PDA Transcode (normal)&quot; the following command:<br>&nbsp;&nbsp;/usr/local/bin/pdatranscode --file %FILE% --title &quot;%TITLE%&quot; --subtitle &quot;%SUBTITLE%&quot; --description &quot;%DESCRIPTION%&quot;
<br><br>by issuing the following SQL query to &quot;/usr/bin/mysql -h <a href="http://127.0.0.1">127.0.0.1</a> -u mythtv -p &gt;/tmp/pdatranscode-install-5286795/mysql.out&quot;:<br>&nbsp;&nbsp;use mythconverg;<br>&nbsp;&nbsp;# First, we retrieve what&#39;s currently in the database,
<br>&nbsp;&nbsp;# just in case something goes awry.<br>&nbsp;&nbsp;SELECT * FROM settings WHERE value=&#39;UserJob1&#39;;<br>&nbsp;&nbsp;SELECT * FROM settings WHERE value=&#39;UserJobDesc1&#39;;<br>&nbsp;&nbsp;SELECT * FROM settings WHERE value=&#39;JobAllowUserJob1&#39;;
<br>&nbsp;&nbsp;UPDATE settings SET data=&#39;/usr/local/bin/pdatranscode --file %FILE% --title &quot;%TITLE%&quot; --subtitle &quot;%SUBTITLE%&quot; --description<br>&quot;%DESCRIPTION%&quot;&#39; WHERE value=&#39;UserJob1&#39;;<br>
&nbsp;&nbsp;UPDATE settings SET data=&#39;PDA Transcode (normal)&#39; WHERE value=&#39;UserJobDesc1&#39;;<br>&nbsp;&nbsp;UPDATE settings SET data=&#39;1&#39; WHERE value=&#39;JobAllowUserJob1&#39;;<br>&nbsp;&nbsp;# Now see what&#39;s in the database after the UPDATE statements
<br>&nbsp;&nbsp;SELECT * FROM settings WHERE value=&#39;UserJob1&#39;;<br>&nbsp;&nbsp;SELECT * FROM settings WHERE value=&#39;UserJobDesc1&#39;;<br>&nbsp;&nbsp;SELECT * FROM settings WHERE value=&#39;JobAllowUserJob1&#39;;<br><br>Interrupt (press Control-C) to abort, or press Return to continue.
<br>Enter password:<br>It appears that the database update was successful.<br>See /tmp/pdatranscode-install-5286795/mysql.out for MySQL output.<br><br>Please note: you likely need to restart mythbackend to effect any changes.
<br><br><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">
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br><br><br><br></blockquote></div><br>