Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live rtsp stream does not contain bounding boxes and analytics #720

Open
divdaisymuffin opened this issue Nov 26, 2020 · 4 comments
Open

Comments

@divdaisymuffin
Copy link

I am using live CCTV coverage in the Smart-city demo, so now I have bounding boxes visible in the recording page, in the form of snippet of 1 min videos. But in the home page, the preview is available, there I am getting direct stream from the camera (live-stream) and not the processed output which contains the analytics and bounding boxes for the objects.

So what I want is to have analytics (bounding boxes and labels) on the preview-template with live stream, or to have processed videos at the home page preview section.

Please help me in this issue.

Thanks

@xwu2git
Copy link
Collaborator

xwu2git commented Nov 27, 2020

If using proceed video as preview, there will be about a minute delay. Is this acceptable? The initial sample has it. If you go back a few commits, before webrtc is introduced, you should see this behavior. Adding analytics on top will be very similar to what recording does.

Current preview utilizes webrtc streaming for real-time response, latency about 200ms. The drawback is that timing isn’t fully aligned with the analytics metadata time stamps. Therefore it will be difficult to display analytics on top of webrtc streamed video. We are still exploring possible workarounds.

@divdaisymuffin
Copy link
Author

@xwu2git Thanks for the reply, Actually I am working with face recognition, and I want to have analytics like bounding boxes and face labels on the face with real-time response. so, you are suggesting that, either we can have the recording video (1min delay) in the preview-template at the home page or else with the live stream the analytics is a issue with the current release.

Please help me to understand it further.

@xwu2git
Copy link
Collaborator

xwu2git commented Nov 30, 2020

To overlay bounding boxes on top of the video playback, the two streams must use the same time base. The bounding box time stamps are marked by the analytics pipeline. The time base is when the pipeline makes the rtsp connection. The video segments are recorded in the same pipeline using the same time base. Thus the bounding boxes can overlay on top of the recorded segments. Real-time preview, however, goes through a different pipeline, where the webrtc server pulls streams directly from the camera and then pushes to the browser html5 video box. These two pipelines don’t share the same time base thus there is no good way to align the time stamps to overlay bounding boxes on top.

@divdaisymuffin
Copy link
Author

Okay thank you @xwu2git for the detailed explanation of the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants