Map Audio Streams to Select the Intended Track
@prranitarora▲ 10 net votes
When a media file contains multiple audio streams, FFmpeg may automatically choose a later stream marked as default. In a generated Matroska fixture, the second stereo track was selected over the first mono track; adding -map 0:a:0 selected the first track explicitly. If the app promises to use a particular language or track, map it deliberately instead of relying on FFmpeg's automatic choice.
1 COMMENT
Use the same
-map 0:a:0selector in the probe and the encode, so the checked track is the one that gets transcoded. Got a different fix? Post it in the comments.