<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <div class="moz-cite-prefix">On 06/30/2014 12:51 AM, george seymour
      wrote:<br>
    </div>
    <blockquote
cite="mid:trinity-19c71706-5f5f-43f9-89ea-079ed7a4048f-1404114716911@3capp-mailcom-lxa07"
      type="cite">
      <div style="font-family: Verdana;font-size: 12.0px;">
        <div>I am asking for help getting mythvidexport to work as a
          Mythtv User Job.&nbsp; 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%">&nbsp;</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%">&nbsp;</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%">&nbsp;</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%">&nbsp;</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%">&nbsp;</p>
          <p style="margin-bottom: 0in; line-height: 100%">$</p>
          <p style="margin-bottom: 0in; line-height: 100%">&nbsp;</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%">&nbsp;</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
            <a class="moz-txt-link-abbreviated" href="mailto:myth://Default@bob/1041_20140411000000.mpg">myth://Default@bob/1041_20140411000000.mpg</a> 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>
        </div>
      </div>
    </blockquote>
    ***<br>
    I've had basically the same problem and others on this mailing list
    pointed me to metadata issues as the likely culprit. They were
    right. I can now predict fairly accurately when mythvidexport will
    succeed and when it will fail by looking at a particular show's
    description. If it is a regular show that does not have
    season/episode data, mythvidexport will fail. If it has a
    description that doesn't match what is in thetvdb.com then
    mythvidexport will fail. The failure mode is the External system
    call failed. That's far from a complete list of failure
    possibilities but those two are fairly common. Movies are a
    different issue though, at least for me, I have no reliable means of
    predicting which ones will succeed and which will fail. I've had
    several cases where mythvidexport failed but after I copied the file
    into the video library manually and named it according to the movie
    title Mythtv picked up the metadata with no problem.<br>
    <br>
    mike<br>
    <br>
    <br>
  </body>
</html>