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

Category: Media & Conversion

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

Select specific streams when transcoding

Selects which streams go into the output: 0:v means the first video stream and 0:a:1 the second audio stream. Streams that are not mapped get dropped, which is useful for keeping only a specific audio language. List stream indexes with ffprobe first.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.