[mythtv-users] pass info for job queue status

2005-10-28 Thread WiFi Fun
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.
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] pass info for job queue status

2005-10-28 Thread Brad Benson
On 10/28/05, WiFi Fun [EMAIL PROTECTED] wrote:
I am working on a myth2ipod/portable script with some great help froma few others. I need some direction as to where to look for an exampleof providing progress information so thatthe backend status onmythweb and system info can display progress. After poring through
scripts, I am stumped as to where to look for doing this. It would begreat to send a percentage complete, or fps of the encoding process sothe 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
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] pass info for job queue status

2005-10-28 Thread WiFi Fun
This is not in C, but accessing the DB is no problem. The key then is
how to find what job item I am. Looking at the jobqueue table it
looks like we have the same chanid, start/end times used to identify
the recorded program the job relates to. This should work. The field
statustime; is this updated by the queue, or where I would stamp when
I update the comment field. Maybe I should leave it alone, and only
update the comment field. Looks pretty straight forward. Now.

On 10/28/05, Brad Benson [EMAIL PROTECTED] wrote:
 On 10/28/05, WiFi Fun [EMAIL PROTECTED] wrote:
  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
 mythtv-users@mythtv.org
 http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users



___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users