<div dir="ltr">On Fri, Sep 20, 2013 at 8:58 PM, Ian Evans <span dir="ltr">&lt;<a href="mailto:dheianevans@gmail.com" target="_blank">dheianevans@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">
<div>On Fri, Sep 20, 2013 at 9:45 PM, Jean-Yves Avenard <span dir="ltr">&lt;<a href="mailto:jyavenard@gmail.com" target="_blank">jyavenard@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">On 21 September 2013 11:41, Ian Evans &lt;<a href="mailto:dheianevans@gmail.com" target="_blank">dheianevans@gmail.com</a>&gt; wrote:<br>



<br>
&gt;<br>
&gt; Worked like a charm.<br>
&gt;<br>
<br>
but now, that&#39;s not the same file, mythcommflag may have no issue with that one</blockquote><div><br></div></div><div>That&#39;s true. Is there any way then to debug why mythcommflag doesn&#39;t work on the original mp4? <br>


</div><div><br></div></div></div></div></blockquote><div>I&#39;ve looked at the sample you sent me.  (And BTW, if I ask you for the full recording, it&#39;s only because I want to learn more about cassowaries. :)  ) </div>

</div><br></div><div class="gmail_extra">For reasons beyond my understanding, the MythTV player (which is used for mythcommflag) doesn&#39;t try to deal with &quot;NAL units&quot; in keyframe detection (see <a href="https://github.com/MythTV/mythtv/blob/master/mythtv/libs/libmythtv/avformatdecoder.cpp#L3126">https://github.com/MythTV/mythtv/blob/master/mythtv/libs/libmythtv/avformatdecoder.cpp#L3126</a>), so for videos encoded this way, it will fail to find any keyframes.  I&#39;m not familiar with Handbrake, but perhaps there&#39;s a setting that would steer it away from &quot;NAL unit&quot; and toward &quot;Annex B&quot;.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">With that said, this kind of file should not require a seektable for seeking or for duration display.  Your 3-minute sample plays and seeks perfectly on my system.  So I&#39;m thinking that maybe you have extra markup in the database from the original recording file.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Try copying the file from that 3-minute sample, or from the original recording, into your Video Gallery directory, then do a rescan from the Video Gallery, and see if the file plays correctly.  If it does, this suggests incorrect markup for the recording.  &quot;mythutil --clearseektable --chanid xxx --starttime yyy&quot; doesn&#39;t currently clear this particularly markup, so to continue testing, one would need to directly execute a DB query to clear the extra markup.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Jim</div></div>