XDCAM or not
9. 1. 20251. First try ↓
mediainfo file.mxf | grep 'Commercial' | uniq | awk '{ print $4,$5 }'
could return
XDCAM HD422
or not.
2. Cleaner ↓
mediainfo --Inform="General;%Format_Commercial_IfAny%" file.mxf
3. Multiple fields? ↓
It appears only single field can be requested at one run, unless you specify custom template (untested):
custom.txt
General;%Format_Commercial%
Video;%Width%
cli
mediainfo --Inform=file://custom.txt file.mxf