keshavdv / unifi-cam-proxy

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

invalid choice: ' reolink' #233

Closed repercussion closed 1 year ago

repercussion commented 2 years ago

Attempting to use the command for the Reolink RLC-410-5MP as demoed here.

The command seems to be adding a space before the word "reolink" from my docker-compose file. Here it is:

version: "3.9"
services:
  proxy-1:
    restart: unless-stopped
    image: keshavdv/unifi-cam-proxy
    volumes:
      - "./client.pem:/client.pem"
    command: unifi-cam-proxy -H 192.168.1.1 -i 192.168.1.75 -c client.pem -t xxxxxxxxxx \
      reolink \
      -u xxxxxx \
      -p xxxxxx \
      -s "main" \
      --ffmpeg-args='-c:v copy -vbsf "h264_metadata=tick_rate=60000/1001" -ar 32000 -ac 1 -codec:a aac -b:a 32k'

Removing a space from before "reolink \" yields syntax errors and the container won't start at all.

docker --version
Docker version 20.10.16, build aa7e414

docker-compose --version
docker-compose version 1.29.2, build 5becea4c
networkfusion commented 2 years ago
version: "3.5"
services:
  unifi-protect-cam-proxy-1:
      restart: unless-stopped
      image: keshavdv/unifi-cam-proxy:latest
      volumes:
        - "./client.pem:/client.pem"
      command: unifi-cam-proxy -H 10.0.0.218 --mac 'AA:BB:CC:00:55:66' -i 10.0.0.245 -c /client.pem -t <myToken> reolink -u <myUsername> -p <myPassword> -s "main" --ffmpeg-args='-c:v copy -vbsf "h264_metadata=tick_rate=60000/1001" -ar 32000 -ac 1 -codec:a aac -b:a 32k'

works for me?!

Seems like you are missing the forward slash for the -c command.

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.

repercussion commented 1 year ago

Looks like I am missing the forward slash for the -c command, but it's not there in the linked documentation, either. I will test when I get back to the environment. Thank you for the input!