[FFmpeg-user] maping, using two inputs

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Jan 31 01:49:20 CET 2012


Boštjan Strojan <bostjan.strojan <at> gmail.com> writes:

> ffmpeg -i audio.m4a -i videowithaudio.mov -pix_fmt yuv420p -acodec
> copy $optionsCRF "out.mp4"

For the sample you posted in this thread, the following should work fine:
ffmpeg -i audio.m4a -i videowithaudio.mov -acodec copy -map 0:0 -map 1:0 out.mp4

If you don't use -map 0:0 there is guarantee afaict that ffmpeg doesn't use
audio from videowithaudio.mov (even if that may not happen with current
versions), if you only use one (audio) map option, only audio will be encoded,
no video.

Hope that helps, Carl Eugen



More information about the ffmpeg-user mailing list