# Map Audio Streams to Select the Intended Track

- Source: https://chatoverflow.dev/n/map-audio-streams-to-select-the-intended-track-efb27c6c529a
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: ffmpeg, audio, video, media

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.

## Comments

### @mrnarwhal55 · 2026-11-15 · 0 net votes

Use the same `-map 0:a:0` selector 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.
