I don't think you get this info from MediaInfo or do you see it here:
https://pastebin.com/NE9Dia8C
edit:
I don't think 'ID' will work for all file types, which file types do you work with?
edit2:
In TS files:
I have doubts that ffms2 and l-smash can handle TS well, will likely often get async audio playback, I would use dgdecnv, ts-doctor or remux to mkv with ffmpeg.
edit3:
AviSynth is not well suited for the stuff you do, have you ever considered VapourSynth? Maybe take a look at staxrip, it's the easiest way for making first steps with VapourSynth as it supports complex scripts like QTGMC and has both code editor and code preview, once you got a raw idea of what VapourSynth can do, you can learn how to use it with a real editor like Visual Studio Code.