Get intrinsic dimensions of video

In the Documentation it talks about getting dimensions via the query language. This doesn’t seem to work for video files although the file I’m trying this with has dimensions in its own meta data (not a Kirby TXT file). How would I get this meta data from the file itself to show up in the panel?

The built in dimensions works for images. You would need a third party library to get this information from other media.

Something like this should do it, which you can turn into a little custom file method etc