|
板凳
楼主 |
发表于 2020-6-24 15:05:39
|
只看该作者
谢谢回复!
为了解决大量丢包问题,之前是rtsp默认是UDP协议,尝试改成tcp之后报错
rtsp_client =new RtspClient(url,user,pwd,true);
2020/06/24 15:01:23] D/: # FOUND[0] rtpmap: id:96 format:H264 bitrate:90000
[2020/06/24 15:01:23] D/: # TOTAL FOUND 1
[2020/06/24 15:01:23] D/: TRACK [0] : rtsp://192.168.0.191:554/h264/main/sub/av_stream/trackID=1
[2020/06/24 15:01:23] D/: setup 23205 , 23206, uri: rtsp://192.168.0.191:554/h264/main/sub/av_stream/trackID=1
[2020/06/24 15:01:23] D/: close curl rtsp://192.168.0.191:554/h264/main/sub/av_stream
[2020/06/24 15:01:23] D/: destroying curl rtsp ...
[2020/06/24 15:01:23] D/: destroying curl rtsp ... done
[2020/06/24 15:01:27] D/: close curl rtsp://192.168.0.191:554/h264/main/sub/av_stream
[2020/06/24 15:01:27] D/: ReEnable rtsp client [1] rtsp://192.168.0.191:554/h264/main/sub/av_stream
[2020/06/24 15:01:27] D/: curlto rtsp://192.168.0.191:554/h264/main/sub/av_stream , cli 23205:23215, tcp: 1
[2020/06/24 15:01:27] D/: # FOUND[0] media: video
[2020/06/24 15:01:27] D/: # FOUND[0] control: rtsp://192.168.0.191:554/h264/main/sub/av_stream/trackID=1
[2020/06/24 15:01:27] D/: # FOUND[0] rtpmap: id:96 format:H264 bitrate:90000
[2020/06/24 15:01:27] D/: # TOTAL FOUND 1
[2020/06/24 15:01:27] D/: TRACK [0] : rtsp://192.168.0.191:554/h264/main/sub/av_stream/trackID=1
[2020/06/24 15:01:27] D/: setup 23205 , 23206, uri: rtsp://192.168.0.191:554/h264/main/sub/av_stream/trackID=1
[2020/06/24 15:01:27] D/: close curl rtsp://192.168.0.191:554/h264/main/sub/av_stream
[2020/06/24 15:01:27] D/: destroying curl rtsp ...
[2020/06/24 15:01:27] D/: destroying curl rtsp ... done
[2020/06/24 15:01:31] D/: close curl rtsp://192.168.0.191:554/h264/main/sub/av_stream
[2020/06/24 15:01:31] D/: ReEnable rtsp client [1] rtsp://192.168.0.191:554/h264/main/sub/av_stream
[2020/06/24 15:01:31] D/: curlto rtsp://192.168.0.191:554/h264/main/sub/av_stream , cli 23205:23215, tcp: 1
[2020/06/24 15:01:31] D/: # FOUND[0] media: video
[2020/06/24 15:01:31] D/: # FOUND[0] control: rtsp://192.168.0.191:554/h264/main/sub/av_stream/trackID=1
[2020/06/24 15:01:31] D/: # FOUND[0] rtpmap: id:96 format:H264 bitrate:90000
[2020/06/24 15:01:31] D/: # TOTAL FOUND 1
[2020/06/24 15:01:31] D/: TRACK [0] : rtsp://192.168.0.191:554/h264/main/sub/av_stream/trackID=1
[2020/06/24 15:01:31] D/: setup 23205 , 23206, uri: rtsp://192.168.0.191:554/h264/main/sub/av_stream/trackID=1
[2020/06/24 15:01:31] D/: close curl rtsp://192.168.0.191:554/h264/main/sub/av_stream
[2020/06/24 15:01:31] D/: destroying curl rtsp ...
[2020/06/24 15:01:31] D/: destroying curl rtsp ... done
[2020/06/24 15:01:35] D/: close curl rtsp://192.168.0.191:554/h264/main/sub/av_stream
[[2020/06/24 15:01:35] W/: (threadRtpTcpFunc in unit_rtsp_client.cpp:210): rtsp client no receive rtp data in 3 sec. reconnect it!
[2020/06/24 15:01:35] W/: (play in curl_rtsp.cpp:176): PLAY rtsp://192.168.0.191:554/h264/main/sub/av_stream failed.
[2020/06/24 15:01:35] E/: (enable in unit_rtsp_client.cpp:279): rtsp client connect rtsp://192.168.0.191:554/h264/main/sub/av_stream failed.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
之前视频还能看到画面,现在直接画面没有了。。。
|
|