Sunoo / homebridge-camera-ffmpeg

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

Amcrest IP5M-B1186EB-28MM w/ Motion + Doorbell #1425

Open irctrakz opened 10 months ago

irctrakz commented 10 months ago

Manufacturer/Model: Amcrest IP5M-B1186EB-28MM

Homebridge Config:

{
    "platform": "Camera-ffmpeg",
    "name": "Camera FFmpeg",
    "porthttp": 8090,
    "localhttp": true,
    "cameras": [
          {
              "name": "Front Door Cam",
              "manufacturer": "Amcrest",
              "motion": true,
              "doorbell": true,
              "motionDoorbell": true,
              "switches": false,
              "motionTimeout": 0,
              "videoConfig": {
                  "source": "-fflags nobuffer -fflags discardcorrupt -rtsp_transport tcp -analyzeduration 0 -probesize 32 -i rtsp://<username>:<password>@cam.frontdoor.lan:554/cam/realmonitor?channel=1&subtype=0",
                  "stillImageSource": "-analyzeduration 0 -probesize 32 -i http://<username>:<password>@cam.frontdoor.lan/cgi-bin/snapshot.cgi?channel=1",
                  "packetSize": 940,
                  "maxStreams": 4,
                  "maxWidth": 1920,
                  "maxHeight": 1080,
                  "maxBitrate": 4096,
                  "maxFPS": 30,
                  "vcodec": "copy",
                  "audio": false,
                  "debug": false
               },
              "unbridge": "true"
          }
    ]
}

Additional Information:

dahua-alerts config that supports motion activation (aka doorbell) alerts on Homekit devices. i.e. Video notification on AppleTV.

{
    "homebridgeCameraFfmpegHttpPort": 8090,
    "useHttp": true,
    "cameras": [
        {
        "index": 0,
        "cameraName": "Front Door Cam",
        "cameraCredentials": {
            "host": "<ip.addr.of.cam>",
            "user": "<username>",
            "pass": "<password>",
             "useHttp": true
             }
        }
    ],
    "platform": "dahua-alerts"
}

Vendor: Amcrest URL