[mythtv-users] PDA Transcode: new install feature forpdatranscode.pl

Peter Watkins peterw at tux.org
Thu Dec 21 02:54:07 UTC 2006


Hi, David.

That's my fault, sorry. The install routine tries to find the full
path to pdatranscode.pl. I recently added some tmpdir code to the
script (mainly to enable concurrent transcodes), and called the new
tmpdir routine too soon. Please try the latest version (1.19). When
you run with the --install-job-number, take a look at the output. It
will show you the SQL statements it will use to install the job, and
it should look something like

  UPDATE settings SET data='/usr/local/bin/pdatranscode.pl --file
%FILE% --title "%TITLE%" --subtitle "%SUBTITLE%" --description
"%DESCRIPTION%"' WHERE value='UserJob1';

Here's a diff you could try to apply instead of grabbing a new copy of
the full script, since it looks like you modified the script to add a
'psp' transcoder entry:

--- pdatranscode.pl     2006/12/14 03:17:05     1.18
+++ pdatranscode.pl     2006/12/21 02:41:06
@@ -14,9 +14,9 @@
 # Copyright (c) 2006 Peter Watkins, all rights reserved
 # licensed under the GNU General Public License, version 2
 # http://www.gnu.org/copyleft/gpl.html
 #
-# $Revision: 1.18 $
+# $Revision: 1.19 $

 # INSTALLATION to User Job #1
 #
 # Simplest/fastest:
@@ -400,10 +400,8 @@
   if ( $number !~ m/^[1234]{1}$/ ) {
     die '"--install-job" must be set to "1", "2", "3", or "4"'."\n";
   }
   # make a working dir
-  &makeWorkingDir($config);
-  my $tmpdir = $config->{'tmpdir'};
   my $appPath = $0;
   if ( $appPath =~ m:^(/.*)$: ) {
     # nothing to do; $appPath is fine
   } elsif ( $appPath =~ m:^\./(.*)$: ) {
@@ -416,8 +414,10 @@
     if (! defined($appPath) ) {
       die "cannot find path for $0 -- please run with a full path
(starting with a \"/\")\n";
     }
   }
+  &makeWorkingDir($config);
+  my $tmpdir = $config->{'tmpdir'};
   my $cmd = "$appPath ".join(" ", at installArgs);
   my $name = &mysqlQuote($config->{'install-job-name'});
   my $db = $config->{'install-db-name'};
   my $user = $config->{'install-db-user'};

David Fishburn wrote:

> Peter, I just tried this out, looks like a minor configuration issue, though
> I am not sure what and where to change.
> 
> I ran the install-job-number piece.
> Then in Myth frontend I choose Job Options, Transacode for the PSP.
> 
> The mythbackend.log shows this:
> 2006-12-20 13:52:33.735 JobQueue: Started "Transcode for PSP" for "Kim
> Possible" recorded from channel 1051 at Wed Dec 20 12:13:00 2006
> sh: /tmp/pdatranscode-9425220/pdatranscode.pl: not found
> 2006-12-20 13:52:33.864 JobQueue Error: User Job
> '/tmp/pdatranscode-9425220/pdatranscode.pl --file 1051_20061220121300.mpg
> --title "Kim Possible" --subtitle "" --description "A high-school teen saves
> the world from evil in her spare time." --transcoder "psp"' failed, unable
> to find executable, check your PATH and backend logs.
> 2006-12-20 13:52:33.869 JobQueue: Current PATH:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 191 bytes
Desc: OpenPGP digital signature
Url : http://mythtv.org/pipermail/mythtv-users/attachments/20061220/4f7175f5/attachment.pgp 


More information about the mythtv-users mailing list