I used below command to capture frames for a local rtsp stream:
ffmpeg -i rtmp://user:password@102.168.108.63/ -vframes 1 -y -f image2 -t 1 -s 600x480 /usr/a.