If I understood you correctly, you mean the resolution of a video for example (768x432).
This could be done simply using opencv in python.
import cv2
file_path = "./video.avi" # change to your own video path
vid = cv2.VideoCapture(file_path)
height = vid.get(cv2.CAP_PROP_FRAME_HEIGHT)
width = vid.get(cv2.CAP_PROP_FRAME_WIDTH)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…