[FFmpeg-user] How do I add a new audio stream?

Carl Eugen Hoyos cehoyos at ag.or.at
Sun Nov 20 22:51:12 CET 2011

Tuuls <koxaniy <at> mail.ru> writes:

> Hi all. How, after all the new changes, you can add a new audio stream to the
> .mov file?

> G:\ffmpeg\bin>ffmpeg -threads 4 -i E:\IN.avi  -pix_fmt yuv420p  -codec:v
> mpeg2video -b:v 25000k  -r 25 -copyts -codec:a pcm_s16le -ar 48000 -ac 2  -y
> d:\out.mov  -map 0:1 -codec:a pcm_s16le -ar 48000 -ac 2  -newaudio

(Complete, uncut output console output missing, therefore I have to guess.)

ffmpeg -i i.avi -map 0:0 -map 0:1 -map 0:1 -c:v mpeg2video -c:a pcm_s16le out.mov

Carl Eugen

More information about the ffmpeg-user mailing list