<div class="gmail_quote">On Wed, Feb 16, 2011 at 5:09 PM, Christopher Kerr <span dir="ltr">&lt;<a href="mailto:mythtv@theseekerr.com">mythtv@theseekerr.com</a>&gt;</span> 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="h5">On Thu, Feb 17, 2011 at 12:00 PM, Robert Houghton &lt;<a href="mailto:robbadler@gmail.com">robbadler@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Feb 16, 2011 at 4:58 PM, Christopher Kerr &lt;<a href="mailto:mythtv@theseekerr.com">mythtv@theseekerr.com</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; On Thu, Feb 17, 2011 at 4:46 AM, Robert Houghton &lt;<a href="mailto:robbadler@gmail.com">robbadler@gmail.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt; &gt; On Wed, Feb 16, 2011 at 7:26 AM, Christopher Kerr<br>
&gt;&gt; &gt; &lt;<a href="mailto:mythtv@theseekerr.com">mythtv@theseekerr.com</a>&gt;<br>
&gt;&gt; &gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Hi all,<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Just trying to get a transcoding job working using the Wrapper Script<br>
&gt;&gt; &gt;&gt; on the wiki, and I seem to be running up against some issues with the<br>
&gt;&gt; &gt;&gt; Python bindings:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Traceback (most recent call last):<br>
&gt;&gt; &gt;&gt;  File &quot;./x264_inplace.py&quot;, line 96, in &lt;module&gt;<br>
&gt;&gt; &gt;&gt;    main()<br>
&gt;&gt; &gt;&gt;  File &quot;./x264_inplace.py&quot;, line 88, in main<br>
&gt;&gt; &gt;&gt;    runjob(jobid=args[0])<br>
&gt;&gt; &gt;&gt;  File &quot;./x264_inplace.py&quot;, line 24, in runjob<br>
&gt;&gt; &gt;&gt;    sg = findfile(rec.basename, rec.storagegroup, db=db)<br>
&gt;&gt; &gt;&gt; NameError: global name &#39;findfile&#39; is not defined<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; The script is marked as 0.24 compatible, so I&#39;d appreciate any help<br>
&gt;&gt; &gt;&gt; anyone can offer with getting it working!<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Regards,<br>
&gt;&gt; &gt;&gt; Chris<br>
&gt;&gt; &gt;&gt; _______________________________________________<br>
&gt;&gt; &gt;&gt; mythtv-users mailing list<br>
&gt;&gt; &gt;&gt; <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
&gt;&gt; &gt;&gt; <a href="http://mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/mailman/listinfo/mythtv-users</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Chris,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I recently added a perl script to the wiki that does x264 transcoding.<br>
&gt;&gt; &gt; It<br>
&gt;&gt; &gt; would be trivial to have this script replace the recording file instead<br>
&gt;&gt; &gt; adding to the sql<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; <a href="http://www.mythtv.org/wiki/High_Quality_Transcode" target="_blank">http://www.mythtv.org/wiki/High_Quality_Transcode</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; If you get your script working, maybe post it to the wiki as well for<br>
&gt;&gt; &gt; comparison?<br>
&gt;&gt;<br>
&gt;&gt; Robert,<br>
&gt;&gt;<br>
&gt;&gt; I&#39;ve been using your script, but I&#39;m not particularly fluent in Perl,<br>
&gt;&gt; so changing anything more than the exposed parameters is a bit beyond<br>
&gt;&gt; me. I&#39;ve tweaked it to suit my needs (forced channels to stereo, used<br>
&gt;&gt; a constant rate factor instead of an average bit rate) and it&#39;s been<br>
&gt;&gt; working well, but I&#39;m not confident that I understand it well enough<br>
&gt;&gt; to go changing the bits that directly manipulate the database.<br>
&gt;&gt;<br>
&gt;&gt; - Chris<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; mythtv-users mailing list<br>
&gt;&gt; <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
&gt;&gt; <a href="http://mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/mailman/listinfo/mythtv-users</a><br>
&gt;<br>
&gt; Chris,<br>
&gt;<br>
&gt; I will put in a flag to do in-place transcode in the near future. Maybe I&#39;ll<br>
&gt; even add comments :)<br>
<br>
</div></div>Oh, and is it possible to have it keep the commercial flagging data<br>
and the original recording thumbnail? At the moment I&#39;m always getting<br>
the first frame of the recording as the thumbnail, which is invariably<br>
in the credits of the previous show.<br>
<br>
- Chris<br>
<div><div></div><div class="h5">_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/mailman/listinfo/mythtv-users</a><br>
</div></div></blockquote></div><br><br>In order of request:<br>1) The commercial flagging may no longer be relevant on the transcode, as frame count will most likely have changed during the transcode. I will test this, and see if I need to clear skiplist/cutlist <br>
2) If the transcode is done in-place, then you will get the original preview image, assuming one has been generated for that recording.<br><br>-Robert<br>