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.39k stars 83 forks source link

Video streaming issues after updating higher than 6.5.1 #1020

Closed Timurrrcheg closed 8 months ago

Timurrrcheg commented 8 months ago

Homebridge UniFi Protect Version

6.6.0-6.16.0

Homebridge Platform and OS

Raspbian GNU/Linux Bullseye (11)

Homebridge Version

v1.7.0

Node Version

20.9.0

UniFi OS Version

v3.1.16

UniFi Protect Controller Version

v2.9.33

Describe the problem

After updating on version 6.6.0 video streaming stopped working. I can see the previews in Home app though. I've already tried different plugin versions. I've already tried all the recommendations from the Troubleshooting page (stream only low features, transcoding and so on), played around with home bridge user permissions and quality settings in Protect app, finally I've reinstalled the plugin, but still no luck. Video streaming works only with 6.5.1 version of plugin.

Homebridge HBUP JSON configuration

"controllers": [
                {
                    "address": "1.1.1.1",
                    "password": "password",
                    "username": "username"
                }
            ],
            "name": "UniFi Protect",
            "ringDelay": 2,
            "verboseFfmpeg": false,
            "platform": "UniFi Protect",
            "options": []
        }

Relevant log output

[07/11/2023, 20:03:36] [UniFi Protect] Dream Machine Pro [UDM-PRO] Backyard [G4 Bullet]: [tcp @ 0xb6f02d00] [verbose] Starting connection attempt to 192.168.30.1 port 7441
[07/11/2023, 20:04:06] [UniFi Protect] Dream Machine Pro [UDM-PRO] Backyard [G4 Bullet]: Stopped video streaming session.
[07/11/2023, 20:04:06] [UniFi Protect] Dream Machine Pro [UDM-PRO] Backyard [G4 Bullet]: [error] rtsps://192.168.30.1:7441/mjuGjJ4ZuKBCl9ul?enableSrtp: Immediate exit requested
[07/11/2023, 20:04:06] [UniFi Protect] Dream Machine Pro [UDM-PRO] Backyard [G4 Bullet]: [info] Exiting normally, received signal 15.
[07/11/2023, 20:04:06] [UniFi Protect] Dream Machine Pro [UDM-PRO] Backyard [G4 Bullet]: FFmpeg process ended unexpectedly with an exit code of 1.
[07/11/2023, 20:04:06] [UniFi Protect] Dream Machine Pro [UDM-PRO] Backyard [G4 Bullet]: FFmpeg (6.0-homebridge-alpine-armv7l-static) command that errored out was: /var/lib/homebridge/node_modules/homebridge-unifi-protect/node_modules/ffmpeg-for-homebridge/ffmpeg -hide_banner -nostats -fflags +discardcorrupt -probesize 16384 -max_delay 500000 -r 24 -rtsp_transport tcp -i rtsps://192.168.30.1:7441/mjuGjJ4ZuKBCl9ul?enableSrtp -map 0:v:0 -vcodec copy -payload_type 99 -ssrc 14045102 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params Nl4WgXP6YZP4UKSHW7QnphUgsUkm5QE5KoZ3edhl srtp://192.168.1.139:65246?rtcpport=65246&pkt_size=564 -map 0:a:0? -acodec libfdk_aac -afterburner 1 -eld_sbr 1 -eld_v2 1 -profile:a 38 -flags +global_header -f null -ar 24k -b:a 24k -bufsize 48k -ac 1 -payload_type 110 -ssrc 4797152 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params P7UG8pKIsJYSQeSZC7GnZbUs5vUXX1RtlGNnVZLY srtp://192.168.1.139:52542?rtcpport=52542&pkt_size=188 -loglevel level+verbose
[07/11/2023, 20:04:06] [UniFi Protect] Dream Machine Pro [UDM-PRO] Backyard [G4 Bullet]: [tcp @ 0xb6f02d00] [verbose] Starting connection attempt to 192.168.30.1 port 7441
[07/11/2023, 20:04:06] [UniFi Protect] Dream Machine Pro [UDM-PRO] Backyard [G4 Bullet]: [error] rtsps://192.168.30.1:7441/mjuGjJ4ZuKBCl9ul?enableSrtp: Immediate exit requested
[07/11/2023, 20:04:06] [UniFi Protect] Dream Machine Pro [UDM-PRO] Backyard [G4 Bullet]: [info] Exiting normally, received signal 15.

Acknowledgment that you are only running UniFi OS and UniFi Protect releases from the Ubiquiti Official release channel

github-actions[bot] commented 8 months 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 8 months 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.