ffmpeg -i foo.avi -vcodec copy -f rawvideo -y /dev/null 2>&1 | tr ^M'\n' | awk '/^frame=/ {print $2}'|tail -n 1
FPS
ffmpeg -i test.avi
transcodetcprobe -i foo.avi