On 10/28/05, <b class="gmail_sendername">WiFi Fun</b> <<a href="mailto:wififun@gmail.com">wififun@gmail.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I am working on a myth2ipod/portable script with some great help from<br>a few others. I need some direction as to where to look for an example<br>of providing progress information so that the backend status on<br>mythweb and system info can display progress. After poring through
<br>scripts, I am stumped as to where to look for doing this. It would be<br>great to send a percentage complete, or fps of the encoding process so<br>the user can monitor this.<br></blockquote></div><br>
Some time again I made a few modifications to nuvexport to support
updating of the status when running user jobs. I don't currently
have access to those mods as the machine holding them is currently down
so I can't really give many specifics at the moment. However,
when you view the status of a job in mythweb and it shows percentage
complete, FPS, etc what it is displaying to you is the value in the
comment field of the jobqueue table in mysql. So any status
information you want to pass to other apps should be inserted into
mythconverg.jobqueue.comment for the job it pertains to.<br>
<br>
If the app you're writing is in C++ I believe you will find some
methods to update this field in jobqueue.cpp (don't recall offhand
where that file lives in the source tree). If your app isn't in
C++ then you'll probably have to write your own methods to access the
DB and update that field.<br>
<br>
Hope that helps,<br>
Brad Benson<br>
<br>