Force FFMPEG to use TCP protocol when reading a RTSP Stream

后端 未结 1 1932
走了就别回头了
走了就别回头了 2021-02-07 04:00

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         


        
1条回答
  •  不思量自难忘°
    2021-02-07 04:24

    Just put the -rtsp_transport tcp right after ffmpeg to apply it on the input stream. Like this:

    ffmpeg -rtsp_transport tcp -i "rtsp://x.x.x.x:554/user=x&password=x&channel=2&stream=0.sdp" -y video.jpg
    

    0 讨论(0)
提交回复
热议问题