keshavdv / unifi-cam-proxy

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

Multiple Wyze Cam V3's #178

Closed dpg10 closed 2 years ago

dpg10 commented 2 years ago

I have an instance of the docker container for each camera. Using the following:

'unifi-cam-proxy' '--verbose' '--ip' 'Camera IP' '--host' 'Dream Machine Pro' '--mac' 'MAC' '--cert' '/client.pem' '--token' 'UNIFI TOKEN' 'rtsp' '-s' 'rtsp://user:password@camera ip/live'

I cant seem to reliably get more than 2 cameras to work. Continue to have to reboot cameras and then it will work but another will then stop working. Unifi protect will still show the device but playback will tell me "Unable to load requested video" I reboot the camera and it will start working but then another will start with the same issue. Sometimes I will get 3 or 4 working for a short time but then they will randomly cut out. I have Unifi AC Pro's inside my home and a Unifi Mesh for outdoors. Not exactly sure what I am missing or what I need to change to solve this. I like my Wyze cams but really like the idea of local camera storage on my Dream Machine Pro. Any help would be appreciated. Thank you.

Gigoo25 commented 2 years ago

I have 2 Wyze V3s and 2 Wyze V2s that are pretty reliable. Running in separate docker containers. They are both using the latest RTSP firmware from Wyze. I am running the container with Frigate alongside an RTSP proxy container & Wyze-Bridge RTSP container. The RTSP stream provided by the cameras goes directly to the RTSP proxy and the Wyze proxy RTSP stream goes to directly to Frigate. The reason why its split is that Wyze RTSP proxy does not provide audio. The unifi-cam-proxy is fed by the RTSP proxy stream.

Here are the ffmpeg arguments I am using to run them:

Wyze V2 - "-c:v copy -vbsf \"h264_metadata=tick_rate=20000/1001:fixed_frame_rate_flag=1\" -fflags nobuffer -flags low_delay -ar 8000 -ac 1 -codec:a aac -b:a 8k -strict experimental -drop_pkts_on_overflow 1 -attempt_recovery 1 -recover _any_error 1 -use_wallclock_as_timestamps 1"

Wyze V3 - "-c:v copy -vbsf \"h264_metadata=tick_rate=40000/1001:fixed_frame_rate_flag=1\" -fflags nobuffer -flags low_delay -ar 16000 -ac 1 -codec:a aac -b:a 16k -strict experimental -drop_pkts_on_overflow 1 -attempt_recovery 1 -recov er_any_error 1 -use_wallclock_as_timestamps 1"

Other than that not really much to it. I did force the container to make the cameras G4 Bullets but don't think that makes a difference.

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.

lance-tek commented 2 years ago

what does that command even break down to mean @Gigoo25 ?