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 84 forks source link

Moved to Mac Mini M1 Verison V6.20 and V.19 won't play video #1061

Closed nolan2306 closed 2 months ago

nolan2306 commented 2 months ago

Homebridge UniFi Protect Version

V6.20

Homebridge Platform and OS

Mac OS Sanoma

Homebridge Version

v4.56.1

Node Version

v20.9.0

UniFi OS Version

3.0.26

UniFi Protect Controller Version

3.2.12

Describe the problem

When I try to load HKSV live Stream it will just sit and spin and fail to connect. I have messed with multiple settings on the plugin but none seem to work. Before I had this working on version V6.19 on a Synology NAS but was recommened to run on a Mac if I could. This is a M1 mac Mini, I could get it to work on the NAS I have not been able to on the Mac mini.

Homebridge HBUP JSON configuration

{
    "controllers": [
        {
            "address": "10.1.0.9",
            "password": Redacted
            "username": Redacted
        }
    ],
    "name": "UniFi Protect",
    "options": [
        "Enable.Audio.Filter.Noise.E43883324A4D",
        "Enable.Device.SyncName.E43883324A4D",
        "Disable.Doorbell.Messages.E43883324A4D",
        "Disable.Log.Doorbell.E43883324A4D",
        "Enable.Video.Transcode.E43883324A4D",
        "Enable.Device.Standalone.E43883324A4D",
        "Enable.Device.StatusLed.E43883324A4D",
        "Enable.Log.HKSV.E43883324A4D",
        "Enable.Log.Motion.E43883324A4D",
        "Enable.Video.Transcode.Hardware.E43883324A4D",
        "Disable.Video.HighResSnapshots.E43883324A4D"
    ],
    "_bridge": {
        "username": "0E:BA:9A:63:BF:11",
        "port": 48616
    },
    "platform": "UniFi Protect"
}

Relevant log output

[4/13/2024, 10:55:08 AM] Homebridge v1.7.0 (HAP v0.11.2) (Homebridge 5BB1) is running on port 51685.
[4/13/2024, 10:55:08 AM] [UniFi Protect] Launched child bridge with PID 34728
[4/13/2024, 10:55:08 AM] [UniFi Protect] Loaded homebridge-unifi-protect v6.20.0 child bridge successfully
[4/13/2024, 10:55:08 AM] Loaded 3 cached accessories from cachedAccessories.0EBA9A63BF11.
[4/13/2024, 10:55:08 AM] Registering platform '@0x5e/homebridge-tuya-platform.TuyaPlatform'
[4/13/2024, 10:55:09 AM] [UniFi Protect] Using FFmpeg version: v2.1.0-5-g7303558-homebridge-darwin-arm64.
[4/13/2024, 10:55:09 AM] Homebridge v1.7.0 (HAP v0.11.2) (Tuya) is running on port 47739.
(node:34728) [DEP0123] DeprecationWarning: Setting the TLS ServerName to an IP address is not permitted by RFC 6066. This will be ignored in a future version.
(Use `node --trace-deprecation ...` to show where the warning was created)
[4/13/2024, 10:55:09 AM] [UniFi Protect] Nolan’s Dream Machine Pro [UDM-PRO]: Connected to 10.1.0.9 (UniFi Protect 3.0.26 running on UniFi OS 3.2.12).
[4/13/2024, 10:55:09 AM] [UniFi Protect] Nolan’s Dream Machine Pro [UDM-PRO]: Discovered nvr: Nolan’s Dream Machine Pro [UDM Pro] (address: 10.1.0.9 mac: E43883324A4D).
[4/13/2024, 10:55:09 AM] [UniFi Protect] Nolan’s Dream Machine Pro [UDM-PRO]: Discovered camera: Garage [G5 Bullet] (address: 10.1.0.216 mac: E438830CAAE9).
[4/13/2024, 10:55:09 AM] [UniFi Protect] Nolan’s Dream Machine Pro [UDM-PRO]: Discovered camera: Barn [G5 Pro] (address: 10.1.0.59 mac: F4E2C6724F07).
[4/13/2024, 10:55:09 AM] [UniFi Protect] Nolan’s Dream Machine Pro [UDM-PRO]: Discovered camera: Barn 2 [G5 Pro] (address: 10.1.0.128 mac: F4E2C6724EBD).
[4/13/2024, 10:55:09 AM] [UniFi Protect] Garage [G5 Bullet]: Syncing Protect device name to HomeKit.
[4/13/2024, 10:55:09 AM] [UniFi Protect] Barn [G5 Pro]: Syncing Protect device name to HomeKit.
[4/13/2024, 10:55:09 AM] [UniFi Protect] Barn 2 [G5 Pro]: Syncing Protect device name to HomeKit.
[4/13/2024, 10:55:09 AM] [UniFi Protect] Nolan’s Dream Machine Pro [UDM-PRO]: Garage [G5 Bullet]: Removing camera from HomeKit.
[4/13/2024, 10:55:09 AM] [UniFi Protect] Nolan’s Dream Machine Pro [UDM-PRO]: Garage [G5 Bullet]: Adding camera to HomeKit as a standalone device.
[4/13/2024, 10:55:09 AM] [UniFi Protect] Garage [G5 Bullet]: Syncing Protect device name to HomeKit.
[4/13/2024, 10:55:09 AM] [UniFi Protect] Nolan’s Dream Machine Pro [UDM-PRO]: Barn [G5 Pro]: Removing camera from HomeKit.
[4/13/2024, 10:55:09 AM] [UniFi Protect] Nolan’s Dream Machine Pro [UDM-PRO]: Barn [G5 Pro]: Adding camera to HomeKit as a standalone device.
[4/13/2024, 10:55:09 AM] [UniFi Protect] Barn [G5 Pro]: Syncing Protect device name to HomeKit.
[4/13/2024, 10:55:09 AM] [UniFi Protect] Nolan’s Dream Machine Pro [UDM-PRO]: Barn 2 [G5 Pro]: Removing camera from HomeKit.
[4/13/2024, 10:55:09 AM] [UniFi Protect] Nolan’s Dream Machine Pro [UDM-PRO]: Barn 2 [G5 Pro]: Adding camera to HomeKit as a standalone device.
[4/13/2024, 10:55:09 AM] [UniFi Protect] Barn 2 [G5 Pro]: Syncing Protect device name to HomeKit.
[4/13/2024, 10:55:09 AM] [UniFi Protect] Garage [G5 Bullet]: Disabling the use of higher quality snapshots.
[4/13/2024, 10:55:09 AM] [UniFi Protect] Garage [G5 Bullet]: Hardware-accelerated decoding and transcoding enabled.
[4/13/2024, 10:55:09 AM] [UniFi Protect] Barn [G5 Pro]: Disabling the use of higher quality snapshots.
[4/13/2024, 10:55:09 AM] [UniFi Protect] Barn [G5 Pro]: Hardware-accelerated decoding and transcoding enabled.
[4/13/2024, 10:55:09 AM] [UniFi Protect] Barn 2 [G5 Pro]: Disabling the use of higher quality snapshots.
[4/13/2024, 10:55:09 AM] [UniFi Protect] Barn 2 [G5 Pro]: Hardware-accelerated decoding and transcoding enabled.
[4/13/2024, 10:55:09 AM] [UniFi Protect] Garage [G5 Bullet]: Disabling the use of higher quality snapshots.
[4/13/2024, 10:55:09 AM] [UniFi Protect] Garage [G5 Bullet]: Hardware-accelerated decoding and transcoding enabled.
[4/13/2024, 10:55:09 AM] [UniFi Protect] Barn [G5 Pro]: Disabling the use of higher quality snapshots.
[4/13/2024, 10:55:09 AM] [UniFi Protect] Barn [G5 Pro]: Hardware-accelerated decoding and transcoding enabled.
[4/13/2024, 10:55:09 AM] [UniFi Protect] Barn 2 [G5 Pro]: Disabling the use of higher quality snapshots.
[4/13/2024, 10:55:09 AM] [UniFi Protect] Barn 2 [G5 Pro]: Hardware-accelerated decoding and transcoding enabled.
[4/13/2024, 10:55:09 AM] Garage C947 is running on port 58209.
[4/13/2024, 10:55:09 AM] Please add [Garage C947] manually in Home app. Setup Code: 636-64-913
[4/13/2024, 10:55:09 AM] Barn 3637 is running on port 58210.
[4/13/2024, 10:55:09 AM] Please add [Barn 3637] manually in Home app. Setup Code: 636-64-913
[4/13/2024, 10:55:09 AM] Barn 2 E8CA is running on port 58211.
[4/13/2024, 10:55:09 AM] Please add [Barn 2 E8CA] manually in Home app. Setup Code: 636-64-913
[4/13/2024, 10:55:09 AM] [UniFi Protect] Barn 2 [G5 Pro]: HKSV: hardware-accelerated 3840x2160@20fps (High), 2,000 kbps (4 second timeshift buffer).
[4/13/2024, 10:55:16 AM] [UniFi Protect] Barn 2 [G5 Pro]: Streaming request from 10.1.0.210: 1280x720@30fps, 299 kbps. Hardware accelerated transcoding 3840x2160@20fps (High), 2,000 kbps.
[4/13/2024, 10:55:46 AM] [UniFi Protect] Barn 2 [G5 Pro]: Stopped video streaming session.

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

hjdhjd commented 2 months ago

Thanks for the report. The logs look fine - there's not an issue from the HBUP end of things based on what you've shared. If your machine is multi homed (e.g. you are using both WiFi and Ethernet on your Mac at the same time), Homebridge may have issues determining which interface to use. Look at the documentation for more details on resolving that, if it's your issue.

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