> On Mon, 7 Feb 2005, Nate Carlson wrote:
> > It'd be nice to have a "generic" job scheduler option where you can say 
> > "Run all jobs of this type on this box", and other similar options, but 
> > that may not be as trivial as I'd wish.  :)
> 
> Hmm, how tough would it be to run mythtranscode as a user job instead of 
> using the built-in transcoder? It looks like the user jobs are treated in 
> the same way as commercial flagging (ie, easy to stop from running on 
> backends where you don't want it to).

If you could figure out the command line it runs by looking at the current
transcode call in jobqueue.cpp, you could probably replicate a command line
in one of the user jobs.  If you can confirm that remote transcoding works
if you have access to the recordings directory, then it would be easy to
add the ability to allow the user to specify where to run transcoding jobs
the same way you can do now for flagging and user jobs.  I had the code
in there originally to allow this, but took it out when I thought that
Geoffrey said he wasn't sure if the transcoder would support it.

To get the current command that the JobQueue runs for transcoding, just
search for the following in jobqueue.cpp:

    QString path = "mythtranscode";
    QString command = QString("%1 -c %2 -s %3 -p %4 -d %5").arg(path.ascii())
                      .arg(program_info->chanid)
                      .arg(program_info->recstartts.toString(Qt::ISODate))
                      .arg("autodetect")
                      .arg(useCutlist ? "-l" : "");

You can print out the "command" variable to see exactly what it needs.

Looks like something this the following would work.  You can probably test
this from the command line on your remote machine (substituting in the
proper values of course for the jobqueue substitution strings).

mythtranscode -c %CHANID% -s %STARTTIMEISO% -p autodetect -d -l

The %STARTTIMEISO% is new to CVS as of 2 minutes ago, so you'll have to
be running current CVS to try this.  Previous CVS only supported specifying
the start and end times in YYYYMMDDHHMMSS format.
-- 

Chris

_______________________________________________
mythtv-users mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

Reply via email to