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

RTSP feed issue #5

Open
ktsi opened this issue Sep 7, 2023 · 7 comments
Open

RTSP feed issue #5

ktsi opened this issue Sep 7, 2023 · 7 comments

Comments

@ktsi
Copy link

ktsi commented Sep 7, 2023

Hi. The detection works fine for YouTube vids but when trying rtsp feed it freezes after about 2 sec. I am watching the feed simultaneously on another pc so I know the feed is up and running. Any ideas?

I am using a Mac M1.

@rampal-punia
Copy link
Owner

Hi, can you add the error message or any warning at the terminal or at the front end? Or is it stopping abruptly?

@ktsi
Copy link
Author

ktsi commented Sep 9, 2023

Hi there,

Thanks for getting back. Well the image freezes after about 1 -2 seconds. Strange thing is that the logs freeze at the same time but after a while I see an error message and logs start again and then freeze again. Image on the web app is frozen all the time after the initial working period.

Look at this sample:

0: 384x640 3 persons, 1 tv, 44.4ms
Speed: 1.3ms preprocess, 44.4ms inference, 0.4ms postprocess per image at shape (1, 3, 384, 640)

0: 384x640 3 persons, 1 tv, 46.1ms
Speed: 1.3ms preprocess, 46.1ms inference, 0.5ms postprocess per image at shape (1, 3, 384, 640)

0: 384x640 3 persons, 1 tv, 46.0ms
Speed: 1.3ms preprocess, 46.0ms inference, 0.6ms postprocess per image at shape (1, 3, 384, 640)
[h264 @ 0x12763fc20] corrupted macroblock 16 11 (total_coeff=-1)
[h264 @ 0x12763fc20] error while decoding MB 16 11

0: 384x640 3 persons, 1 tv, 62.1ms
Speed: 4.5ms preprocess, 62.1ms inference, 0.5ms postprocess per image at shape (1, 3, 384, 640)

0: 384x640 3 persons, 1 tv, 62.1ms
Speed: 4.3ms preprocess, 62.1ms inference, 0.5ms postprocess per image at shape (1, 3, 384, 640)

0: 384x640 3 persons, 1 tv, 45.4ms
Speed: 1.5ms preprocess, 45.4ms inference, 0.5ms postprocess per image at shape (1, 3, 384, 640)

@ktsi
Copy link
Author

ktsi commented Sep 11, 2023

BTW, I tried with another RTSP feed but I have the same behavior.

@rampal-punia
Copy link
Owner

Are you trying this on a GPU-assisted system?

The inferencing of a video in this system requires a high-end system with at least 4 GB GPU.

@ktsi
Copy link
Author

ktsi commented Sep 15, 2023

It's a MacBook Air M1 with 8 gigs of total ram/vram.

@rampal-punia
Copy link
Owner

rampal-punia commented Sep 16, 2023

👍Yes, you already mentioned that. At my end, I am able to receive the RTSP stream and run detection and tracking.

As you mentioned the error.

0: 384x640 3 persons, 1 tv, 46.0ms
Speed: 1.3ms preprocess, 46.0ms inference, 0.6ms postprocess per image at shape (1, 3, 384, 640)
[h264 @ 0x12763fc20] corrupted macroblock 16 11 (total_coeff=-1)
[h264 @ 0x12763fc20] error while decoding MB 16 11

After the error msgs, it is still performing detections, as here:

0: 384x640 3 persons, 1 tv, 62.1ms
Speed: 4.5ms preprocess, 62.1ms inference, 0.5ms postprocess per image at shape (1, 3, 384, 640)

0: 384x640 3 persons, 1 tv, 62.1ms
Speed: 4.3ms preprocess, 62.1ms inference, 0.5ms postprocess per image at shape (1, 3, 384, 640)

0: 384x640 3 persons, 1 tv, 45.4ms
Speed: 1.5ms preprocess, 45.4ms inference, 0.5ms postprocess per image at shape (1, 3, 384, 640)

So, it is running but the display is not correct... is this what you mean...

@ktsi
Copy link
Author

ktsi commented Sep 16, 2023

Display is frozen. That is the issue. Since logs indicate it is still detecting, what could be the cause?

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