-
Notifications
You must be signed in to change notification settings - Fork 190
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
[OTHER] Slow times of stopping the camera recording #1136
Comments
First thing to note is that Also, maybe put a |
With splitting the
The results:
If I add a |
Thanks for the update. So it sounds like stopping a camera is taking about 0.2 seconds, the bulk of which is stopping the encoder. It looks from the debug like this might be a Compute Module 4, is that right? Stopping the encoder is probably a bit slow because it does flush out all the submitted frames before stopping. Maybe that's something that could be changed? If you were up for some experimentation, you could go to this line and replace it by
(Strictly, we should add some code after the while loop to empty the queue and |
Yes, it's a CM4 module. I am running on picamera2
This version is already reliant on Is there any trick we could do to modify the encoder state from the outside? I tried setting |
Oh, one thing I didn't notice, what happens if you do |
Still the same:
|
Can't explain that. You might have to put some instrumentation into the code to see when things are happening. |
I am working on a module that uses two cameras connected to the board. Both of these cameras run on video stream mode (though for the sake of this mini example I've let one run in capture mode and one in video mode).
This is quite a time sensitive application so I need to make sure that the whole flow runs as quick as possible. However, in my main app I am noticing times when stoping the camera recording takes from 200-400ms, which seems to much.
Sample code:
Sample output:
Notice how much quicker the
stop
is compared tostop_recording
.Any ideas?
The text was updated successfully, but these errors were encountered: