<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;">Dave,<br><div><br><blockquote type="cite"><div>On Jun 8, 2023, at 6:34 AM, Lists <lists@the-pearsons.co.uk> wrote:</div><br class="Apple-interchange-newline"><div>
<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>
<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: rgb(170, 171, 37);"><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: rgb(170, 171, 37);"><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: rgb(170, 171, 37);"><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></body></html>