<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
  <meta name="Generator" content="Kopano WebApp v-5.0.0.223+1986.1">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>RE: [mythtv-users] Transcode script that keeps show in Recordings</title>
</head>
<body>
<p style="padding: 0; margin: 0; min-height: 11pt; font-family: arial,helvetica,sans-serif; font-size: 11pt;">Hi Jay,</p>
<p style="padding: 0; margin: 0; min-height: 11pt; font-family: arial,helvetica,sans-serif; font-size: 11pt;"><span style="font-size: 11pt; font-family: arial, helvetica, sans-serif;"><br /></span></p>
<p style="padding: 0; margin: 0; min-height: 11pt; font-family: arial,helvetica,sans-serif; font-size: 11pt;"><span style="font-size: 11pt; font-family: arial, helvetica, sans-serif;">I had to make a few modifications to your ffcut.sh script to get it to work - modifying the mysql commands, slightly as they didn't work on my system as written, but I soon resolved that.</span></p>
<p style="padding: 0; margin: 0; min-height: 11pt; font-family: arial,helvetica,sans-serif; font-size: 11pt;"><span style="font-size: 11pt; font-family: arial, helvetica, sans-serif;"><br /></span></p>
<p style="padding: 0; margin: 0; min-height: 11pt; font-family: arial,helvetica,sans-serif; font-size: 11pt;"><span style="font-size: 11pt; font-family: arial, helvetica, sans-serif;">The other modifications I had to make were to the ffmpeg commands, since my h264 recordings with AC3 5.1 audio were transcoding without audio - I changed the commands as follows:</span></p>
<p style="padding: 0; margin: 0; min-height: 11pt; font-family: arial,helvetica,sans-serif; font-size: 11pt;"><span style="font-size: 11pt; font-family: arial, helvetica, sans-serif;"><br /></span></p>
<p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal; color: #aaab25;"><span style="font-variant-ligatures: no-common-ligatures; color: #000000;"> cmdffmpeg</span><span style="font-variant-ligatures: no-common-ligatures; color: #39c026;">=</span><span style="font-variant-ligatures: no-common-ligatures;"><strong>"ffmpeg -i $infile -t $duration -ss $ss -map 0:v -c:v copy -map 0:1 -c:a ac3 -ar 48000 $outfile"</strong></span></p>
<p style="padding: 0; margin: 0; min-height: 11pt; font-family: arial,helvetica,sans-serif; font-size: 11pt;"><span style="font-size: 11pt; font-family: arial, helvetica, sans-serif;"><br /></span></p>
<p style="padding: 0; margin: 0; min-height: 11pt; font-family: arial,helvetica,sans-serif; font-size: 11pt;">and</p>
<p style="padding: 0; margin: 0; min-height: 11pt; font-family: arial,helvetica,sans-serif; font-size: 11pt;"><span style="font-size: 11pt; font-family: arial, helvetica, sans-serif;"><br /></span></p>
<p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal; color: #aaab25;"><span style="font-variant-ligatures: no-common-ligatures; color: #000000;">cmdffmpeg</span><span style="font-variant-ligatures: no-common-ligatures; color: #39c026;">=</span><span style="font-variant-ligatures: no-common-ligatures;"><strong>"ffmpeg -f concat -safe 0 -i $tmpdir/filelist.txt -map 0:v -c:v copy -map 0:1 -c:a ac3 -ar 48000 $outfile"</strong></span></p>
<p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal; color: #aaab25;"><span style="font-variant-ligatures: no-common-ligatures;"><br /></span></p>
<p style="padding: 0; margin: 0; min-height: 11pt; font-family: arial,helvetica,sans-serif; font-size: 11pt;"><span style="font-size: 11pt; font-family: arial, helvetica, sans-serif;">this resolved the audio problems, but I am unable to rebuild the seektable for the newly transcoded recordings</span></p>
<p style="padding: 0; margin: 0; min-height: 11pt; font-family: arial,helvetica,sans-serif; font-size: 11pt;"><span style="font-size: 11pt; font-family: arial, helvetica, sans-serif;"><br /></span></p>
<p style="padding: 0; margin: 0; min-height: 11pt; font-family: arial,helvetica,sans-serif; font-size: 11pt;"><span style="font-size: 11pt; font-family: arial, helvetica, sans-serif;"><br /></span></p>
<p style="padding: 0; margin: 0; min-height: 11pt; font-family: arial,helvetica,sans-serif; font-size: 11pt;"><span style="font-size: 11pt; font-family: arial, helvetica, sans-serif;">I imagine that the ffmpeg command needs some further modification, but I have no idea what that would be - maybe this will help you, though, with your python script?</span></p>
<p style="padding: 0; margin: 0; min-height: 11pt; font-family: arial,helvetica,sans-serif; font-size: 11pt;"><span style="font-size: 11pt; font-family: arial, helvetica, sans-serif;"><br /></span></p>
<p style="padding: 0; margin: 0; min-height: 11pt; font-family: arial,helvetica,sans-serif; font-size: 11pt;"><span style="font-size: 11pt; font-family: arial, helvetica, sans-serif;">Regards,</span></p>
<p style="padding: 0; margin: 0; min-height: 11pt; font-family: arial,helvetica,sans-serif; font-size: 11pt;"><span style="font-size: 11pt; font-family: arial, helvetica, sans-serif;">Dave </span></p>
<p style="padding: 0; margin: 0; min-height: 11pt; font-family: arial,helvetica,sans-serif; font-size: 11pt;"><span style="font-size: 11pt; font-family: arial, helvetica, sans-serif;"><br /></span></p>
<p style="padding: 0; margin: 0; min-height: 11pt; font-family: arial,helvetica,sans-serif; font-size: 11pt;"><span style="font-size: 11pt; font-family: arial, helvetica, sans-serif;"><br /></span></p>
<blockquote style="border-left: 2px solid #325FBA; padding-left: 5px; margin: 0px 5px;"><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 10pt;">-----Original message-----<br /><span><strong>From:</strong> Jay Harbeston <jharbestonus@gmail.com></span><br /><span><strong>Sent:</strong> Thursday 8th June 2023 0:20</span><br /><span><strong>To:</strong> Discussion about MythTV <mythtv-users@mythtv.org></span><br /><span><strong>Subject:</strong> Re: [mythtv-users] Transcode script that keeps show in Recordings</span><br /><br /></span><br />
<div><br />
<blockquote>
<div>On Jun 7, 2023, at 7:13 PM, James <jam@tigger.ws> wrote:</div>
<br class="Apple-interchange-newline" />
<div><br style="caret-color: #000000; font-family: Palatino-Roman; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" /><br style="caret-color: #000000; font-family: Palatino-Roman; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" />
<blockquote style="font-family: Palatino-Roman; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">On 8 Jun 2023, at 7:08 am, Jay Harbeston <<a href="mailto:jharbestonus@gmail.com" target="_blank" title="mailto:jharbestonus@gmail.com 
 Click the link to open the URL in a new window." rel="noopener">jharbestonus@gmail.com</a>> wrote:<br /><br /><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.<span class="Apple-converted-space"> </span><br /><br />I’m thinking tomorrow I should be able to post the python version the same way as I did the shell version.<span class="Apple-converted-space"> </span><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 />jamesWhen 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 /></blockquote>
<br style="caret-color: #000000; font-family: Palatino-Roman; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" /><span style="caret-color: #000000; font-family: Palatino-Roman; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">Can you cut h264 recordings?</span><br style="caret-color: #000000; font-family: Palatino-Roman; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" /><br style="caret-color: #000000; font-family: Palatino-Roman; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" /><span style="caret-color: #000000; font-family: Palatino-Roman; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">I have 2 trancode-lossless scripts, 1 for each</span><br style="caret-color: #000000; font-family: Palatino-Roman; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" /><br /></div>
</blockquote>
<br /></div>
<div>I know it can cut mp4 ts streams… </div>
<div><br /></div>
<div>If  ffmpeg can cut h264 and there is a list of cuts in mythtv, it should be able to.  I do know that mp4s created from handbrake can not create a seektaable, so cannot be flagged in mythtv.</div>
<div><br /></div>
</blockquote>
</body>
</html>