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 "-acodec copy" right before "-newaudio". In
mythburn.py this would be:<br><br> #add second audio track if required<br> if audio2[AUDIO_ID] != -1:<br> command += " -acodec copy -newaudio"<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> <<a href="mailto:vitaminjoe@gmail.com">vitaminjoe@gmail.com</a>> 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 <<a href="mailto:mark.buechler@gmail.com">mark.buechler@gmail.com</a>> wrote:<br>> I'm having trouble using MythArchive with a couple of my recordings. It<br>> seems to be picking the wrong audio. Shouldn't it be picking only the ac3
<br>> audio?<br>><br>> I'm seeing this in the log:<br><br><snip><br><br>> When running ffmpeg manually with those options I get:<br>><br>> ffmpeg -threads 2 -v 1 -i "/transcode/work/1/newfile.mpg" -r ntsc -target
<br>> dvd -b 2344k -s 352x480 -acodec copy -copyts -aspect 4:3<br>> "/transcode/work/1/newfile2.mpg" -newaudio -map 0:0 -map<br>> 0:2 -map 0:1<br><br>I think the problem is with the stream mapping. Your MPEG file has
<br>two audio streams (one in AC3 and one in MP2). Your command looks<br>like its trying to map both audio streams and ffmpeg doesn't like the<br>6 channels in the MP2 audio. Try something like this:<br><br>ffmpeg -threads 2 -v 1 -i "/transcode/work/1/newfile.mpg" -r ntsc
<br>-target dvd -b 2344k -s 352x480 -acodec copy -copyts -aspect 4:3<br>"/transcode/work/1/newfile2.mpg" -newaudio -map 0:0 -map 0:1<br><br>(I just removed the '-map 0:2' 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>