seydx / homebridge-camera-ui

Homebridge plugin for RTSP Cameras with HSV, motion detection support, Image Rekognition, Web UI to manage/watch streams and WebApp support
MIT License
647 stars 92 forks source link

Raspberry PICam stream not prebuffering and console output is minimal at best. #653

Closed Leopere closed 1 year ago

Leopere commented 2 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Configure a RPI CSI Bridge camera module and set some basic defaults and go. Get stream running okay but then have it be fairly prone to killing the stream. Also Prebuffer randomly dies.

{
  "logLevel": "info",
  "port": 8081,
  "atHomeSwitch": false,
  "options": {
    "videoProcessor": "/usr/local/lib/node_modules/homebridge-camera-ui/node_modules/ffmpeg-for-homebridge/ffmpeg"
  },
  "ssl": {
    "active": false
  },
  "http": {
    "active": false,
    "port": 7272,
    "localhttp": false
  },
  "smtp": {
    "active": false,
    "port": 2727,
    "space_replace": "+"
  },
  "ftp": {
    "active": false,
    "useFile": false,
    "port": 5050
  },
  "mqtt": {
    "active": false,
    "tls": false,
    "port": 1883
  },
  "cameras": [
    {
      "name": "PICamNVFisheye",
      "manufacturer": "Iridium",
      "model": "PICam",
      "serialNumber": "1",
      "motion": true,
      "unbridge": true,
      "hsv": true,
      "prebuffering": true,
      "prebufferLength": 4,
      "videoConfig": {
        "source": "-i /dev/video0",
        "maxWidth": 1920,
        "maxHeight": 1080,
        "vcodec": "libx264",
        "acodec": "",
        "audio": false,
        "subSource": "-i /dev/video0",
        "stillImageSource": "-i /dev/video0",
        "maxStreams": 3,
        "maxFPS": 30,
        "maxBitrate": 1000
      },
      "videoanalysis": {
        "active": false
      },
      "motionTimeout": 15,
      "smtp": {
        "email": "PICamNVFisheye"
      },
      "mqtt": {},
      "hksvConfig": {
        "maxWidth": "1920",
        "maxHeight": "1080",
        "maxFPS": "30",
        "maxBitrate": "",
        "vcodec": "libx264"
      }
    }
  ]
}

Expected behavior Consistent streaming without error.

Logs

[28/09/2022, 11:36:25] [CameraUI]  WARNING  PICamNVFisheye: Can not access prebuffer stream, skipping: Error: Prebuffer process not started!
[28/09/2022, 11:36:25] [CameraUI] PICamNVFisheye: Starting video stream: 1280x720, 30 fps, 299 kbps 
[28/09/2022, 11:36:27] [CameraUI] PICamNVFisheye: Stopped video stream.

Environment

outsharded commented 2 years ago

Try enabling 'Force Prebuffer'

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Leopere commented 1 year ago

This was never resolved it appears that the community is non-responsive.