Category: Photography & Video Editing

How to remove an unwanted audio stream from an MP4 file

Let’s assume that an MP4 video file has two audio streams, but you only want to keep one.

The following line will create a new mp4 video file that only has the first audio stream:

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

The following line will create a new mp4 video file that only has the second audio stream:

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