Problem is, the number of mappings has to match the number of output streams. Ffmpeg will add one audio stream by default and -newaudio will add a second + the video makes three so there has to be three mappings.<br><br>I think I may have figured it out. It seems ffmpeg is wanting to re-encode the new audio stream. A fix for this is to add &quot;-acodec copy&quot; right before &quot;-newaudio&quot;. In 
mythburn.py this would be:<br><br>&nbsp;&nbsp;&nbsp; #add second audio track if required<br>&nbsp;&nbsp;&nbsp; if audio2[AUDIO_ID] != -1:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; command += &quot; -acodec copy -newaudio&quot;<br><br>Does this look right?<br><br>- Mark.<br><br><div>
<span class="gmail_quote">On 9/14/07, <b class="gmail_sendername">Joe Ripley</b> &lt;<a href="mailto:vitaminjoe@gmail.com">vitaminjoe@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 9/14/07, Mark Buechler &lt;<a href="mailto:mark.buechler@gmail.com">mark.buechler@gmail.com</a>&gt; wrote:<br>&gt; I&#39;m having trouble using MythArchive with a couple of my recordings. It<br>&gt; seems to be picking the wrong audio. Shouldn&#39;t it be picking only the ac3
<br>&gt; audio?<br>&gt;<br>&gt; I&#39;m seeing this in the log:<br><br>&lt;snip&gt;<br><br>&gt; When running ffmpeg manually with those options I get:<br>&gt;<br>&gt; ffmpeg -threads 2 -v 1 -i &quot;/transcode/work/1/newfile.mpg&quot; -r ntsc -target
<br>&gt; dvd -b 2344k -s 352x480 -acodec copy -copyts -aspect 4:3<br>&gt; &quot;/transcode/work/1/newfile2.mpg&quot; -newaudio -map 0:0 -map<br>&gt; 0:2 -map 0:1<br><br>I think the problem is with the stream mapping.&nbsp;&nbsp;Your MPEG file has
<br>two audio streams (one in AC3 and one in MP2).&nbsp;&nbsp;Your command looks<br>like its trying to map both audio streams and ffmpeg doesn&#39;t like the<br>6 channels in the MP2 audio.&nbsp;&nbsp;Try something like this:<br><br>ffmpeg -threads 2 -v 1 -i &quot;/transcode/work/1/newfile.mpg&quot; -r ntsc
<br>-target dvd -b 2344k -s 352x480 -acodec copy -copyts -aspect 4:3<br>&quot;/transcode/work/1/newfile2.mpg&quot; -newaudio -map 0:0 -map 0:1<br><br>(I just removed the &#39;-map 0:2&#39; option)<br><br>--<br>Joe Ripley<br>
<a href="mailto:vitaminjoe@gmail.com">vitaminjoe@gmail.com</a><br>_______________________________________________<br>mythtv-users mailing list<br><a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br></blockquote></div><br>