1.rtsp流截图
ffmpeg --stimeout 1000000 -rtsp_transport tcp -i rtsp://xxx -vf select='eq(pict_type,PICT_TYPE_I)' -vsync vfr -ss 00:00:00.000 -vframes 1 -s 640x480 -y output.jpg -hide_banner
参数解释:
● -stimeout 1000000:设置socket超时时间为1000000微秒(us),即1秒(s)。