使用我的picamera进行流媒体播放时出现问题

时间:2019-04-21 05:41:21

标签: python camera streaming

我在覆盆子py上放了一个Servur,用于传输PiCamera的视频。但是,当与客户端的连接丢失时,我尝试重新打开它以便客户端重新连接。但是这样做的时候,我得到了这个错误:

curl /files/some-other-file.csv

我试图清理所有的变种以获得一些资源,但是没有用。

mmal: mmal_vc_port_enable: failed to enable port vc.null_sink:in:0(OPQV): ENOSPC
mmal: mmal_port_enable: failed to enable connected port (vc.null_sink:in:0(OPQV))0x70804730 (ENOSPC)
mmal: mmal_connection_enable: output port couldn't be enabled
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "/media/pi/INSTINCT/bubbabot4/client/serveur_video.py", line 38, in _connection_avec_client
    self._envoit_image()
  File "/media/pi/INSTINCT/bubbabot4/client/serveur_video.py", line 43, in _envoit_image
    camera=picamera.PiCamera()
  File "/usr/lib/python3/dist-packages/picamera/camera.py", line 433, in __init__
    self._init_preview()
  File "/usr/lib/python3/dist-packages/picamera/camera.py", line 513, in _init_preview
    self, self._camera.outputs[self.CAMERA_PREVIEW_PORT])
  File "/usr/lib/python3/dist-packages/picamera/renderers.py", line 558, in __init__
    self.renderer.inputs[0].connect(source).enable()
  File "/usr/lib/python3/dist-packages/picamera/mmalobj.py", line 2212, in enable
    prefix="Failed to enable connection")
  File "/usr/lib/python3/dist-packages/picamera/exc.py", line 184, in mmal_check
    raise PiCameraMMALError(status, prefix)
picamera.exc.PiCameraMMALError: Failed to enable connection: Out of resources

0 个答案:

没有答案