[FFmpeg-user] Is it possible to add audio without re-encoding?

Carl Eugen Hoyos cehoyos at ag.or.at
Sun Feb 5 17:34:40 CET 2012


Lou <lou <at> lrcd.com> writes:

> > Would you please advice, is it possible to take just audio from
> > original videos and add to the converted ones without re-encoding?
> 
> Yes. This example will take the first video stream from video.mp4 and
> the first audio stream from audio.mp4 and mux them into out.mp4 without
> re-encoding.
> 
>     ffmpeg -i video.mp4 -i audio.mp4 -map 0:0 -map 1:1 -c copy out.mp4

(You just found out why we always *have* to ask for complete, uncut 
console output.)

;-))

Carl Eugen



More information about the ffmpeg-user mailing list