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

Streaming video hangs frequently after plugin and protect update #1095

Open danjurgens opened 5 days ago

danjurgens commented 5 days ago

Homebridge UniFi Protect Version

v7.1.2

Homebridge Platform and OS

IoS 17

Homebridge Version

Homebridge v1.8.3 · UI v4.56.4 ·

Node Version

v20.15.0

UniFi OS Version

3.2.9

UniFi Protect Controller Version

4.0.33

Describe the problem

Frequent hangs in the streaming video in apple home app. Requires closing and reopening the camera. I see this error in the logs: Dax Cam [G3 Instant]: The FFmpeg process ended unexpectedly due to issues with the media stream provided by the UniFi Protect livestream API. Adjusting the settings we use for FFmpeg temporarily to use safer values at the expense of some additional streaming startup latency.

Issue started after I updated the plugin, and then updated protect after the plugin said it was was required.

Homebridge HBUP JSON configuration

{
    "controllers": [
        {
            "address": "192.168.10.1",
            "password": "",
            "refreshInterval": 30,
            "username": "homebridge"
        }
    ],
    "motionDuration": 20,
    "platform": "UniFi Protect",
    "options": [
        "Disable.Audio.TwoWay.70A741AD338B",
        "Disable.Audio.TwoWay.D021F9984111",
        "Disable.Audio.TwoWay"
    ]
}

Relevant log output

Dax Cam [G3 Instant]: The FFmpeg process ended unexpectedly due to issues with the media stream provided by the UniFi Protect livestream API. Adjusting the settings we use for FFmpeg temporarily to use safer values at the expense of some additional streaming startup latency.

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

hjdhjd commented 5 days ago

Thanks for the report, but you didn’t actually answer the question of what you are running Homebridge on - iOS 17 is Apple’s iPhone operating system version.

What’re you running Homebridge on?

Generally speaking, the log messages you are seeing are correctly explaining what is going on. The issue you’re encountering relates to either network latency issues or environment latency issues. You can try the experimental API livestreaming capabilities and that should improve things somewhat, but if you’re running Homebridge on underpowered hardware (e.g. Pi), don’t expect miracles.

Hope this helps.

danjurgens commented 5 days ago

Sorry, its the homebridge raspberry pi image on a pi4. I don't know what exact version of the image it was, but i regularly apt upgrade.

On Sat, Jun 29, 2024 at 7:15 AM hjdhjd @.***> wrote:

Thanks for the report, but you didn’t actually answer the question of what you are running Homebridge on - iOS 17 is Apple’s iPhone operating system version.

What’re you running Homebridge on?

Generally speaking, the log messages you are seeing are correctly explaining what is going on. The issue you’re encountering relates to either network latency issues or environment latency issues. You can try the experimental API livestreaming capabilities and that should improve things somewhat, but if you’re running Homebridge on underpowered hardware (e.g. Pi), don’t expect miracles.

Hope this helps.

— Reply to this email directly, view it on GitHub https://github.com/hjdhjd/homebridge-unifi-protect/issues/1095#issuecomment-2198130851, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC33CK4FMLOPHHUNZXSHOPTZJ2QOJAVCNFSM6AAAAABKC35QF6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJYGEZTAOBVGE . You are receiving this because you authored the thread.Message ID: @.***>

hjdhjd commented 2 days ago

@beslergr If you’d like support, please open a separate issue. My policy is one person, one issue. Just because it looks similar doesn’t mean it is. :smile: This is another user’s support request. Thanks for respecting the way I prefer to provide support.

hjdhjd commented 2 days ago

Sorry, its the homebridge raspberry pi image on a pi4. I don't know what exact version of the image it was, but i regularly apt upgrade.

Thanks for clarifying. How’s the camera’s WiFi connectivity and what’re you using for a Protect controller? Also, are you using HomeKit Secure Video as well?

beslergr commented 2 days ago

@hjdhjd apologies.

danjurgens commented 1 day ago

Camera connection is solid, everything is fine in the protect app. I’ve using this setup for more than a year. The issue started with the update. Enabling the experimental API seems to have solved the problem.

On Tue, Jul 2, 2024 at 1:02 AM hjdhjd @.***> wrote:

Sorry, its the homebridge raspberry pi image on a pi4. I don't know what exact version of the image it was, but i regularly apt upgrade. … <#m_7347523661220296879m-5124336804515610605_>

Thanks for clarifying. How’s the camera’s WiFi connectivity and what’re you using for a Protect controller? Also, are you using HomeKit Secure Video as well?

— Reply to this email directly, view it on GitHub https://github.com/hjdhjd/homebridge-unifi-protect/issues/1095#issuecomment-2202005290, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC33CK2T7AED7JNFRJCZ2XTZKI67HAVCNFSM6AAAAABKC35QF6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBSGAYDKMRZGA . You are receiving this because you authored the thread.Message ID: @.***>