报错
试用ffmpeg请求rtsp流时,UDP端口时无法返回
[rtsp @ 0x5650696e2580] UDP timeout, retrying with TCP
[rtsp @ 0x5650696e2580] method SETUP failed: 454 Session Not Found
[rtsp @ 0x5650696e2580] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
解决
强制将ffmpeg对rtsp拉流时试用tcp协议,目前有效,加上-rtsp_transport tcp参数
ffmpeg -rtsp_transport tcp -i 'rtsp://admin:admin123!@192.168.15.2:554/cam/realmonitor?channel=17&subtype=0' -an -c:v copy -f mp4 -movflags +frag_keyframe+empty_moov+default_base_moof pipe:1
但是性能上是存在问题的,毕竟tcp需要多次握手,具体UDP为什么无法使用,问题还在排查中。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)