这可以通过在ffmpeg命令中添加-rtsp_transport tcp参数来实现,例如: bash ffmpeg -rtsp_transport tcp -i rtsp://your_rtsp_stream_url -c copy output.mp4 反之亦然,如果服务器只支持UDP,而客户端正在使用TCP,则需要将客户端的传输方式更改为UDP。 检查网络配置:确保没有网络设备(如防火墙或路由器)阻止所使用...
The syntax elements unicast and client_port, which are included in the parameter syntax element, as specified in [RFC2326] section 12.39, MUST be present in each transport-spec syntax element where the value of the lower-transport parameter is UDP. The value of the FecSpan parameter MUST be...
SETUP rtsp://172.16.243.90:554/vod/00000000020000195445.mpg/trackID=1 RTSP/1.0 Transport : MP2T/RTP/UDP;unicast;client_port=8352-8353 Authorization:Basic XXXXXXXXXXXXXXXXXX Session:1664252085;timeout=60 User-Agent:XXXXXXXXXXXXXXXX 这样应该可以了 我也遇到同样的问题,希望大神指点