Python: How to get video resolution?

How to get video resolution in python?

Screen resolution or resolution of a video? For screen resolution it might depend on the operating system. For videos you can use a wrapper like ffmpeg-python.

I think exiftool and exiv2 wrappers should also work (exiv2 needs to be built w/ video format support).

There also seem to be python wrappers for MediaInfo which is video centric.

1 Like