<div dir="ltr">On Fri, Sep 20, 2013 at 8:58 PM, Ian Evans <span dir="ltr"><<a href="mailto:dheianevans@gmail.com" target="_blank">dheianevans@gmail.com</a>></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"><<a href="mailto:jyavenard@gmail.com" target="_blank">jyavenard@gmail.com</a>></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 <<a href="mailto:dheianevans@gmail.com" target="_blank">dheianevans@gmail.com</a>> wrote:<br>
<br>
><br>
> Worked like a charm.<br>
><br>
<br>
but now, that's not the same file, mythcommflag may have no issue with that one</blockquote><div><br></div></div><div>That's true. Is there any way then to debug why mythcommflag doesn't work on the original mp4? <br>
</div><div><br></div></div></div></div></blockquote><div>I've looked at the sample you sent me. (And BTW, if I ask you for the full recording, it'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't try to deal with "NAL units" 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'm not familiar with Handbrake, but perhaps there's a setting that would steer it away from "NAL unit" and toward "Annex B".</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'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. "mythutil --clearseektable --chanid xxx --starttime yyy" doesn'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>