<div dir="ltr">On Sat, Aug 3, 2013 at 4:31 PM, Ian Evans <span dir="ltr"><<a href="mailto:dheianevans@gmail.com" target="_blank">dheianevans@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Using 26-fixes with the .25 mythtranscode. Doing lossless cuts to take commercials or pledge drives out to save a few gigs here and there until I can get a new drive.<br>
<br></div>Just curious if it's a setting I'm missing or does mythtranscode strip out the audio track names?<br>
<br></div>One of my PBS channels broadcasts older shows in English 2ch and Spanish Castilian 2ch. After the lossless transcode I end up with two tracks that are both Undetermined 2ch.<br><br></div>Is there anyway for mythtranscode to leave the audio track names alone?<br>
<br></div>Thanks!<br></div>
<br><br></blockquote><div>It is my understanding that the problem is the conversion of the mpeg2 "ts" stream to mpeg2 "ps". Any process (mythtranscode, projectx, ffmpeg, etc.) that does this conversion will loose the language identification. As a result most non-Myth video players and sometime MythTV itself have trouble selecting the "correct" or "best" audio track. </div>
<div><br></div><div>The only solution I have found to this problem is remove unwanted audio track(s) before mythtranscode is run. Fortunately, ffmpeg/mythffmpeg allows you to specify which tracks to include and by default will copy the first video and first audio track as follows:</div>
<div><br></div><div> mythffmpeg -i INFILE -vcodec copy -acodec copy -f mpegts OUTFILE</div><div><br></div><div>Will create a copy of a recording (INFILE) named OUTFILE that is still in mpeg2 "ts" format with only one video and one audio track. If you need an audio track other than the first one you can use the -map option as follows:</div>
<div><br></div><div> mythffmpeg -i INFILE -map 0:0 -map 0:2 -vcodec copy -acodec copy -f mpegts OUTFILE<br></div><div><br></div><div>Will create a copy of a recording (INFILE) named OUTFILE containing the first and third tracks (the first track should be the video and the third track should be the second audio track).</div>
<div><br></div><div>Now you can flag ads or any other content you want to remove and run mythtranscode without concern about the audio track selection.</div><div><br></div><div>I included a sample of the script that I run as a USERJOB for everyone of my recordings in this thread (it is near the end), <a href="http://www.gossamer-threads.com/lists/mythtv/users/546934">http://www.gossamer-threads.com/lists/mythtv/users/546934</a></div>
<div><br></div><div>Mike</div></div></div></div>