Re: Audio stream mapping

78 views
Skip to first unread message

J.Reykdal

unread,
Jan 18, 2011, 5:12:29 PM1/18/11
to ffmbc-discuss
I think I finally figured it out.

The trick (if it's a trick) was to put -acodec pcm_s16le -ar 48000
-newaudio after the outfile.

On 01/18/2011 05:41 PM, JReykdal wrote:
> Hello,
>
> I don't know if this problem belongs to ffmbc or ffmpeg proper but
> here goes :)
>
> I have an mpeg file with 4 audio channels in 2 streams:
> Input #0, mpeg, from '2001_Magic_planet_ep01.mpg':
> Duration: 00:15:35.03, start: 0.511156, bitrate: 15868 kb/s
> Stream #0.0[0x1e0](und): Video: mpeg2video, yuv420p, 720x608i tff
> [PAR 608:405 DAR 16:9], tbc 2/50, 15000 kb/s, fps 25.000
> Stream #0.1[0x1c0](und): Audio: mp2, 48000 Hz, 2 channels, s16,
> 256 kb/s
> Stream #0.2[0x1c1](und): Audio: mp2, 48000 Hz, 2 channels, s16,
> 256 kb/s
>
> I'm trying to get it to a Quicktime container with all 4 audio
> channels but if I use the -newaudio I always seem to get stream #0.2
> on the target file in aac with 64 kb/s audio.
>
> Do you know a way for me to do that? I've tried various combinations
> of -acodec and such.
>
> Do I maybe need to dump the #0.2 to a wav and remux it to the file?
>
> command line:
> [jreykdal@arrakis Desktop]$ ffmbc -i 2001_Magic_planet_ep01.mpg -
> vcodec copy -acodec copy -map 0:0 -map 0:1 -map 0:2 -vtag mx3p -vbsf
> imxdump out.mov -newaudio
> [ffmpeg info removed]
> Input #0, mpeg, from '2001_Magic_planet_ep01.mpg':
> Duration: 00:15:35.03, start: 0.511156, bitrate: 15868 kb/s
> Stream #0.0[0x1e0](und): Video: mpeg2video, yuv420p, 720x608i tff
> [PAR 608:405 DAR 16:9], tbc 2/50, 15000 kb/s, fps 25.000
> Stream #0.1[0x1c0](und): Audio: mp2, 48000 Hz, 2 channels, s16,
> 256 kb/s
> Stream #0.2[0x1c1](und): Audio: mp2, 48000 Hz, 2 channels, s16,
> 256 kb/s
> File 'out.mov' already exists. Overwrite ? [y/N] y
> Output #0, mov, to 'out.mov':
> Metadata:
> encoder: FFmbc 0.5
> Stream #0.0(und): Video: mpeg2video, yuv420p, 720x608i tff [PAR
> 608:405 DAR 16:9], tbc 1/25, q=2-31, 15000 kb/s
> Stream #0.1(und): Audio: mp2, 48000 Hz, 2 channels, s16, 256 kb/s
> Stream #0.2(und): Audio: aac, 48000 Hz, 2 channels, s16, 64 kb/s
> Stream mapping:
> Stream #0.0 -> #0.0
> Stream #0.1 -> #0.1
> Stream #0.2 -> #0.2
> Press [q] to stop encoding
>
> Regards,
>
> J.Reykdal
> RUV Iceland

Reply all
Reply to author
Forward
0 new messages