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

Picamera times out and kills process sometimes #1

Open
mohsin opened this issue Nov 21, 2022 · 0 comments
Open

Picamera times out and kills process sometimes #1

mohsin opened this issue Nov 21, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@mohsin
Copy link
Owner

mohsin commented Nov 21, 2022

Sometimes the camera times out during the recording phase.

Traceback (most recent call last):
  File "/home/mohsin/cat-detector/main.py", line 6, in <module>
    WebStreamer() if is_setup else CatDetector()
  File "/home/mohsin/cat-detector/catdetector.py", line 115, in __init__
    handler.tick()
  File "/home/mohsin/cat-detector/catdetector.py", line 64, in tick
    self.camera.split_recording(path + datetime.datetime.now().strftime("%H%M") + '-' + str(self.i) + '-' + 'motion.h264')
  File "/home/mohsin/.local/lib/python3.9/site-packages/picamera/camera.py", line 1106, in split_recording
    encoder.split(output, options.get('motion_output'))
  File "/home/mohsin/.local/lib/python3.9/site-packages/picamera/encoders.py", line 857, in split
    raise PiCameraRuntimeError('Timed out waiting for a split point')
picamera.exc.PiCameraRuntimeError: Timed out waiting for a split point
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant