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

Change of resolution produces script failure #53

Open
mirobiro opened this issue Sep 5, 2020 · 0 comments
Open

Change of resolution produces script failure #53

mirobiro opened this issue Sep 5, 2020 · 0 comments

Comments

@mirobiro
Copy link

mirobiro commented Sep 5, 2020

I have been attempting to run server.py with a resolution of 1920x1080 and a low resolution of 5 fps on a Pi Zero. No problem is encountered with the script unmodified. On each occasion the script produces an error of the following kind. 👍

/usr/local/lib/python3.7/dist-packages/picamera/encoders.py:544: PiCameraResolutionRounded: frame size rounded up from 1920x1080 to 1920x1088
width, height, fwidth, fheight)))
Initializing camera
Initializing websockets server on port 8084
Initializing HTTP server on port 8082
Initializing broadcast thread
Spawning background conversion process
Starting recording
Starting websockets thread
Starting HTTP server thread
Starting broadcast thread
Waiting for background conversion process to exit
Stopping recording
Traceback (most recent call last):
File "server.py", line 184, in
main()
File "server.py", line 170, in main
camera.stop_recording()
File "/usr/local/lib/python3.7/dist-packages/picamera/camera.py", line 1196, in stop_recording
self.wait_recording(0, splitter_port)
File "/usr/local/lib/python3.7/dist-packages/picamera/camera.py", line 1167, in wait_recording
encoder.wait(timeout)
File "/usr/local/lib/python3.7/dist-packages/picamera/encoders.py", line 398, in wait
raise self.exception
File "server.py", line 165, in main
camera.wait_recording(1)
File "/usr/local/lib/python3.7/dist-packages/picamera/camera.py", line 1167, in wait_recording
encoder.wait(timeout)
File "/usr/local/lib/python3.7/dist-packages/picamera/encoders.py", line 398, in wait
raise self.exception
File "/usr/local/lib/python3.7/dist-packages/picamera/encoders.py", line 267, in _callback
stop = self._callback_write(buf)
File "/usr/local/lib/python3.7/dist-packages/picamera/encoders.py", line 580, in _callback_write
return super(PiRawMixin, self)._callback_write(buf, key)
File "/usr/local/lib/python3.7/dist-packages/picamera/encoders.py", line 921, in _callback_write
return super(PiVideoEncoder, self)._callback_write(buf, key)
File "/usr/local/lib/python3.7/dist-packages/picamera/encoders.py", line 298, in _callback_write
written = output.write(buf.data)
File "server.py", line 106, in write
self.converter.stdin.write(b)
BrokenPipeError: [Errno 32] Broken pipe

I would be grateful for any advice on how this might be resolved. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant