For an installation project, I have a webcam that records video when people press a button. However, t seems that after some time, the camera is not responding anymore, the jit.grab is not sending out matrixes anymore. Anyone knows how to keep the camera running?
If the camera starts to work again by closing and re-opening the device, then the solution should be simple.
If you expect it to be normally sending out frames, then it’s quite easy to know when it’s not. You could use a timer that keeps resetting when a new frame comes in, and if a certain amount of time passes when you’ve not received a frame, then send a sequence of messages to jit.qt.grab. (send close message, wait 5 seconds, send open message, adjust any other settings as necessary)
Hope that’s helpful.
I had the same problem with my video camera, it would auto-shutoff after 5 minutes if there was no buttons pressed etc. I did a hack workaround with a remote control, but it was less than optimal. Opening and closing the camera worked sometimes but crashed others, but that was probably an OS/camera thing that didn’t play well together. Haven’t seen the crash elsewhere.
C74 RSS Feed | © Copyright Cycling '74