<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><br><br><br></div><div><br>On 9 Jan 2016, at 6:17 am, Jim Abernathy <<a href="mailto:jfabernathy@outlook.com">jfabernathy@outlook.com</a>> wrote:<br><br></div><blockquote type="cite"><div>

<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr">







<p class="p1"><span class="s1">I’m trying to minimize the number of steps I have to take to transcode recorded TV from MPEG2 to h.264.  Using the subject script posted on the Mythtv wiki I can do this but with a catch.  </span></p>
<p class="p2"><span class="s1"></span><br></p>
<p class="p1"><span class="s1">My steps that work are:</span></p>
<p class="p1"><span class="s1">1.  auto-detect commercials after recording</span></p>
<p class="p1"><span class="s1">2.  view recording in mythfrontend and import commercial flags.</span></p>
<p class="p1"><span class="s1">3.  Make additional edits to add and move cuts.</span></p>
<p class="p1"><span class="s1">4. save cut list.</span></p>
<p class="p1"><span class="s1">5. run the transcode job that keeps the file MPEG2, but strips footage based on cut list.</span></p>
<p class="p1"><span class="s1">6. run the transcode-h264 user job</span></p>
<p class="p2"><span class="s1"></span><br></p>
<p class="p1"><span class="s1">If I don’t run step 5, the file produced by step 6 has the cuts produced by commercial flagging, but not my manual edits saved to the cut list.</span></p>
<p class="p2"><span class="s1"></span><br></p>
<p class="p1"><span class="s1">Are the Commercial Flags in the database not updated when I manually adds cuts and save the cut list? </span></p>
<p class="p2"><span class="s1"></span><br></p>
<p class="p1"><span class="s1">I think I have the script configured to leave the commercial flags as is.</span></p>
<p class="p2"><span class="s1"></span><br></p>
<p class="p1"><span class="s1">I think my problem is not understanding what is stored in the database related to cuts and edits.</span></p>
<p class="p2"><span class="s1"></span><br></p>
<p class="p1"><span class="s1">Jim A</span></p>                                       </div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br></div></blockquote><br><div>Do you mean this script? <a href="https://www.mythtv.org/wiki/Transcode_Mpeg2_to_H264">https://www.mythtv.org/wiki/Transcode_Mpeg2_to_H264</a> (the v2 script down the page)</div><div><br></div><div>I don't read Python but I am guessing that you have left the user setting generate_commcutlist as the default true value. When set to true it appears to me that there are no checks to see if a cut list already exists so your custom edits are just getting overwritten with a cut list generated straight from the commercial detection flags.</div><div><br></div><div>Try setting generate_commcutlist to false. The code to transcode appears to still check if a cut list is present and will use it if it is.</div><div><br></div><div>At least I think so, but I don't read Python.</div></body></html>