ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=p=0 input.mp4

Category: Media & Conversion

ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=p=0 input.mp4

Print the video width and height

Prints the video stream's width and height, like '1920x1080'. -select_streams v:0 picks the first video stream, and -of csv=p=0 gives plain comma output. Useful in scripts for conditional processing.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.