keshavdv / unifi-cam-proxy

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

Frozen live view and stuttering thumbnail in UDM pro #207

Closed Xgamer911 closed 2 years ago

Xgamer911 commented 2 years ago

I was able to get my 5MP Outdoor Security Cameras, SV3C WiFi IP Cameras to be seen in my UDM Pro protect. It will pull the first frame and show that it is connected Connected and frame. It looks like it will take a new picture every 10-20 seconds and will update in the thumbnail section. However when I go to the live view it will take the last frame and freeze on it.

The unifi-cam-proxy is currently running on my windows 10 host under a new installation of docker. Version below: Client: Cloud integration: v1.0.22 Version: 20.10.13 API version: 1.41 Go version: go1.16.15 Git commit: a224086 Built: Thu Mar 10 14:13:04 2022 OS/Arch: windows/amd64 Context: default Experimental: true

Server: Docker Desktop 4.6.1 (76265) Engine: Version: 20.10.13 API version: 1.41 (minimum version 1.12) Go version: go1.16.15 Git commit: 906f57f Built: Thu Mar 10 14:06:05 2022 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.5.10 GitCommit: 2a1d4dbdb2a1030dc5b01e96fb110a9d9f150ecc runc: Version: 1.0.3 GitCommit: v1.0.3-0-gf46b6ba docker-init: Version: 0.19.0 GitCommit: de40ad0

The docker logs of this container can be seen here.

Please let me know if you need any other logs or information.

dick1980 commented 2 years ago

In the description on Amazon, it says this camera outputs H.265 format as standard - which isn't supported by Protect. Can you change the output to H.264 format?

Xgamer911 commented 2 years ago

I switched my H265 for H264 and I am still getting the above issue.

It did cleared up the error I was getting in the log: proxy-test-proxy-1-1 | Could not write header for output file #0 (incorrect codec parameters ?): Function not implemented proxy-test-proxy-1-1 | Error initializing output stream 0:1 --

It still is pulling a shot every minute or so and still unable to get live view to show. Here is the new docker log file.

Please let me know anything you need to help figure this out.

dick1980 commented 2 years ago

I see a broken pipe error - which version of Protect are you running on the UDMP? If you check out the more recent issues, you’ll see that compatibility is limited up to version 1.21.2 at the moment.

And can you show us the full docker compose file (or the command line)?

Xgamer911 commented 2 years ago

I am currently running UDM Pro Version 1.11.4.

EDIT: Upon further investigation, above is the UDM pro version not protect. The protect version is 1.21.3. After reviewing a few of the other issues that have been submitted, it looks like this might be the issue.

EDIT 2: I have downgrade my Unifi-Protect from 1.21.3 to 1.21.2 and behold it works. I think this issue can be set to resolved. For everyone's knowledge, to downgrade firmware, follow this comment

My docker-compose.yml

version: "3.9" services: proxy-1: restart: unless-stopped image: keshavdv/unifi-cam-proxy volumes:

dick1980 commented 2 years ago

Glad that worked out! As a topic starter, you can close the issue yourself.