<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 02/16/2015 01:03 PM, Brian J.
      Murrell wrote:<br>
    </div>
    <blockquote cite="mid:1424109804.30329.206.camel@interlinx.bc.ca"
      type="cite">
      Strange. My .mkv files (transcoded with handbrake-cli) don't seem
      to
      have a duration as reported by mediainfo
      '--Inform=Video;%Duration%'.
      b.
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    mediainfo never fails me. Here is an example I just ran:<br>
    <br>
    mediainfo '--Inform=Video;%Duration%' 150208\ S01E01\ Uno.mkv <br>
    4512946<br>
    <br>
    Unfortunately if you put in a wrong file name or name of an invalid
    file, mediainfo just outputs nothing, without reporting an error. I
    suggest double check you are passing in the correct file name.<br>
    <br>
    I have a regular job that runs against recordings, transcodes with
    handbrakeCLI and updates the mythtv database with the names of the
    mkv files. I run mythcommflag and correct the duration as I
    mentioned, after that they all play perfectly from Recordings in the
    front end. Almost all recordings I watch have been transcoded. I
    have very few issues, only minor things like the jump-forward and
    jump-back are sometimes off a little. I did have the issue you
    describe before I added the sql to update the duration.<br>
    <br>
    I don't know why mythcommflag puts in a wrong duration. I suspect it
    is not correctly examining the mkv file for duration.<br>
    <br>
    If you cannot get mediainfo to work, I suggest try delete from
    recordedmarkup where chanid = '$chanid' and starttime =
    '$starttime' and type = '33' and mark = '0'; I think if it does not
    find a duration there it may find the correct duration from the
    file.<br>
    <br>
    Peter<br>
  </body>
</html>