Replacing an Audio Stream using FFMPEG

This is another example of using FFMPEG to manipulate video and audio files. In this case, one would like to replace the second audio stream in a video file by another audio file.

Here is the command you may want to try:

ffmpeg -i video.mkv -i audio.mp3 -map 0:v -map 0:a:0 -map 1:a -codec copy output.mkv

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.