<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div style="display: block;"><br></div><div style="display: block;">Here is the first stab at the python version. It mimics the operation of the ffcut.sh, without all the db issues earlier mentioned, and uses the MythDB connection simplifying connection to the DB. I did change it to use mythffmpeg instead of ffmpeg. I didn’t see any differences when using it.</div><div style="display: block;"><br></div><div style="display: block;">It does have a lot of commenting in it, so if you find problems, the log for it is our friend!</div><div style="display: block;"><br></div><div style="display: block;">I use the following as a user job in mythtv:</div><div style="display: block;"><br></div><div style="display: block;"><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: -webkit-standard; font-size: medium;">/usr/local/bin/ffcut.py %DIR% %CHANID% %STARTTIMEUTC% NO >> /tmp/ffcut.log</span></div><div style="display: block;"><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: -webkit-standard; font-size: medium;"><br></span></div><div style="display: block;"><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: -webkit-standard; font-size: medium;">the NO above is important as it keeps a copy of the original video as .ts.orig . </span></div><div style="display: block;"><br></div><div style="display: block;"><br></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/UhW637Wv"><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/UhW637Wv" 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/UhW637Wv" style="text-decoration: none" draggable="false"><font color="#272727" style="color: rgba(0, 0, 0, 0.847059);">ffcut.py</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/UhW637Wv" 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/UhW637Wv" 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:41F85357-BB07-4DA7-A01D-3C7A62375038"></a></td></tr></tbody></table></td></tr></tbody></table></a></div></div><div style="display: block;"><br></div><div style="display: block;">Hope this is useful.</div><div style="display: block;"><br></div><div style="display: block;">Regards!</div><div style="display: block;"><br></div><div style="display: block;">Jay</div></body></html>