I use decoding of the hai kang SDK provides a callback function for webcams acquisition of streaming video decoding, flow, and then through the opencv to save video for video files, test found that collection of no.6 video stream is not lost frames, but at the same time, collected more than six video streaming, the lost frames, I set up the size of the buffer, the code is as follows:
PlayM4_SetDisplayBuf (nPort [dwWinIndex], 10)
To increase the buffer, streaming collection of more than 6 road, also can appear lost frames,
Acquisition process, the multiple error message appear in the log file, as follows: [the 2018-10-30 16:59:14. 542] [ERR] ID - IP - CHAN [7-10.2. 7.0.x.x - 1] [CGetStreamBase: : GetStreamData] recv error [73], sysError [0] [the 2018-10-30 16:59:14. 542] [ERR] ID - IP - CHAN [6-10.3. 7.0.x.x - 1] [CGetStreamBase: : GetStreamData] recv status [73], length [0] [the 2018-10-30 16:59:14. 571] [ERR] ID - IP - CHAN [1-10.3. 7.0.x.x - 1] [CGetStreamBase: : GetStreamDataType] RTSP DATA error, pRecvdata is to short to get datatype
Collected 10 video streams at the same time, the CPU utilization is 20% or so, using the ultra five kind of cables, it should not be the problem of network bandwidth,
Dear great god have a similar situation, please give a solution, thank you!
CodePudding user response:
From the error message or network to receive failure? Network bandwidth is not enough? Task management and see how much bandwidth?
CodePudding user response:
Hai kang SDK can be saved as a mp4 files, hai kang SDK tested 32 channel will not lose the frame
CodePudding user response:
Hai kang SDK interface without saving?
CodePudding user response:
Thanks for your reply! Now I do is government programs, is through the government network acquisition video streaming webcam, could it be that the public security departments have restrictions on parallel acquisition video? Did you know?