homebridge-plugins / homebridge-camera-ffmpeg

Homebridge Plugin Providing FFmpeg-based Camera Support
https://homebridge-plugins.github.io/homebridge-camera-ffmpeg/
Apache License 2.0
1.09k stars 227 forks source link

Add more than one camera to config #818

Closed resgroupmsr closed 4 years ago

resgroupmsr commented 4 years ago

Describe The Problem: Since updating to newest plug in, my previous configuration of 7 working cameras will not run. I've removed the plug in, deleted all reference to it in config, re-added the plug in and can get 1 camera working again. I then tried to re-add the other six cameras via copy and paste from old back up but it will not work.

This is running on a dedicated Raspberry PI, nothing else running on it.

Basically I just need to know how to properly add in more than one camera

To Reproduce: Any time another camera added, it crashes

Logs:

Show the Homebridge logs here.
Remove any sensitive information.

Homebridge Config:

ONE CAMERA WORKING { "server": { "port": 8080, "origin": "*", "autostart": 0, "home_setup_id": "X-HM://0023ISYWYIL6H", "polling_seconds": 5 }, "client": { "default_route": "status", "inactive_logoff": 30, "theme": "throwback-blue", "locale": "en", "temp_units": "celsius", "country_code": "CA", "postal_code": "XXXX", "latitude": "XXXX", "longitude": "XXXX" }, "bridge": { "name": "HOOBS", "port": 51826, "pin": "031-45-154", "username": "61:B2:43:66:87:B0" }, "description": "HOOBS for homekit", "ports": {}, "plugins": [ "homebridge-nest", "homebridge-smartthings-v2", "homebridge-camera-ffmpeg" ], "accessories": [], "platforms": [ { "platform": "SmartThings-v2", "plugin_map": { "plugin_name": "homebridge-smartthings-v2" }, "name": "SmartThings-v2", "direct_port": 8000, "temperature_unit": "C", "validateTokenId": false, "disableErrorReporting": false, "logConfig": { "debug": false, "showChanges": true, "hideTimestamp": true, "hideNamePrefix": true, "file": { "enabled": true, "level": "Good" } }, "app_url": "XXXX", "app_id": "XXXXX", "access_token": "XXXXX" }, { "platform": "Nest", "plugin_map": { "plugin_name": "homebridge-nest" }, "name": "Nest", "googleAuth": { "cookies": "XXXXX", "issueToken": "XXXXX", "apiKey": "XXXX" } }, { "platform": "Camera-ffmpeg", "plugin_map": { "plugin_name": "homebridge-camera-ffmpeg" }, "name": "Camera FFmpeg", "cameras": [ { "name": "Camera Driveway", "manufacturer": "Reolink", "model": "RLC-410W", "videoConfig": { "source": "-rtsp_transport tcp -re -i rtsp://xxxxxx@192.168.1.241:554/h264Preview_01_main", "stillImageSource": "-i http://192.168.1.241/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=wuuPhkmUCeI9WG7C&user=admin&password=xxxxx", "maxStreams": 2, "maxWidth": 1280, "maxHeight": 720, "maxFPS": 15, "maxBitrate": 300, "vcodec": "h264_omx -preset ultrafast", "packetSize": 1316, "audio": false, "debug": true } } ] } ], "package_manager": "npm", "system": "hoobs" }

USED TO WORK { "server": { "port": 8080, "origin": "*", "autostart": 0, "home_setup_id": "X-HM://0023ISYWYIL6H", "polling_seconds": 5 }, "client": { "default_route": "status", "inactive_logoff": 30, "theme": "throwback-blue", "locale": "en", "temp_units": "celsius", "country_code": "CA", "postal_code": "", "latitude": "", "longitude": "" }, "bridge": { "name": "HOOBS", "port": 51826, "pin": "031-45-154", "username": "61:B2:43:66:87:B0" }, "description": "HOOBS for homekit", "ports": {}, "plugins": [ "homebridge-camera-ffmpeg", "homebridge-nest", "homebridge-smartthings-v2" ], "accessories": [], "platforms": [ { "platform": "Camera-ffmpeg", "cameras": [ { "name": "Camera Front Door", "manufacturer": "Reolink", "model": "RLC-410W", "videoConfig": { "source": "-rtsp_transport tcp -re -i rtsp://xxxxx@192.168.1.240:554/h264Preview_01_main", "stillImageSource": "-i http://192.168.1.240/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=wuuPhkmUCeI9WG7C&user=admin&password=xxxxx", "maxStreams": 2, "maxWidth": 1280, "maxHeight": 720, "maxFPS": 15, "maxBitrate": 300, "vcodec": "libx264 -preset ultrafast", "packetSize": 1316, "audio": false, "debug": true } } ] }, { "platform": "Camera-ffmpeg", "cameras": [ { "name": "Camera Driveway", "manufacturer": "Reolink", "model": "RLC-410W", "videoConfig": { "source": "-rtsp_transport tcp -re -i rtsp://xxxxx@192.168.1.241:554/h264Preview_01_main", "stillImageSource": "-i http://192.168.1.241/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=wuuPhkmUCeI9WG7C&user=admin&password=xxxxx", "maxStreams": 2, "maxWidth": 1280, "maxHeight": 720, "maxFPS": 15, "maxBitrate": 300, "vcodec": "h264_omx -preset ultrafast", "packetSize": 1316, "audio": false, "debug": true } } ] }, { "platform": "Camera-ffmpeg", "cameras": [ { "name": "Camera Patio", "manufacturer": "Reolink", "model": "RLC-410W", "videoConfig": { "source": "-rtsp_transport tcp -re -i rtsp://xxxxx@192.168.1.243:554/h264Preview_01_main", "stillImageSource": "-i http://192.168.1.243/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=wuuPhkmUCeI9WG7C&user=admin&password=xxxxx", "maxStreams": 2, "maxWidth": 1280, "maxHeight": 720, "maxFPS": 15, "maxBitrate": 300, "vcodec": "h264_omx -preset ultrafast", "packetSize": 1316, "audio": false, "debug": true } } ] }, { "platform": "Camera-ffmpeg", "cameras": [ { "name": "Camera Living Room", "manufacturer": "Amcrest", "model": "IP3M-HX2W", "videoConfig": { "source": "-rtsp_transport tcp -re -i rtsp://xxxxx@192.168.1.221/cam/realmonitor?channel=1&subtype=00&authbasic=YWRtaW46bG9sYTk2OTg=", "stillImageSource": "-i http://xxxxx@192.168.1.221/cgi-bin/snapshot.cgi?1", "maxStreams": 2, "maxWidth": 1280, "maxHeight": 720, "maxFPS": 15, "maxBitrate": 300, "vcodec": "copy", "packetSize": 1316, "audio": false, "debug": true } } ] }, { "platform": "Camera-ffmpeg", "cameras": [ { "name": "Camera Garage", "manufacturer": "Amcrest", "model": "IP3M-HX2W", "videoConfig": { "source": "-rtsp_transport tcp -re -i rtsp://xxxx@192.168.1.222/cam/realmonitor?channel=1&subtype=00&authbasic=YWRtaW46bG9sYTk2OTg=", "stillImageSource": "-i http://xxxxx@192.168.1.222/cgi-bin/snapshot.cgi?1", "maxStreams": 2, "maxWidth": 1280, "maxHeight": 720, "maxFPS": 15, "maxBitrate": 300, "vcodec": "copy", "packetSize": 1316, "audio": false, "debug": true } } ] }, { "platform": "Camera-ffmpeg", "cameras": [ { "name": "Camera Kitchen", "manufacturer": "Amcrest", "model": "IP3M-HX2W", "videoConfig": { "source": "-rtsp_transport tcp -re -i rtsp://xxxxx@192.168.1.220/cam/realmonitor?channel=1&subtype=00&authbasic=YWRtaW46bG9sYTk2OTg=", "stillImageSource": "-i http://xxxxx@192.168.1.220/cgi-bin/snapshot.cgi?1", "maxStreams": 2, "maxWidth": 1280, "maxHeight": 720, "maxFPS": 15, "maxBitrate": 300, "vcodec": "copy", "packetSize": 1316, "audio": false, "debug": true } } ] }, { "platform": "Camera-ffmpeg", "cameras": [ { "name": "Camera Basement", "manufacturer": "Amcrest", "model": "IP3M-HX2W", "videoConfig": { "source": "-rtsp_transport tcp -re -i rtsp://xxxx@192.168.1.235/cam/realmonitor?channel=1&subtype=00&authbasic=YWRtaW46bG9sYTk2OTg=", "stillImageSource": "-i http://xxxxx@192.168.1.235/cgi-bin/snapshot.cgi?1", "maxStreams": 2, "maxWidth": 1280, "maxHeight": 720, "maxFPS": 15, "maxBitrate": 300, "vcodec": "copy", "packetSize": 1316, "audio": false, "debug": true } } ] }, { "platform": "SmartThings-v2", "plugin_map": { "plugin_name": "homebridge-smartthings-v2" }, "name": "SmartThings-v2", "direct_port": 8000, "temperature_unit": "C", "validateTokenId": false, "disableErrorReporting": false, "logConfig": { "debug": false, "showChanges": true, "hideTimestamp": true, "hideNamePrefix": true, "file": { "enabled": true, "level": "Good" } }, "app_url": "xxxxx", "app_id": "xxxxx", "access_token": "xxxxx" }, { "platform": "Nest", "plugin_map": { "plugin_name": "homebridge-nest" }, "name": "Nest", "googleAuth": { "cookies": "xxxxx", "issueToken": "xxxxx", "apiKey": "xxxx" } } ], "package_manager": "npm", "system": "hoobs" }



**Screenshots:**
<!-- If applicable, add screenshots to help explain your problem. -->

**Environment:**

* **Node.js Version**: <!-- node -v -->  12.16.2
* **NPM Version**: <!-- npm -v -->  
* **Homebridge Version**: <!-- homebridge -V -->  HOOBS 3.2.6
* **Homebridge Camera FFmpeg Version**:  3.0.3
* **Homebridge Config UI X Plugin Version**:
* **Operating System**: Raspbian

<!-- Click the "Preview" tab before you submit to ensure the formatting is correct. -->
resgroupmsr commented 4 years ago

Finally got it working again. Took a long time of very careful cutting and pasting.