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
When i run the command i get this error:
$ python3 server.py
Initializing camera
Initializing websockets server on port 8084
Initializing HTTP server on port 8000
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/lib/python3/dist-packages/picamera/camera.py", line 1196, in stop_recording
self.wait_recording(0, splitter_port)
File "/usr/lib/python3/dist-packages/picamera/camera.py", line 1167, in wait_recording
encoder.wait(timeout)
File "/usr/lib/python3/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/lib/python3/dist-packages/picamera/camera.py", line 1167, in wait_recording
encoder.wait(timeout)
File "/usr/lib/python3/dist-packages/picamera/encoders.py", line 398, in wait
raise self.exception
File "/usr/lib/python3/dist-packages/picamera/encoders.py", line 267, in _callback
stop = self._callback_write(buf)
File "/usr/lib/python3/dist-packages/picamera/encoders.py", line 580, in _callback_write
return super(PiRawMixin, self)._callback_write(buf, key)
File "/usr/lib/python3/dist-packages/picamera/encoders.py", line 921, in _callback_write
return super(PiVideoEncoder, self)._callback_write(buf, key)
File "/usr/lib/python3/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 used this code in Raspberry Pi 3B+, and it worked well. But in pi zero w, i'm getting error.
The text was updated successfully, but these errors were encountered:
When i run the command i get this error:
$ python3 server.py
Initializing camera
Initializing websockets server on port 8084
Initializing HTTP server on port 8000
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/lib/python3/dist-packages/picamera/camera.py", line 1196, in stop_recording
self.wait_recording(0, splitter_port)
File "/usr/lib/python3/dist-packages/picamera/camera.py", line 1167, in wait_recording
encoder.wait(timeout)
File "/usr/lib/python3/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/lib/python3/dist-packages/picamera/camera.py", line 1167, in wait_recording
encoder.wait(timeout)
File "/usr/lib/python3/dist-packages/picamera/encoders.py", line 398, in wait
raise self.exception
File "/usr/lib/python3/dist-packages/picamera/encoders.py", line 267, in _callback
stop = self._callback_write(buf)
File "/usr/lib/python3/dist-packages/picamera/encoders.py", line 580, in _callback_write
return super(PiRawMixin, self)._callback_write(buf, key)
File "/usr/lib/python3/dist-packages/picamera/encoders.py", line 921, in _callback_write
return super(PiVideoEncoder, self)._callback_write(buf, key)
File "/usr/lib/python3/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 used this code in Raspberry Pi 3B+, and it worked well. But in pi zero w, i'm getting error.
The text was updated successfully, but these errors were encountered: