<div class="gmail_quote">On Wed, Feb 16, 2011 at 5:09 PM, Christopher Kerr <span dir="ltr"><<a href="mailto:mythtv@theseekerr.com">mythtv@theseekerr.com</a>></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 <<a href="mailto:robbadler@gmail.com">robbadler@gmail.com</a>> wrote:<br>
><br>
><br>
> On Wed, Feb 16, 2011 at 4:58 PM, Christopher Kerr <<a href="mailto:mythtv@theseekerr.com">mythtv@theseekerr.com</a>><br>
> wrote:<br>
>><br>
>> On Thu, Feb 17, 2011 at 4:46 AM, Robert Houghton <<a href="mailto:robbadler@gmail.com">robbadler@gmail.com</a>><br>
>> wrote:<br>
>> > On Wed, Feb 16, 2011 at 7:26 AM, Christopher Kerr<br>
>> > <<a href="mailto:mythtv@theseekerr.com">mythtv@theseekerr.com</a>><br>
>> > wrote:<br>
>> >><br>
>> >> Hi all,<br>
>> >><br>
>> >> Just trying to get a transcoding job working using the Wrapper Script<br>
>> >> on the wiki, and I seem to be running up against some issues with the<br>
>> >> Python bindings:<br>
>> >><br>
>> >> Traceback (most recent call last):<br>
>> >> File "./x264_inplace.py", line 96, in <module><br>
>> >> main()<br>
>> >> File "./x264_inplace.py", line 88, in main<br>
>> >> runjob(jobid=args[0])<br>
>> >> File "./x264_inplace.py", line 24, in runjob<br>
>> >> sg = findfile(rec.basename, rec.storagegroup, db=db)<br>
>> >> NameError: global name 'findfile' is not defined<br>
>> >><br>
>> >><br>
>> >><br>
>> >> The script is marked as 0.24 compatible, so I'd appreciate any help<br>
>> >> anyone can offer with getting it working!<br>
>> >><br>
>> >> Regards,<br>
>> >> Chris<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/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/mailman/listinfo/mythtv-users</a><br>
>> ><br>
>> > Chris,<br>
>> ><br>
>> > I recently added a perl script to the wiki that does x264 transcoding.<br>
>> > It<br>
>> > would be trivial to have this script replace the recording file instead<br>
>> > adding to the sql<br>
>> ><br>
>> > <a href="http://www.mythtv.org/wiki/High_Quality_Transcode" target="_blank">http://www.mythtv.org/wiki/High_Quality_Transcode</a><br>
>> ><br>
>> > If you get your script working, maybe post it to the wiki as well for<br>
>> > comparison?<br>
>><br>
>> Robert,<br>
>><br>
>> I've been using your script, but I'm not particularly fluent in Perl,<br>
>> so changing anything more than the exposed parameters is a bit beyond<br>
>> me. I've tweaked it to suit my needs (forced channels to stereo, used<br>
>> a constant rate factor instead of an average bit rate) and it's been<br>
>> working well, but I'm not confident that I understand it well enough<br>
>> to go changing the bits that directly manipulate the database.<br>
>><br>
>> - Chris<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/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/mailman/listinfo/mythtv-users</a><br>
><br>
> Chris,<br>
><br>
> I will put in a flag to do in-place transcode in the near future. Maybe I'll<br>
> 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'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>