<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<blockquote cite="mid:46538BDE.50106@thirdcontact.com" type="cite">
  <pre wrap="">On 05/22/2007 07:25 PM, Darryl Merritt wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Everytime I think of a good idea, someone has already done it.. so I'll
ask here first.

Is there a script or application that will monitor the jobqueue and start
transcoding jobs on a host that is not running as a mythbackend or
frontend?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Just run mythjobqueue on the server.  Install Myth on the server and 
configure it as a remote backend, but don't run mythbackend, run 
mythjobqueue, instead.
  </pre>
</blockquote>
I'm doing this very thing with a modified version of pdatranscode. I
needed to modify it because the directory supplied by the jobqueue
always refers to the recorded file by it relative path on the original
recording server--i.e. if you store your recordings in /var/video on
the mythbackend, the server that is running the jobs will look for the
recordings in it's own /var/video folder. <br>
<br>
If you only have one mythbackend, just set up a nfs share to the
recording directory with the same folder path as the backend&nbsp; and the
problem is solved. <br>
<br>
In my case I have three backends with storage, so I inserted a find
statement into the script so that it can locate the true path to the
recording:<br>
&nbsp;<br>
# code for adding Find function to pdatranscode<br>
#this goes near the beginning of the script with the other 'use'&nbsp;
statements <br>
use File::Find;<br>
<br>
#I place this section directly after the "normal command-line argument
processing" section<br>
print("Myth says the directory should be $config{dir}...\n");<br>
print("finding file directory...\n");<br>
find (\&amp;wanted, '/mnt/mythtv/tv/', '/mnt/mythtv2/tv/',
'/mnt/mythtv3/tv/');<br>
print "The file was found in $config{dir}\n";<br>
<br>
#this goes in the subroutine section<br>
# Loop to find file path on multiple backends...<br>
sub wanted {<br>
&nbsp;&nbsp;&nbsp; if ($_ eq "$config{file}") {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $config{dir} = "$File::Find::dir";<br>
&nbsp;&nbsp;&nbsp; }<br>
}<br>
<br>
</body>
</html>