Can mkvinfo, or a different command, produce easily parsed JSON or XML output?

I’d like to automate some clean-up of a large MKV collection. If I have to, I can write a parser that consumes the human-readable output that I see the mkvinfo produce, but it would be much better if I could get JSON or XML output that’s much easier and more reliable to parse.

Is there a to do this?

If not, could this be considered as a feature request?

Welcome!

mkvmerge --identification-format json --identify yourfile.mkv or its shortcut mkvmerge -J yourfile.mkv is what you should use. It has other advantages over using mkvinfo anyway. See this FAQ entry for details.

Excellent, and thank you! Just what I was looking for. :slightly_smiling_face:

You’re quite welcome.