|
情况如下:
根据官方提供的https://t.rock-chips.com/forum.p ... &extra=page%3D1
RK3399Pro入门教程(7)RTSP库的使用在我的rk3399prod上面部署相关环境(debian10系统),摄像头是海康威视的摄像头,rtsp视频流主码流参数如下
#define RTSP_URL "rtsp://172.16.40.100:554/Streaming/Channels/401"
#define RTSP_USER "litinghong"
#define RTSP_PWD "Ax30hcDgx9"
运行结果:
toybrick@debian10:~/projects/local_rtsp/build$ ./rtsp_ssd
mpp[16988]: mpp_info: mpp version: unknown mpp version for missing VCS info
mpp[16988]: mpp_rt: NOT found ion allocator
mpp[16988]: mpp_rt: found drm allocator
[2021/10/14 02:12:39] D/: listening rtp port 43861
[2021/10/14 02:12:39] D/: listening rtp port 43851
[2021/10/14 02:12:39] D/: listening rtcp port 43852
[2021/10/14 02:12:39] D/: listening rtcp port 43862
[2021/10/14 02:12:39] D/: curlto rtsp://172.16.40.100:554/Streaming/Channels/401 , cli 43851:43861, tcp: 0
[2021/10/14 02:12:39] D/: # FOUND[0] media: video
[2021/10/14 02:12:39] D/: # FOUND[0] rtpmap: id:96 format:H264 bitrate:90000
[2021/10/14 02:12:39] D/: # FOUND[0] control: trackID=video
[2021/10/14 02:12:39] D/: # TOTAL FOUND 1
[2021/10/14 02:12:39] D/: TRACK [0] : trackID=video
[2021/10/14 02:12:39] D/: setup 43851 , 43852, uri: rtsp://172.16.40.100:554/Streaming/Channels/401/trackID=video
[2021/10/14 02:12:39] D/: Video SSRC Changed! 0 -> 1459366289
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 65535 > 10052
[2021/10/14 02:12:39] D/: RTP4UP_UNIT_SE [0x559d55f7e8] loss/recv:-1849.47/ 0.03 SEI|SPS|PPS|NI|I: 0.00|0.00|0.00|0.03|0.00
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10052 > 10055
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10055 > 10059
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10059 > 10066
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10066 > 10073
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10073 > 10077
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10077 > 10084
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10084 > 10091
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10091 > 10098
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10098 > 10105
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10105 > 10109
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10109 > 10116
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10116 > 10123
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10123 > 10130
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10131 > 10136
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10136 > 10139
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10139 > 10144
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10144 > 10148
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10149 > 10155
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10155 > 10161
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10161 > 10166
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10166 > 10171
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10171 > 10177
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10177 > 10184
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10184 > 10191
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10191 > 10198
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10198 > 10203
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10203 > 10209
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10209 > 10211
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10211 > 10217
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10217 > 10224
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10224 > 10231
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10231 > 10235
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10235 > 10237
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10242 > 10246
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10246 > 10249
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10249 > 10255
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10255 > 10261
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10261 > 10266
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10266 > 10272
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10272 > 10275
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10278 > 10280
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10280 > 10284
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10284 > 10291
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10291 > 10298
[2021/10/14 02:12:39] W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 10298 > 10301
frame recived 1032
frame recived 872
frame recived 824
mpp[16988]: mpp_log: decode_get_frame failed, return -8.
frame recived 872
frame recived 824
frame recived 856
frame recived 888
frame recived 808
frame recived 840
frame recived 920
frame recived 792
mpp[16988]: mpp_log: decode_get_frame failed, return -8.
frame recived 872
frame recived 840
frame recived 824
frame recived 824
frame recived 856
frame recived 872
frame recived 824
mpp[16988]: mpp_log: decode_get_frame failed, return -8.
frame recived 888
frame recived 840
frame recived 856
frame recived 920
frame recived 856
frame recived 968
frame recived 904
frame recived 872
mpp[16988]: mpp_log: decode_get_frame failed, return -8.
frame recived 920
frame recived 968
frame recived 1096
frame recived 968
frame recived 1000
frame recived 1016
frame recived 920
mpp[16988]: mpp_log: decode_get_frame failed, return -8.
frame recived 920
frame recived 952
frame recived 1048
frame recived 1032
frame recived 936
frame recived 920
frame recived 968
frame recived 904
mpp[16988]: mpp_log: decode_get_frame failed, return -8
但是将主码流换成子码流
"rtsp://172.16.40.100:554/Streaming/Channels/402"
程序就能正常运行,有视频显示框弹出,请问大家有遇到这种情况吗?请各位技术专家指导一下,感谢
|
|