<html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><br><div><br><blockquote type="cite"><div>On Jun 4, 2023, at 12:44 PM, Ian Evans <dheianevans@gmail.com> wrote:</div><br class="Apple-interchange-newline"><div><div dir="ltr">I'm messing around with a test server right now as I don't current;y have access to my old MythTV box. I thought I had put a copy of the scripts I used in Google Drive, but apparently I didn't.<br><br><div>The user job script I had would run mythtranscode, honour the cutlet, if anny rebuild the seektable and run with the --mpeg2 option, so even if you hadn't created a cutlist, you could save about 20% of the initial .ts file.</div><div><br></div><div>The one thing it did, was move the tmp file to the current recording name and move the original file to a .old. Having the edited file accessible through recording was helpful if you suddenly noticed you missed a commercial/PBS pledge break, as you could easily re-edit the file.</div><div><br></div><div>Anyone know the name of that script or remember authoring it?</div></div></div></blockquote><br></div><div>I use this shell script to cut using the recorded markup table.</div><div><br></div><div>It uses ffmpeg to copy the fragments from the original as defined by the recorded markup table, and concatenates them using the ffmpeg copy function. It does not remove the original, but renames it for safety sake.</div><div><br></div><div><div style="display: block;"><div style="-webkit-user-select: all; -webkit-user-drag: element; display: inline-block;" class="apple-rich-link" draggable="true" role="link" data-url="https://pastebin.com/uuBHpauQ"><a style="border-radius:10px;font-family:-apple-system, Helvetica, Arial, sans-serif;display:block;-webkit-user-select:none;width:300px;user-select:none;-webkit-user-modify:read-only;user-modify:read-only;overflow:hidden;text-decoration:none;" class="lp-rich-link" rel="nofollow" href="https://pastebin.com/uuBHpauQ" dir="ltr" role="button" draggable="false" width="300"><table style="table-layout:fixed;border-collapse:collapse;width:300px;background-color:#E5E6E9;font-family:-apple-system, Helvetica, Arial, sans-serif;" class="lp-rich-link-emailBaseTable" cellpadding="0" cellspacing="0" border="0" width="300"><tbody><tr><td vertical-align="center"><table bgcolor="#E5E6E9" cellpadding="0" cellspacing="0" width="300" style="font-family:-apple-system, Helvetica, Arial, sans-serif;table-layout:fixed;background-color:rgba(229, 230, 233, 1);" class="lp-rich-link-captionBar"><tbody><tr><td style="padding:8px 0px 8px 0px;" class="lp-rich-link-captionBar-textStackItem"><div style="max-width:100%;margin:0px 16px 0px 16px;overflow:hidden;" class="lp-rich-link-captionBar-textStack"><div style="word-wrap:break-word;font-weight:500;font-size:12px;overflow:hidden;text-overflow:ellipsis;text-align:left;" class="lp-rich-link-captionBar-textStack-topCaption-leading"><a rel="nofollow" href="https://pastebin.com/uuBHpauQ" style="text-decoration: none" draggable="false"><font color="#272727" style="color: rgba(0, 0, 0, 0.847059);">ffcut.sh</font></a></div><div style="word-wrap:break-word;font-weight:400;font-size:11px;overflow:hidden;text-overflow:ellipsis;text-align:left;" class="lp-rich-link-captionBar-textStack-bottomCaption-leading"><a rel="nofollow" href="https://pastebin.com/uuBHpauQ" style="text-decoration: none" draggable="false"><font color="#808080" style="color: rgba(0, 0, 0, 0.498039);">pastebin.com</font></a></div></div></td><td style="padding:6px 12px 6px 0px;" class="lp-rich-link-captionBar-rightIconItem" width="36"><a rel="nofollow" href="https://pastebin.com/uuBHpauQ" draggable="false"><img style="pointer-events:none !important;display:inline-block;width:36px;height:36px;border-radius:3px;" width="36" height="36" draggable="false" class="lp-rich-link-captionBar-rightIcon" alt="favicon.ico" src="cid:A77B5A59-C77E-4C22-B183-8274485D5A23"></a></td></tr></tbody></table></td></tr></tbody></table></a></div></div></div><br><div><br></div><div>I defined it as one of the jobs in mythtv as follows:</div><div><br></div><div>It uses the db connection information in the /etc/mythtv/config.xml to make connections. </div><div><br></div><div>/usr/local/bin/ffcut.sh %DIR% %CHANID% %STARTTIMEUTC% >> /tmp/ffcut.log</div><div><br></div><div>Regards</div><div><br></div><div><br></div></body></html>