3000 explained code solutions for 75 technologies


ffmpegSelect specific video/audio track when converting video


ffmpeg -i input.mkv -map 0:v:0 -map 0:a:1 output.mp4ctrl + c
input.mkv

input video file

-map 0:v:0

will select first video track (indexes starting at 0)

-map 0:a:1

will select second audio track (indexes starting at 0)

output.mp4

output resulting video file