2808 explained code solutions for 75 technologies


ffmpegGet video resolution


ffprobe -v quiet -print_format json -show_streams in.mp4 | egrep "(width|height)" | grep -v codedctrl + c
in.mp4

video to get resolution for

-print_format json -show_streams

prints JSON media info

egrep "(width|height)"

trims only width/height data from output

grep -v coded

excludes unneeded info from output