keshavdv / unifi-cam-proxy

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

Live View not working with Ezviz #381

Open philippkayser opened 1 week ago

philippkayser commented 1 week ago

Camera

Ezviz

Firmware version of the camera

No response

Description

I try to use the camproxy with EZVIZ Cameras.

But just the snapshot is working, the liveview is stuck.

unifi-cam-proxy-1 | 2024-06-25 09:06:37 25a43f4dcc76 RTSPCam[1] INFO Spawning ffmpeg for video3 (****): ffmpeg -nostdin -loglevel error -y -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -use_wallclock_as_timestamps 1 -timeout 15000000 -rtsp_transport tcp -i "rtsp://admin:****@10.****:554/H.264" -c:v copy -ar 32000 -ac 1 -codec:a aac -b:a 32k -metadata streamName=**** -f flv - | /usr/local/bin/python -m unifi.clock_sync --write-timestamps | nc 192.168.**** 7550 unifi-cam-proxy-1 | 2024-06-25 09:06:37 25a43f4dcc76 RTSPCam[1] INFO Processing [NetworkStatus] message unifi-cam-proxy-1 | 2024-06-25 09:06:37 25a43f4dcc76 RTSPCam[1] INFO Processing [GetSystemStats] message unifi-cam-proxy-1 | 2024-06-25 09:06:38 25a43f4dcc76 RTSPCam[1] INFO Processing [NetworkStatus] message unifi-cam-proxy-1 | 2024-06-25 09:06:38 25a43f4dcc76 RTSPCam[1] INFO Processing [GetSystemStats] message unifi-cam-proxy-1 | 2024-06-25 09:06:42 25a43f4dcc76 RTSPCam[1] INFO Processing [ChangeIspSettings] message unifi-cam-proxy-1 | 2024-06-25 09:06:42 25a43f4dcc76 RTSPCam[1] INFO Processing [ChangeOsdSettings] message unifi-cam-proxy-1 | 2024-06-25 09:06:42 25a43f4dcc76 RTSPCam[1] INFO Processing [ChangeSoundLedSettings] message unifi-cam-proxy-1 | 2024-06-25 09:06:42 25a43f4dcc76 RTSPCam[1] INFO Processing [ChangeVideoSettings] message unifi-cam-proxy-1 | 2024-06-25 09:06:42 25a43f4dcc76 RTSPCam[1] INFO Processing [ChangeSmartMotionSettings] message unifi-cam-proxy-1 | 2024-06-25 09:06:42 25a43f4dcc76 RTSPCam[1] INFO Processing [EnableLogging] message unifi-cam-proxy-1 | 2024-06-25 09:06:42 25a43f4dcc76 RTSPCam[1] INFO Processing [ChangeDeviceSettings] message unifi-cam-proxy-1 | 2024-06-25 09:06:42 25a43f4dcc76 RTSPCam[1] INFO Processing [ChangeDeviceSettings] message unifi-cam-proxy-1 | 2024-06-25 09:06:42 25a43f4dcc76 RTSPCam[1] INFO Processing [SmartMotionTest] message unifi-cam-proxy-1 | 2024-06-25 09:06:42 25a43f4dcc76 RTSPCam[1] INFO Processing [ChangeVideoSettings] message

How to reproduce

No response

Expected behaviour

No response

Screenshots

No response

Additional information

No response

Rylan-Meilutis commented 5 days ago

I have the same issue with the generic rtsp camera, maybe a change made in unify protect?

In the console I see the following repeating multiple times

Missing queryFn

WebSocket connection to 'wss://<the_ip>:7443/ws/livestream?uniqid=ws-40f2e834-81f7-47e7-828e-1db2a3625104' failed: 
thekev commented 21 hours ago

I also cannot use live view with rtsp, hikvision, or frigate. Protect v4.0.33. It's not a camera specific problem. I have been unable to glean what exactly is failing. Comparing to the way a stream starts for my G4 doorbell pro (the only unifi cam I have), it's not the same. ¯_(ツ)_/¯