<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>I am asking for help getting mythvidexport to work as a Mythtv User Job. So far, it fails every time.</div>
<div>I am using Ubuntu 14.04 with kernel 3.11.0-19-generic (x86_64) and Mythtv 2:0.27.1+fixes.</div>
<div>
<p style="margin-bottom: 0in; line-height: 100%">Mythvidexport.py is installed at /usr/local/bin/. Owners and permissions are</p>
<p style="margin-bottom: 0in; line-height: 100%">usr root:root drwx r-x r-x</p>
<p style="margin-bottom: 0in; line-height: 100%">local root:root drwxr-xr-x</p>
<p style="margin-bottom: 0in; line-height: 100%">bin root:root drwx r-x r-x</p>
<p style="margin-bottom: 0in; line-height: 100%">mythvidexport.py mythtv:mythtv -rwx r-x r-x</p>
<p style="margin-bottom: 0in; line-height: 100%"> </p>
<p style="margin-bottom: 0in; line-height: 100%">Recordings are stored at /home/george/disk12/recordings/. Owners and permissions are</p>
<p style="margin-bottom: 0in; line-height: 100%">home root:root drwx r-x r-x</p>
<p style="margin-bottom: 0in; line-height: 100%">george george:george drwx r-x r-x</p>
<p style="margin-bottom: 0in; line-height: 100%">disk12 george:mythtv drwx rwx rwx</p>
<p style="margin-bottom: 0in; line-height: 100%">recordings mythtv:mythtv drwx rwx r-x</p>
<p style="margin-bottom: 0in; line-height: 100%">Young at Heart mythtv:mythtv -rwx rwx r-x</p>
<p style="margin-bottom: 0in; line-height: 100%"> </p>
<p style="margin-bottom: 0in; line-height: 100%">I tried the following Mythtv User Job definitions:</p>
<p style="margin-bottom: 0in; line-height: 100%">mythvidexport.py %JOBID%</p>
<p style="margin-bottom: 0in; line-height: 100%">mythvidexport.py --nodblog %JOBID%</p>
<p style="margin-bottom: 0in; line-height: 100%">mythvidexport.py %DIR% %FILE%</p>
<p style="margin-bottom: 0in; line-height: 100%">mythvidexport.py %CHANID% %STARTTIME%</p>
<p style="margin-bottom: 0in; line-height: 100%">mythvidexport.py %CHANID% %STARTTIMEUTC%</p>
<p style="margin-bottom: 0in; line-height: 100%"> </p>
<p style="margin-bottom: 0in; line-height: 100%">If I used the JOBID with a mythtv user (sudo su mythtv), the export failed:</p>
<p style="margin-bottom: 0in; line-height: 100%"> </p>
<p style="margin-bottom: 0in; line-height: 100%">george@bob:~$ sudo su mythtv</p>
<p style="margin-bottom: 0in; line-height: 100%">[sudo] password for george:</p>
<p style="margin-bottom: 0in; line-height: 100%">no talloc stackframe at ../source3/param/loadparm.c:4864, leaking memory</p>
<p style="margin-bottom: 0in; line-height: 100%">$ mythvidexport.py 7257</p>
<p style="margin-bottom: 0in; line-height: 100%">2014-06-29 11:07:28.435443 I [7582] mythvidexport.py Using recording -- Young at Heart -</p>
<p style="margin-bottom: 0in; line-height: 100%">2014-06-29 11:07:28.454441 I [7582] mythvidexport.py Performing Movie export with local data.</p>
<p style="margin-bottom: 0in; line-height: 100%">2014-06-29 11:07:28.670058 C [7582] mythvidexport.py</p>
<p style="margin-bottom: 0in; line-height: 100%">Traceback (most recent call last):</p>
<p style="margin-bottom: 0in; line-height: 100%">File "/usr/local/bin/mythvidexport.py", line 410, in main</p>
<p style="margin-bottom: 0in; line-height: 100%">export = VIDEO(opts,int(args[0]))</p>
<p style="margin-bottom: 0in; line-height: 100%">File "/usr/local/bin/mythvidexport.py", line 66, in __init__</p>
<p style="margin-bottom: 0in; line-height: 100%">self.get_meta()</p>
<p style="margin-bottom: 0in; line-height: 100%">File "/usr/local/bin/mythvidexport.py", line 132, in get_meta</p>
<p style="margin-bottom: 0in; line-height: 100%">metadata = grab.grabInetref(self.rec.inetref)</p>
<p style="margin-bottom: 0in; line-height: 100%">File "/usr/lib/python2.7/dist-packages/MythTV/system.py", line 411, in grabInetref</p>
<p style="margin-bottom: 0in; line-height: 100%">return self.command('-D', *args).next()</p>
<p style="margin-bottom: 0in; line-height: 100%">File "/usr/lib/python2.7/dist-packages/MythTV/system.py", line 351, in command</p>
<p style="margin-bottom: 0in; line-height: 100%">return self._processMetadata(super(Grabber, self).command(*args))</p>
<p style="margin-bottom: 0in; line-height: 100%">File "/usr/lib/python2.7/dist-packages/MythTV/system.py", line 137, in command</p>
<p style="margin-bottom: 0in; line-height: 100%">return self._runcmd(cmd)</p>
<p style="margin-bottom: 0in; line-height: 100%">File "/usr/lib/python2.7/dist-packages/MythTV/system.py", line 146, in _runcmd</p>
<p style="margin-bottom: 0in; line-height: 100%">raise MythError(MythError.SYSTEM,self.returncode,cmd,self.stderr)</p>
<p style="margin-bottom: 0in; line-height: 100%">MythError: External system call failed: code 1</p>
<p style="margin-bottom: 0in; line-height: 100%"> </p>
<p style="margin-bottom: 0in; line-height: 100%">$</p>
<p style="margin-bottom: 0in; line-height: 100%"> </p>
<p style="margin-bottom: 0in; line-height: 100%">If I used the JOBID as myself, the export was successful:</p>
<p style="margin-bottom: 0in; line-height: 100%"> </p>
<p style="margin-bottom: 0in; line-height: 100%">george@bob:~$ mythvidexport.py 7277</p>
<p style="margin-bottom: 0in; line-height: 100%">2014-06-30 02:39:19.468522 I [16200] mythvidexport.py Using recording -- Young at Heart -</p>
<p style="margin-bottom: 0in; line-height: 100%">2014-06-30 02:39:19.501484 I [16200] mythvidexport.py Performing Movie export with local data.</p>
<p style="margin-bottom: 0in; line-height: 100%">2014-06-30 02:39:21.048734 I [16200] mythvidexport.py Import complete</p>
<p style="margin-bottom: 0in; line-height: 100%">2014-06-30 02:39:21.050087 I [16200] mythvidexport.py Copying myth://Default@bob/1041_20140411000000.mpg to myth://Videos@bob/Movies/Young at Heart.mpg</p>
<p style="margin-bottom: 0in; line-height: 100%">2014-06-30 02:39:46.530169 I [16200] mythvidexport.py Transfer Complete -- 25 seconds elapsed</p>
<p style="margin-bottom: 0in; line-height: 100%">george@bob:~$</p>
<p style="margin-bottom: 0in; line-height: 100%"> </p>
<p style="margin-bottom: 0in; line-height: 100%"> </p>
</div></div></body></html>