Also, is there any way to give the audio tracks a language name? For example a file contains 2 audio tracks. The first one is English and the second one is Russian. How do I name them correctly so when I use a video player it would show me in the language menu that the first one is English and the second one is Russian?
Default stream selection behavior is to select one stream type per input. For example, as in your input, if it contains two audio streams, then only the stream with the most number of channels will be selected.
Because the -map option begins counting at 0, the 0 in this example refers to the first input (input.avi: your only input in this case). If you had additional inputs then -map 1 would refer to the second input.
Took quite a long time for me to figure this out. I'm posting it here, because even after 3 years this thread is one of the first hits in google search:AVI (more specific: RIFF) does support language names but in opposite to mkv, the metadata is not stored in the stream but in the header using tags IAS1-9 for up to 9 different audio streams.
VLC ist pretty tolerant. If you enter ISO code "ger", VLC translates it to "Deutsch", if you enter "MyLang" instead, VLC displays "MyLang". Other software like Kodi needs the the correct ISO code. It would read "MyL" only and then display the language as unknown.
However, please be aware that ffmpeg does not just add the language but also changes other metadata. For example, audio interleave and preload data are different in output.avi, no idea if this is good or might result in audio out of sync. Check with MediaInfo or similar.
When using VLC media player for Win, to convert a video with multiple audio tracks into another format, outputing using only one audio track, how do I select the audio track that is converted? VLC defaults to the first audio track.
Please, no workarounds.In fact, right now I use MKVToolNix to remove the undesired audio track(s) and then convert the file in VLC. However, I wonder what the solution within VLC is - or whether one exists.
795a8134c1