[mythtv-users] mytharchive and 6-channel audio
Mark Buechler
mark.buechler at gmail.com
Fri Sep 14 15:37:46 UTC 2007
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.
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:
#add second audio track if required
if audio2[AUDIO_ID] != -1:
command += " -acodec copy -newaudio"
Does this look right?
- Mark.
On 9/14/07, Joe Ripley <vitaminjoe at gmail.com> wrote:
>
> On 9/14/07, Mark Buechler <mark.buechler at gmail.com> wrote:
> > I'm having trouble using MythArchive with a couple of my recordings. It
> > seems to be picking the wrong audio. Shouldn't it be picking only the
> ac3
> > audio?
> >
> > I'm seeing this in the log:
>
> <snip>
>
> > When running ffmpeg manually with those options I get:
> >
> > ffmpeg -threads 2 -v 1 -i "/transcode/work/1/newfile.mpg" -r ntsc
> -target
> > dvd -b 2344k -s 352x480 -acodec copy -copyts -aspect 4:3
> > "/transcode/work/1/newfile2.mpg" -newaudio -map 0:0 -map
> > 0:2 -map 0:1
>
> I think the problem is with the stream mapping. Your MPEG file has
> two audio streams (one in AC3 and one in MP2). Your command looks
> like its trying to map both audio streams and ffmpeg doesn't like the
> 6 channels in the MP2 audio. Try something like this:
>
> ffmpeg -threads 2 -v 1 -i "/transcode/work/1/newfile.mpg" -r ntsc
> -target dvd -b 2344k -s 352x480 -acodec copy -copyts -aspect 4:3
> "/transcode/work/1/newfile2.mpg" -newaudio -map 0:0 -map 0:1
>
> (I just removed the '-map 0:2' option)
>
> --
> Joe Ripley
> vitaminjoe at gmail.com
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20070914/7f31f3da/attachment.htm
More information about the mythtv-users
mailing list