I\'ve been digging through the mplayer/mencoder and ffmpeg documentation and I can\'t seem to come up with anything. I\'m not especially picky as to the out
Here's an "almost-one-liner" I've concocted around ffprobe for exactly this purpose. Works pretty well for me both on Linux and MacOS.
#!/bin/bash B='[[:blank:]]' D='[[:digit:]]' ffprobe "$1" 2>&1 \ | grep 'Stream.*Video.*fps' \ | sed "s/^.*$B\($D$D$D*x$D$D$D*\).*$/\1/"