View Single Post
Old 10th July 2018, 11:17   #2  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Quote:
Originally Posted by pitoloko View Post
...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.
I can suggest you use (Windows CLI):

mediainfo.exe "InputFile" "--Inform=Audio;%%ID%% %%Format%%\r\n" 1>"Info.log"

And use the "Info.log", something like:

Code:
2 AC-3
3 EAC-3
to do the loop. You have a sample in ...\MediaInfo\Contrib\CLI_Help.doc
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote