<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 8, 2023 at 12:59 PM Jay Harbeston <<a href="mailto:jharbestonus@gmail.com">jharbestonus@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Jim,<br><div><br><blockquote type="cite"><div>On Jun 8, 2023, at 12:29 PM, James Abernathy <<a href="mailto:jfabernathy@gmail.com" target="_blank">jfabernathy@gmail.com</a>> wrote:</div><br><div><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 7, 2023 at 7:10 PM Jay Harbeston <<a href="mailto:jharbestonus@gmail.com" target="_blank">jharbestonus@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
I have created a python version of ffcut.sh and am currently making sure I have most of the kinks out of it. <br>
<br>
I’m thinking tomorrow I should be able to post the python version the same way as I did the shell version. <br>
<br>
With the python version I did not have to create the text files as intermediary holding arrays for data that needed to be used.<br>
<br>
It will require python version 3+.<br>
<br>
When I created it originally, mythtranscode would not handle mp4 streams that we were getting from the HDHRs when silicon dust did the 4 or so month experiment of being a content provider from the cloud. The ffmpeg version ffcut.sh and soon the ffcut.py version will be able to handle both mp4 and mpeg 2 transport streams.<br>
<br>
Jay<br></blockquote><div><br></div><div>I  got the ffcut.sh working with mariadb queued from the mythfrontend.  and it seemed to work correctly.</div><div>What I figured out is Not only do you have to run commflag but you need to go into edit mode in mythfrontend and load the detected commercials and edit them if needed and then save them.</div><div><br></div><div>Once the user job was completed what I saw in mythfrontend was all the metadata still in the library listing but when I played the TV show, it was 22 minutes shorter, missing the commercials. Yey.</div><div>When checking the /srv/mythtv/recordings directory I had the original .ts file copied to .ts.orig.</div><div><br></div><div>So if that's what it's supposed to do, it work.</div><div><br></div></div></div></div></blockquote><br></div><div>That is correct. In the python version that I am finishing up, there will be a remove option on the command line in mythtv settings.</div><div><br></div><div>It will be the final parameter, and if the 4th parameter is YES, the orig backup file WILL NOT be created. If it is NO, then the orig file WILL be created.</div><div><br></div><div><br></div><div>As per another comment, I am replacing ffmpeg with mythffmpeg as well.</div><div><br></div><div>The file that you processed, did it have 5.1 audio? If so, I am guessing that it came through correctly after ffcut?</div><div><br></div><div><br></div><div>Jay</div></div></blockquote><div><br></div><div>This particular video was a daytime game show so might not be 5.1, but the stats on the audio are  A52 (aka ac3 A52)</div><div><br></div><div>It's the same spec on the original and output of ffcut.  I'll look for something 5.1 tonight during primetime.</div><div><br></div><div>Jim A</div><div><br></div></div></div>