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.45k stars 93 forks source link

AI Bullet camera will take snapshots but not stream #1086

Closed methnen closed 3 months ago

methnen commented 3 months ago

Homebridge UniFi Protect Version

v7.0.1

Homebridge Platform and OS

UGreen NAS

Homebridge Version

v1.8.2

Node Version

v18.13.0

UniFi OS Version

v3.2.12

UniFi Protect Controller Version

v4.0.21

Describe the problem

Currently have 3 cameras, 1 AI 360, 1 AI Bullet, and 1 G4 Instant.

I'm doing a pretty simple HomeKit setup streaming only since it's protect no need for all of the alerts and recording.

All 3 camera's show a snapshot view inside of HomeKit and the 360 and the Instant both stream perfectly. The AI Bullet never streams when I attempt.

Homebridge HBUP JSON configuration

{
    "name": "UniFi Protect",
    "controllers": [
        {
            "address": "192.168.1.200",
            "username": "homebridge",
            "password": "xxxxxxxxxxxxxx"
        }
    ],
    "platform": "UniFi Protect",
    "_bridge": {
        "username": "0E:BA:8F:8B:7F:A2",
        "port": 56998
    }
}

Relevant log output

[6/7/2024, 8:51:57 AM] [UniFi Protect] AI Bullet (Front Yard) [AI Bullet]: FFmpeg process ended unexpectedly with an exit code of 1.
[6/7/2024, 8:51:57 AM] [UniFi Protect] AI Bullet (Front Yard) [AI Bullet]: FFmpeg (6.0-homebridge-alpine-x86_64-static) command that errored out was: /homebridge/node_modules/homebridge-unifi-protect/node_modules/ffmpeg-for-homebridge/ffmpeg -hide_banner -nostats -fflags +discardcorrupt+genpts -max_delay 500000 -flags low_delay -copyts -start_at_zero -probesize 16384 -avioflags direct -r 30 -rtsp_transport tcp -i rtsps://192.168.1.200:7441/gH4blQxJX4O68DSv?enableSrtp -map 0:v:0 -vcodec copy -reset_timestamps 1 -payload_type 99 -ssrc 11039315 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params Y5URmlgVemZkSfvr1kKDNIrr1v0R6t968oSTPlPp srtp://192.168.1.19:61258?rtcpport=61258&pkt_size=1378 -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 11254908 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params QT26RykodoSMtLx/G6cnsqR5zSqgKpPWp2KAjL3L srtp://192.168.1.19:63750?rtcpport=63750&pkt_size=188
[6/7/2024, 8:51:57 AM] [UniFi Protect] AI Bullet (Front Yard) [AI Bullet]: rtsps://192.168.1.200:7441/gH4blQxJX4O68DSv?enableSrtp: Invalid data found when processing input
[6/7/2024, 8:51:57 AM] [UniFi Protect] AI Bullet (Front Yard) [AI Bullet]: Exiting normally, received signal 15.

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

hjdhjd commented 3 months ago

Thanks for the report. Would you mind downgrading to v6.2.2 and giving it a go?

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

methnen commented 3 months ago

I downgraded, and it didn't fix the issue immediately but a few minutes later it started working. So maybe that was the issue?

hjdhjd commented 3 months ago

Please upgrade to the latest version and see if it helps. Thanks!

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