You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: