Rename video files by resolution?

I'd like to be able to prepend some MP4 and MKV files with their resolution height, but I'm not sure if this is possible...
The result would be something like...
[480] My SD Video.mp4
[720] My HD Video.mp4
[1080] My FHD Video.mkv
[1440] My QHD Video.mkv
and so on.
Is there some method I can use with this utility to find the height in pixels of the video and prepend it to the existing file name?
The result would be something like...
[480] My SD Video.mp4
[720] My HD Video.mp4
[1080] My FHD Video.mkv
[1440] My QHD Video.mkv
and so on.
Is there some method I can use with this utility to find the height in pixels of the video and prepend it to the existing file name?