![]() Read the link for setup instructions - pretty straightforward. On Windows, you can use the Avanti GUI front-end to carry out batch operations. c:a:1 aac means encode the second audio stream in the output with the (native) AAC encoder. So, the first audio stream in the output will be the one from the first input i.e. Since -map 0 is placed first, the audio and video streams from that file will be stacked first in the output. The order of output streams here is decided by the order of the map arguments. c:a:0 copy means the first audio stream in the output should be copied as well. c:v copy means that any and all video streams being included in the output should be copied, so no re-encoding. map 1 would have sufficed since WAV files contain only audio streams. Similarly, map 1:a means include all audio streams from the 2nd input. map 0 means include all streams from the first input - FFmpeg index starts from zero. The basic FFmpeg command line for your required use is ffmpeg -i video.mp4 -i audio.wav -map 0 -map 1:a -c:v copy -c:a:0 copy -c:a:1 aac video-new.mp4
0 Comments
Leave a Reply. |