Can I handle Issue with Analytics Plugin detected within the plugin?
AnsweredIssue with Analytics Plugin detected sends an alarm that frames are skipped because frame processing is often slow. However, my VA algorithm has problems if frames are randomly skipped, so I need to know this within the plugin code in order to initialize some arguments in case of skipping. Is it possible?
0
-
Hi Vikram!
Unfortunately SDK does not provide a plugin a way to detect if some frames were skipped.
The current flow is like this:
- Server pushes the frame F0 to the plugin and waits for the metadata back
- In the meantime the camera keeps generating the video
- Server is accumulating those frames into the internal buffer while waiting for the metadata for frame F0
- At some point if the buffer overflow happens(limit is 100 frames per device agent), server will start dropping new frames unless buffer starts to decrease
So saying server's dropping the frames randomly would not be completely correct.
I see 2 options here for you:
- Indirectly track which frames were skipped by following the timestamps using the "expected delay" in between of each frame, since you know the framerate of the video stream
- Take all the incoming frames right away and skip those on the plugin side implementing similar mechanism but with internal sequencing and lower buffer size
0
Please sign in to leave a comment.
Comments
1 comment