zacharee / unifi-cam-proxy

Enable non-Ubiquiti cameras to work with Unifi NVR
MIT License
27 stars 6 forks source link

One frame every few minutes via browser Protect, expected operation via the phone app (Protect 4.0.33) #6

Open Camacazzi opened 3 months ago

Camacazzi commented 3 months ago

Camera

No response

Firmware version of the camera

No response

Description

Currently seems like Protect 4.0.33 broke viewing camera streams via the browser, but still works on the Unifi Protect app (tested on iOS).
Only seem to get one frame every few minutes, console doesn't appear to report anything out of the ordinary.

How to reproduce

No response

Expected behaviour

No response

Screenshots

No response

Additional information

No response

jasoryeh commented 3 months ago

Looks like the Unifi Protect application doesn't seem to like the encoding option -codec:a aac that is included, setting the argument --ffmpeg-args="-c copy" (which overrides the aac re-encoding) seems to fix this issue (edit: might need to copy the original args for ffmpeg from the logs but change the aac to copy).

satary commented 3 months ago

Got the same issue here, broken pipe even if I add --ffmpeg-args="-c:a copy"

Camacazzi commented 2 months ago

Adding --ffmpeg-args="-c copy" does fix web view indeed, but it seems to be breaking iOS view if you have a single channel selected?