hjdhjd / homebridge-unifi-protect

:video_camera: Complete HomeKit integration for all UniFi Protect device types with full support for most features including HomeKit Secure Video, and more. https://homebridge.io
Other
1.46k stars 93 forks source link

camera's won't go live-no streaming #869

Closed poknfunatu2 closed 1 year ago

poknfunatu2 commented 1 year ago

Describe The Problem: The problem is that when using the Home app on my mac, I cannot get a camera live stream. All I get is a snapshot with a counter at the bottom that displays seconds. When I click on the tile, I get a spinner and eventually a blank screen with a no response message.

To Reproduce: I don't need to reproduce, it happens every time.

Logs: [1/4/2023, 10:10:06 AM] [UniFi Protect] BigDavesUDMPRO [UDM-PRO] Front Porch Camera [UVC G3 Flex]: Streaming request from 192.168.10.204: 1280x720@30fps, 299 kbps. Using 1920x1080@25fps (High), 6000 kbps. [1/4/2023, 10:10:06 AM] [UniFi Protect] BigDavesUDMPRO [UDM-PRO] Front Porch Camera [UVC G3 Flex]: FFmpeg process ended unexpectedly with an exit code of 1. [1/4/2023, 10:10:06 AM] [UniFi Protect] BigDavesUDMPRO [UDM-PRO] Front Porch Camera [UVC G3 Flex]: FFmpeg command line that errored out was: /usr/local/lib/node_modules/homebridge-unifi-protect/node_modules/ffmpeg-for-homebridge/ffmpeg -hide_banner -probesize 16384 -max_delay 500000 -r 25 -rtsp_transport tcp -i rtsps://192.168.30.1:7441/nzx9B64JNyrLuWn1?enableSrtp -map 0:v:0 -vcodec copy -payload_type 99 -ssrc 10072149 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params WnJxWQ90z0d/mrzBcIeLHuwuARlofSc9/wd7L6kh srtp://192.168.10.204:58542?rtcpport=58542&localrtcpport=58542&pkt_size=564 -map 0:a:0 -acodec libfdk_aac -profile:a aac_eld -flags +global_header -f null -ar 16k -b:a 24k -bufsize 48k -ac 1 -payload_type 110 -ssrc 16279320 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params m2J7A/VjtVwOuU/p+tLmZGNLFcdS98eQju/RDBNG srtp://192.168.10.204:61338?rtcpport=61338&localrtcpport=61338&pkt_size=188 [1/4/2023, 10:10:06 AM] [UniFi Protect] [rtsp @ 0x7f910b804180] Stream #2: not enough frames to estimate rate; consider increasing probesize

[1/4/2023, 10:10:06 AM] [UniFi Protect] Input #0, rtsp, from 'rtsps://192.168.30.1:7441/nzx9B64JNyrLuWn1?enableSrtp':

[1/4/2023, 10:10:06 AM] [UniFi Protect] Metadata:

[1/4/2023, 10:10:06 AM] [UniFi Protect] title : 7483C23FA224_0

[1/4/2023, 10:10:06 AM] [UniFi Protect] Duration: N/A, start: 0.000000, bitrate: N/A

[1/4/2023, 10:10:06 AM] [UniFi Protect] Stream #0:0: Audio: aac, 48000 Hz, mono, fltp

[1/4/2023, 10:10:06 AM] [UniFi Protect] Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp

[1/4/2023, 10:10:06 AM] [UniFi Protect] Stream #0:2: Video: h264, yuvj420p(pc, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps,

[1/4/2023, 10:10:06 AM] [UniFi Protect] 25 tbr, 90k tbn

[1/4/2023, 10:10:06 AM] [UniFi Protect] [udp @ 0x7f910b90a500] bind failed: Address already in use

[1/4/2023, 10:10:06 AM] [UniFi Protect] srtp://192.168.10.204:58542?rtcpport=58542&localrtcpport=58542&pkt_size=564: Input/output error

[1/4/2023, 10:10:06 AM] [UniFi Protect] BigDavesUDMPRO [UDM-PRO] Front Porch Camera [UVC G3 Flex]: Stopped video streaming session.

Show the Homebridge logs here.
Remove any sensitive information.

Homebridge Configuration:

{ "bridge": { "name": "Homebridge 7C28", "username": "xxxxxxxxxxxxxxxxx", "port": 51477, "pin": "xxxxxxxxxx", "advertiser": "bonjour-hap" }, "accessories": [ { "name": "Wright Home Monitor", "clientId": "xxxxxxxxxxxxxxxxxxxxxxxxxx", "clientSecret": "xxxxxxxxxxxxxxxxxxx", "serialNumber": "2960034790", "refreshInterval": 150, "tokenScope": "read:device:current_values", "accessory": "Airthings" } ], "platforms": [ { "name": "Config", "port": 8581, "auth": "form", "theme": "auto", "tempUnits": "f", "lang": "auto", "platform": "config" }, { "controllers": [ { "address": "192.168.30.1", "password": "xxxxxxxxxxxxx", "username": "Homebridge" } ], "platform": "UniFi Protect" }, { "name": "Hubitat-v2", "app_url_local": "http://192.168.20.65/apps/api/", "app_url_cloud": "https://cloud.hubitat.com/api/xxxxxxxxxxxxxxxxxxxxxxxx/apps/", "use_cloud": true, "app_id": 1436, "access_token": "xxxxxxxxxxxxxxxxxxxx", "direct_ip": "192.168.20.65", "direct_port": 8000, "temperature_unit": "F", "round_levels": true, "adaptive_lighting": true, "adaptive_lighting_offset": 0, "consider_fan_by_name": true, "consider_light_by_name": true, "validateTokenId": true, "logConfig": { "debug": true, "showChanges": true }, "platform": "Hubitat-v2" }, { "statePollingInterval": 30, "debug": false, "receivers": [ { "name": "Yamaha Receiver", "ip": "192.168.20.116", "minVolume": -80, "maxVolume": 10, "enableZone2": true, "zone2MinVolume": -80, "zone2MaxVolume": 11, "zone3MinVolume": -80, "zone3MaxVolume": -10, "zone4MinVolume": -80, "zone4MaxVolume": -10 } ], "platform": "YamahaReceiver" }, { "devices": [ { "name": "Family Room TV", "ip": "192.168.20.10", "mac": "xx:xx:xx:xx:xx:xx", "inputs": [ { "type": "app" } ] } ], "platform": "SamsungTizen" } ] }

Screenshots:

Environment:

poknfunatu2 commented 1 year ago

More info: I changed the IP address in the Unifi Protect Controller to my admin vlan 192.168.10.1 and now my iPhone and iPad do have streaming video and audio. The only thing that doesn't work is streaming with the Home app on my iMac.

github-actions[bot] commented 1 year 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.

github-actions[bot] commented 1 year ago

This issue is locked to prevent necroposting on closed issues. Please create a new issue for related support requests, bug reports, or feature suggestions.