keshavdv / unifi-cam-proxy

Enable non-Ubiquiti cameras to work with Unifi NVR
MIT License
1.65k stars 230 forks source link

Frigate with snapshot-url on Amcrest camera #100

Closed Ranger2959 closed 2 years ago

Ranger2959 commented 2 years ago

Using an Dahua branded Amcrest camera, I can't seem to get the snapshot-url to work. Without the snapshot-url the stream works ok, but the CPU is high.

unifi-cam-proxy-backyard:
    image: keshavdv/unifi-cam-proxy:dev
    container_name: unifi-cam-proxy-backyard
    volumes:
      - '/home/chris/client.pem:/client.pem'
    entrypoint: [unifi-cam-proxy, "--host=192.168.8.9", "-i=192.168.5.6", "--model=UVC G4 Bullet", "--cert=/client.pem", "--verbose", "--token=token", "frigate", "-s=rtsp://username:password@192.168.5.6:554/cam/realmonitor?channel=1&subtype=0", "--mqtt-host=192.168.5.7", "--frigate-camera=backyard", "--snapshot-url=http://192.168.5.6/cgi-bin/snapshot.cgi"]
    restart: always

image

Snapshot error in unifi protect: image

stale[bot] commented 2 years 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.