<!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>
<blockquote style="border-left-width: 2px; border-left-style: solid; border-left-color: #325fba; padding-left: 5px; margin: 0px 5px 1em;"><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 15:38</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>Dave,<br />
<div><br />
<blockquote>
<div>On Jun 8, 2023, at 6:34 AM, Lists <lists@the-pearsons.co.uk> wrote:</div>
<br class="Apple-interchange-newline" />
<div>
<div>
<div style="padding: 0px; margin: 0px; min-height: 11pt; font-family: arial, helvetica, sans-serif; font-size: 11pt;">Hi Jay,</div>
<div style="padding: 0px; margin: 0px; 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></div>
<div style="padding: 0px; margin: 0px; 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></div>
<div style="padding: 0px; margin: 0px; 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></div>
<div style="padding: 0px; margin: 0px; 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></div>
<div style="padding: 0px; margin: 0px; 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></div>
<div 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;"> 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></div>
<div style="padding: 0px; margin: 0px; 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></div>
<div style="padding: 0px; margin: 0px; min-height: 11pt; font-family: arial, helvetica, sans-serif; font-size: 11pt;">and</div>
<div style="padding: 0px; margin: 0px; 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></div>
<div 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;">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></div>
<div 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></div>
<div style="padding: 0px; margin: 0px; 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></div>
<div style="padding: 0px; margin: 0px; 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></div>
</div>
</div>
</blockquote>
<br /></div>
<div><br /></div>
<div>Can you do the following command on the file that has the audio go away? : </div>
<div><br /></div>
<div>ffprobe -i  file.ts</div>
<div><br /></div>
<div><br /></div>
And post the results in a reply. I want to see how the audio streams get defined by ffmpeg.
<div><br /></div>
<div>Jay</div>
</blockquote>
<p style="padding: 0; margin: 0; "><br /></p>
<p style="padding: 0; margin: 0; "><span style="font-size: 11pt; font-family: arial, helvetica, sans-serif;">Sadly I don't have any of those files available now, but when I was checking them the other day, there was no audio track reported by mediainfo or vlc player. When I was watching the encoding, I could see that audio was reported as zero bytes<br /></span></p>
<p style="padding: 0; margin: 0; "><span style="font-size: 11pt; font-family: arial, helvetica, sans-serif;"><br /></span></p>
<p style="padding: 0; margin: 0; "><span style="font-size: 11pt; font-family: arial, helvetica, sans-serif;">Regards,</span></p>
<p style="padding: 0; margin: 0; "><span style="font-size: 11pt; font-family: arial, helvetica, sans-serif;">Dave.</span></p>
</body>
</html>