Skip to main content

Get the dimensions of a video file with mediainfo

Here are two examples:

$ mediainfo '--Inform=Video;%Width%' speech.mp4
640

$ mediainfo '--Inform=Video;%Height%' speech.mp4
360