I am working on a myth2ipod/portable script with some great help from
a few others. I need some direction as to where to look for an example
of providing progress information so that the backend status on
mythweb and system info can display progress. After poring through
scripts, I am stumped as to where to look for doing this. It would be
great to send a percentage complete, or fps of the encoding process so
the user can monitor this.
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.
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.
Hope that helps,
Brad Benson
_______________________________________________ mythtv-users mailing list [email protected] http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
