Force FFMPEG to use TCP protocol when reading a RTSP Stream
问题 I'm running ffmpeg (Windows 7, 64bit) from command line to get a frame from a RTSP stream (second channel from my DVR): ffmpeg -i "rtsp://xxx.xxx.xxx.xxx:554/user=xxxx&password=xxxx&channel=2&stream=0.sdp" -rtsp_transport tcp -y video.jpg After running, it waits for about 10 seconds and then i get: [rtsp @ 026fd840] UDP timeout, retrying with TCP After another long wait (2 minutes or so), i get: [rtsp @ 028dd840] Could not find codec parameters for stream 0 (Video: h264): unspecified size I