unifi-cam-proxy
keshavdv/unifi-cam-proxy:dev
https://github.com/keshavdv/unifi-cam-proxy/
bridge
sh
false
https://github.com/keshavdv/unifi-cam-proxy/issues
https://unifi-cam-proxy.com/
SSH to your config folder (/mnt/user/appdata/unifi-cam-proxy)
Run:
openssl ecparam -out /tmp/private.key -name prime256v1 -genkey -noout
openssl req -new -sha256 -key /tmp/private.key -out /tmp/server.csr -subj "/C=TW/L=Taipei/O=Ubiquiti Networks Inc./OU=devint/CN=camera.ubnt.dev/emailAddress=support@ubnt.com"
openssl x509 -req -sha256 -days 36500 -in /tmp/server.csr -signkey /tmp/private.key -out /tmp/public.key
cat /tmp/private.key /tmp/public.key > client.pem
rm -f /tmp/private.key /tmp/public.key /tmp/server.csr
to create an cert for your cam.
Get a token: https://{NVR IP}/proxy/protect/api/cameras/manage-payload
Modify the Post Parameters to your needs. (check documentation)
HomeAutomation: Productivity: Network:Proxy Network:Privacy Network:Other Status:Beta
--restart=unless-stopped
unifi-cam-proxy --host NVRIP --cert /client.pem --token yourToken rtsp -s rtsp://admin:PASSWORD@192.168.100.210:554/h264Preview_01_main --ffmpeg-args='-c:v copy -bsf:v "h264_metadata=tick_rate=60000/1001" -ar 32000 -ac 1 -codec:a aac -b:a 32k'
1704818315
/mnt/user/appdata/unifi-cam-proxy/client.pem