I don't know why using pyav for rtsp stream object detection results in errors, but not when using ffmpeg and opencv #1717
Unanswered
hanruiyao163
asked this question in
1. Help
Replies: 1 comment
-
I wonder if the video buffers are getting overwritten /overflowing because yolo is taking too long to identify things. Maybe you could clone the frame, and queue them in a separate buffer and process them in another thread so that it won't block the frame retrieval. From there you can see how many backlog frames you are getting. If it starts growing too large, you could skip frames to keep up or shrink them down or get a CUDA NVIDIA GPU with optimized opencv/ffmpeg code, or maybe a Mac M4 Max, or wait for the NVIDIA Digits Computer. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use the following code to get the rtsp stream, perform object detection and then push the stream
It throws many errors and causes screen stuttering and tearing
But the following code works fine:
Beta Was this translation helpful? Give feedback.
All reactions