<br><br><div class="gmail_quote">On Wed, Sep 7, 2011 at 11:18 PM, Raymond Wagner <span dir="ltr"><<a href="mailto:raymond@wagnerrp.com">raymond@wagnerrp.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 9/7/2011 23:44, Ronald Frazier wrote:<br>
>> Does anyone have experience doing this successfully?<br>
>><br>
>> I changed the command on mine to run a custom transcoding script based on<br>
>> the 'transcode wrapper stub' from the wiki. When this runs it spits out an<br>
>> error in the log files:<br>
>><br>
>> 2011-09-05 17:07:53.291 transcode: Transcode Errored: "Between the Lions":<br>
>> Autodetect (exit status 0, job status was "Starting")<br>
>><br>
>> The script however seems to have worked correctly. Does anyone know what<br>
>> may be causing this error?<br>
> Although I haven't actually used it in quite a while, I did setup a<br>
> custom transcoding script under mythtv 0.22. As I recall, the problem<br>
> is that the transcoding job is responsible for updating the job status<br>
> information in the database.<br>
<br>
</div>Funky. Correct, but funky.<br>
<br>
<a href="https://github.com/MythTV/mythtv/blob/master/mythtv/libs/libmythtv/jobqueue.cpp#L2033" target="_blank">https://github.com/MythTV/mythtv/blob/master/mythtv/libs/libmythtv/jobqueue.cpp#L2033</a><br>
<div class="im"><br>
> I also don't know if there is a better, more official way to do it,<br>
> but this has worked fine for me in the past.<br>
<br>
</div>The Job class in the Python bindings provides cleaner access to these<br>
database attributes. It does the same thing, but the SQL is<br>
automatically generated by changes made to the Job object, and it uses a<br>
persistent connect to the database rather than opening a new one for<br>
each command. I've updated the stub on the wiki to perform the<br>
necessary change.<br></blockquote><div><br>Great! I copied in the two lines you added, and if I deciphered the code correctly, I should be specifying the --jobid instead of --chanid %CHANID% --starttime %STARTTIME%.<br>
<br>Is that correct?<br><br>Thanks,<br><br>Jeremy<br></div></div><br>