FPS aquired vs fps written for play back #1112
Replies: 5 comments 14 replies
-
Have you tried to adjust the exposure (make sure it is not doing automatic exposure) |
Beta Was this translation helpful? Give feedback.
-
The framerate of the camera device is set by an internal clock in the camera itself and will be independent of camera-computer communication timing. The interframe interval variation that you see in the script is due to latency in USB communication and CPU timing, or as Bruno has said, potentially automatic exposure on the camera chip. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the input and help. Is there a way to get Bonsai to record video for playback at the rate frames arrive? If the rate is slightly less than set in the video writer (ex actual 28fsp vs set in writer at 30 fps) then the videos end up short. |
Beta Was this translation helpful? Give feedback.
-
You can change the framerate parameter in videowriter to 28.
…On Tue, 8 Nov 2022 at 23:44, aaronjnorris ***@***.***> wrote:
Thanks for the input and help. Is there a way to get Bonsai to record
video for playback at the rate frames arrive? If the rate is slightly less
than set in the video writer (ex actual 28fsp vs set in writer at 30 fps)
then the videos end up short.
—
Reply to this email directly, view it on GitHub
<#1112 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABVZBB32QJX4T5SSM2K7VCLWHLQXBANCNFSM6AAAAAARWTXRXM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
@aaronjnorris Did you find a solution to this problem?, I am currently facing the same issue, but it extends to also not aquiring csv writer files to the specifed precision of for example 1 minute when I use a "timer" connected to a "workflow out" module to end the experiment |
Beta Was this translation helpful? Give feedback.
-
We have had difficulty using general USB cameras for recording videos and then having the length of the recorded video match the time length of the recording because the frame rate set can be set within the video capture node doesn't match the rate actually achieved. We made the script here for troubleshooting this problem. I have seen other discussions on the topic but have not seen any solutions that might work more generally. I would like to have the video writer write at the speed the frames are obtained. Any suggestions on how to do this?
We have been using ELP and Logitech cameras to avoid costs and allow for scaling. We do not need particularly high frame rates (30-60 would be enough). The ability to control these cameras via Bonsai varies and the set frame rate is often not attained in the recording.
I have seen that the interframe interval and be quite variable presumably due to computer delays. Any suggestions on how to control the frame rates of these cameras other than options in the video writer node that appear?
Would also love suggestions on the linked script that adds frame rate, number, and interval to the video!
https://1drv.ms/u/s!AsluozMIo0dagfF3Mx1BAtilJsyLvA?e=KyZRgh
Beta Was this translation helpful? Give feedback.
All reactions