[FFmpeg-user] Encoding audio and video from different files
Mark Himsley
mark at mdsh.com
Sat Oct 8 20:17:23 CEST 2011
On 08/10/2011 18:02, aida wrote:
>
> Hello,
>
> If we have an avi movie file and a wav audio file, is there any way that you
> can merge them and encode it to a mp4 format (h.264 and AAC) using ffmpeg?
Yes, there is. Basically, something like this:
ffmpeg -i video.mp4 -i audio.wav -vcodec libx264 -profile high -crf 23
-acodec libfaac -ab 192 -map 0:0 -map 1:0 out.mp4
Hope that helps.
--
Mark
More information about the ffmpeg-user
mailing list