<p dir="ltr">My jump goes from .5 sec to 1 frame. That means one key frame?</p>
<p dir="ltr">-- Sent from my Droid</p>
<div class="gmail_quote">On Sep 13, 2014 5:36 PM, &quot;Mark Perkins&quot; &lt;<a href="mailto:perkins1724@hotmail.com">perkins1724@hotmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
&gt; On 14 Sep 2014, at 5:29 am, &quot;Justin Alcorn&quot; &lt;<a href="mailto:justin@jalcorn.net">justin@jalcorn.net</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; On Sat, Sep 13, 2014 at 3:05 PM, John Finlay &lt;<a href="mailto:finlay@moeraki.com">finlay@moeraki.com</a>&gt; wrote:<br>
&gt;&gt; ffmpeg will only cut at a keyframe (AFAIK) and will skip to the closest<br>
&gt;&gt; keyframe following the position you specify. Therefore to use the<br>
&gt;&gt; mythfronteend editor to specify cutpoints you&#39;ll have to specify keyframes<br>
&gt;&gt; as the cutpoints around commercials. Unfortunately, the keyframes may not<br>
&gt;&gt; line up with the start and end of commercials - this is what I experience<br>
&gt;&gt; with ATSC MPEG2 streams.<br>
&gt;&gt;<br>
&gt;&gt; An additional problem with the mythfrontend editor is that it uses 1-based<br>
&gt;&gt; counting of frames and ffmpeg uses 0-based so if you take the mythfrontend<br>
&gt;&gt; cutlist of keyframes and use it in ffmpeg you will find that ffmpeg will cut<br>
&gt;&gt; at the following keyframe the one specified. The workaround is to subtract 1<br>
&gt;&gt; from every cutlist frame number.<br>
&gt;&gt;<br>
&gt;&gt; I hacked together a python script as a lossless transcoding Job to use<br>
&gt;&gt; ffmpeg (mythffmpeg) to cut out commercials using the mythfrontend cutlist.<br>
&gt;&gt; It works for MPEG2 but I don&#39;t know about H264 but in theory it should work.<br>
&gt;&gt; Look at the ffmpeg segment muxer<br>
&gt;&gt; (<a href="https://www.ffmpeg.org/ffmpeg-formats.html#segment_002c-stream_005fsegment_002c-ssegment" target="_blank">https://www.ffmpeg.org/ffmpeg-formats.html#segment_002c-stream_005fsegment_002c-ssegment</a>)<br>
&gt;&gt; for documentation.<br>
&gt;<br>
&gt; OK, that info helps.  One problem is that the script I found<br>
&gt; translates the Myth cutlist to seconds and uses that to specify the<br>
&gt; cuts.  I guess I better switch to using frames. I assume there&#39;s some<br>
&gt; way to do that in ffmpeg?<br>
&gt;<br>
&gt; The biggest unanswered question - HOW do I always specify keyframes as<br>
&gt; cutpoints?  I don&#39;t know how to find keyframes.<br>
&gt;<br>
<br>
When using the cutlist editor you can use up/down arrows to change the jump by amount. When I get to where I want the cut I just change to jump by keyframes then move left / right to pick the keyframe I want or suits the best.<br>
<br>
&gt; Sorry, but I&#39;m still pretty new at video.<br>
&gt;<br>
&gt; --<br>
&gt; Justin B. Alcorn<br>
&gt; PGP Fingerprint A36D D691 C5B0 BE15 5A2A AF49 AA1C 372C<br>
&gt; _______________________________________________<br>
&gt; mythtv-users mailing list<br>
&gt; <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
&gt; <a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
&gt; <a href="http://wiki.mythtv.org/Mailing_List_etiquette" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
&gt; MythTV Forums: <a href="https://forum.mythtv.org" target="_blank">https://forum.mythtv.org</a><br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" target="_blank">https://forum.mythtv.org</a><br>
</blockquote></div>