The assumed order for streams and their indices is [Video(s), Audio(s), Subtitle(s)]. However, in my collection there is at least on video where the Audio Stream index is 0, then the Video Stream index follows with 1 -> [Audio, Video] (this video has only one of each, with no text tracks). It stands to reason that these can be in any order, and only 'well-behaved' files stick to the original index order..
The assumed order for streams and their indices is [Video(s), Audio(s), Subtitle(s)]. However, in my collection there is at least on video where the Audio Stream index is 0, then the Video Stream index follows with 1 -> [Audio, Video] (this video has only one of each, with no text tracks). It stands to reason that these can be in any order, and only 'well-behaved' files stick to the original index order..
The 'misbehaved' file can be found in the Internet Archive Looney Tunes Collection, specifically Bosko the Talk-Ink Kid.
The mediainfo JSON for the file is below. Note the
StreamOrder
andID
fields for the@type=Video|Audio
streams: