Home > Software engineering >  Hai kang SDK collected multi-channel video frames
Hai kang SDK collected multi-channel video frames

Time:11-22

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?

CodePudding user response:

refer to the second floor corrupt response:
hai kang SDK can be saved as a mp4 files, hai kang SDK tested 32 channel will not lose the frame


Would you like to video streaming within the local area network (LAN) collection of 32 road? Or outside the network?

CodePudding user response:

reference 1st floor zgl7903 response:
from the error message or network receives the failure? Network bandwidth is not enough? Task management and see how much bandwidth?



refer to the second floor corrupt response:
hai kang SDK can be saved as a mp4 files, hai kang SDK tested 32 channel will not lose the frame



The
reference 3 floor youyingbo response:
hai kang SDK interface without saving?


Excuse me, hai kang SDK in decoding the callback function is a static function, this function should be Shared by all threads, that way more video spread to come over, from the function of decoding and flow, will not be out of memory?

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:

Hello, I am now doing project involves hai kang NVR collected multi-channel video streaming part, using hai kang SDK, but register multiple real-time streaming callback function, when to decode the callback function will be very card, how do you solve, you can give me some idea, is the sea NVR use the SDK to obtain multiplexed streaming data,

CodePudding user response:

Note, the hardware condition if it is a network camera, gigabit nics and gigabit Ethernet cable are stable

CodePudding user response:

Hello I'm from the use of decoding the callback to read two lines of code in the NVR flow occurs when the following problem hasn't been solved, can you help me look at it:
Main problem a: two lines of code flow, entering the decoding the interval between the callback function is longer than the 120 ms, print nPort value obviously caton delay;
Main problem b: printed in the decoding callback function parameters have been to a fixed value when nPort, nPort==1 can't distinguish between stream,
C: preserved in display threads of stream data, because the nPort fixed, cannot distinguish stream, can only be displayed alternately two cameras, but significantly caton images, caton rhythms and print npot,
D: when only register all the real-time flow when the callback function, decoding and display all normal,

CodePudding user response:

This is not a sea kang technology more understand q project
  • Related