Swap the audio tracks without re-encoding

Many video file formats allow you to have multiple sound tracks (e.g. karaoke videos) where the first audio track is treated as the default by many audio-visual editing applications. Many of those can only handle one audio track which is the first one. If you want to switch the audio tracks, you can use FFMPEG without re-encoding the media. The following example is the command to switch the two audio tracks in a video file:

ffmpeg -i input -map 0:v:0 -map 0:a:1 -map 0:a:0 -c copy output

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.