I am using mediainfo to get the audio duration (in ms)
.\mediainfo.exe --Output='Audio;%Duration%' file.mkv
Example for mkv with 1 audio:
1367130
Example for mkv with 2 audio tracks: 13671301367130
if the file has several audio tracks,I only want one value, is there is way to instruct mediainfo to only return 1 value? If it helps, in my script I do retrieve the default audio's ID, is there a way to use that to select audio with id=some_id with mediainfo and get the duration of that particular audio file?
thanks