Getting video dimension / resolution / width x height from ffmpeg
Use ffprobe Example 1: With keys / variable names ffprobe -v error -show_entries stream=width,height -of default=noprint_wrappers=1 input.mp4 width=1280 height=720 Example 2: Just width x height ffprobe -v error -select_streams v -show_entries stream=width,height -of csv=p=0:s=x input.m4v 1280×720 Example 3: JSON ffprobe -v error -select_streams v -show_entries stream=width,height -of json input.mkv { “programs”: [ ], “streams”: [ … Read more