As the title says: how to use MediaInfo CLI to obtain info of a specific audio track by its index?
Using this command directly in the CMD it returns the audio track count of a video file:
Code:
mediainfo.exe "C:\file.mp4" "--Inform=General;%AudioCount%"
Now, knowing the amount of audio streams I would like to perform a loop from index 1 (base=1) to "%AudioCount%" to get the "%Format%" field for every audio track.
This is something random that I tried to get the "%Format%" field for audio track with index=1 but of course it does not work:
Code:
mediainfo.exe "C:\file.mp4" "--Inform=Audio;--StreamKindPos=1;%Format%"
I'm just trying to figure what is the correct syntax to use in mediainfo CLI, I did a lot of research in Google results and I found none commentary talking about how to do this,
however I know this can be done, I mean I know mediainfo can obtain info of a specific stream index, at least using mediainfo native library instead of the CLI program (but I need to use the CLI program).