homebridge-eufy-security / plugin

Homebridge plugin to control certain Eufy Security devices
Apache License 2.0
166 stars 24 forks source link

[Bug]: Extremely slow to load/stream and low resolution #341

Closed kimme1024 closed 1 year ago

kimme1024 commented 1 year ago

What happened?

I can connect to the doorbell but it taks longer than with the Eufy app. Also when streaming, the frame rate is very low. This issue occurs when using latest/beta and bridged/unbridged. Also there's a very noticeable difference between the resolution shown in the Eufy app and the Home app. I could live with it when it would boost the speed but when it's this slow I'd expect the full resolution. There are also no snapshots available.

Any solutions for this?

Device Type

Doorbell (Supported)

Plugin Version

beta (Best Effort)

HomeBridge Version

v1.4.x (Supported)

NodeJS Version

v16 (Supported)

Operating System

Mac OS X 11+ (Supported)

Relevant log output

[7/13/2023, 4:14:28 PM] Homebridge v1.6.1 (HAP v0.11.1) (Homebridge 6357) is running on port 51610.
[7/13/2023, 4:14:29 PM] [EufySecurity-2.2.0-beta.19] INFO:  You're using guest admin account with this plugin! This is recommanded way!
[7/13/2023, 4:14:29 PM] [EufySecurity-2.2.0-beta.19] INFO:  Updating accessory: Eufy HomeBase
[7/13/2023, 4:14:29 PM] [EufySecurity-2.2.0-beta.19] INFO:  Doorbell is set to handle snapshots with cloud images. Snapshots might be older than they appear.
[7/13/2023, 4:14:29 PM] [EufySecurity-2.2.0-beta.19] INFO:  Adding new unbridged accessory: Doorbell
[7/13/2023, 4:14:29 PM] Doorbell 2434 is running on port 50520.
[7/13/2023, 4:14:29 PM] [EufySecurity-2.2.0-beta.19] WARN:  Doorbell Couldt not get cloud snapshot: Error: connect ECONNREFUSED ::1:443
[7/13/2023, 4:14:29 PM] [EufySecurity-2.2.0-beta.19] WARN:  Doorbell snapshot handler is initialized without cloud snapshot. Maybe no snapshot will displayed the first times.
[7/13/2023, 4:16:01 PM] [EufySecurity-2.2.0-beta.19] ERROR: Doorbell No snapshot in memory
[Doorbell 2434] Snapshot request handler provided empty image buffer!
[7/13/2023, 4:16:11 PM] [EufySecurity-2.2.0-beta.19] ERROR: Doorbell No snapshot in memory
[Doorbell 2434] Snapshot request handler provided empty image buffer!
[7/13/2023, 4:16:28 PM] [EufySecurity-2.2.0-beta.19] INFO:  Looking for old cached accessories that seem to be outdated...
[7/13/2023, 4:16:28 PM] [EufySecurity-2.2.0-beta.19] INFO:  No outdated cached accessories found.
[7/13/2023, 4:16:32 PM] [EufySecurity-2.2.0-beta.19] ERROR: Doorbell No snapshot in memory
[Doorbell 2434] Snapshot request handler provided empty image buffer!
[7/13/2023, 4:16:56 PM] [EufySecurity-2.2.0-beta.19] ERROR: Doorbell No snapshot in memory
[Doorbell 2434] Snapshot request handler provided empty image buffer!
[7/13/2023, 4:17:02 PM] [EufySecurity-2.2.0-beta.19] INFO:  Eufy HomeBase station livestream (P2P session) for Doorbell has started.
[7/13/2023, 4:17:02 PM] [EufySecurity-2.2.0-beta.19] INFO:  [Doorbell] [Video Process] Starting video stream: 1280x720, 30 fps, 299 kbps
[7/13/2023, 4:17:02 PM] [EufySecurity-2.2.0-beta.19] INFO:  [Doorbell] [Video Process] Starting audio stream: 16 kHz, 24 kbps, codec: libfdk_aac
[7/13/2023, 4:17:02 PM] [EufySecurity-2.2.0-beta.19] INFO:  [Doorbell] [Talkback Process] Starting audio stream: 16 kHz, 20 kbps, codec: libfdk_aac
[7/13/2023, 4:17:02 PM] [EufySecurity-2.2.0-beta.19] INFO:  Doorbell pendingSession has been deleted. Add it to ongoingSession and end it immediately.
[7/13/2023, 4:17:02 PM] [EufySecurity-2.2.0-beta.19] INFO:  Doorbell Stopped video stream.
[7/13/2023, 4:17:02 PM] [EufySecurity-2.2.0-beta.19] INFO:  Eufy HomeBase station livestream for Doorbell has stopped.
[7/13/2023, 4:17:04 PM] [EufySecurity-2.2.0-beta.19] INFO:  [Doorbell] [Video Process] FFmpeg exited with code: null and signal: SIGKILL (Forced)
[7/13/2023, 4:17:04 PM] [EufySecurity-2.2.0-beta.19] INFO:  [Doorbell] [Talkback Process] FFmpeg exited with code: null and signal: SIGKILL (Forced)
[7/13/2023, 4:17:07 PM] [homebridge-eufy-security] This plugin slows down Homebridge. The write handler for the characteristic 'Selected RTP Stream Configuration' on the accessory 'Doorbell 2434' didn't respond at all!. Please check that you properly call the callback! See https://homebridge.io/w/JtMGR for more info.
[7/13/2023, 4:17:28 PM] [EufySecurity-2.2.0-beta.19] INFO:  Eufy HomeBase station livestream (P2P session) for Doorbell has started.
[7/13/2023, 4:17:28 PM] [EufySecurity-2.2.0-beta.19] INFO:  [Doorbell] [Video Process] Starting video stream: 1280x720, 30 fps, 299 kbps
[7/13/2023, 4:17:28 PM] [EufySecurity-2.2.0-beta.19] INFO:  [Doorbell] [Video Process] Starting audio stream: 16 kHz, 24 kbps, codec: libfdk_aac
[7/13/2023, 4:17:28 PM] [EufySecurity-2.2.0-beta.19] INFO:  [Doorbell] [Talkback Process] Starting audio stream: 16 kHz, 20 kbps, codec: libfdk_aac
[7/13/2023, 4:17:48 PM] [EufySecurity-2.2.0-beta.19] ERROR: [Doorbell] [Talkback Process] ffmpeg log message:
[error] tcp://127.0.0.1:14950: Operation timed out

[7/13/2023, 4:17:48 PM] [EufySecurity-2.2.0-beta.19] ERROR: Doorbell Talkback process ended with error: FFmpeg exited with code: 0 and signal: null (Error)
[7/13/2023, 4:17:54 PM] [EufySecurity-2.2.0-beta.19] INFO:  Eufy HomeBase station livestream for Doorbell has stopped.
[7/13/2023, 4:18:21 PM] [EufySecurity-2.2.0-beta.19] INFO:  Doorbell Stopped video stream.
[7/13/2023, 4:18:23 PM] [EufySecurity-2.2.0-beta.19] INFO:  [Doorbell] [Video Process] FFmpeg exited with code: null and signal: SIGKILL (Forced)
[7/13/2023, 4:18:40 PM] [EufySecurity-2.2.0-beta.19] INFO:  Eufy HomeBase station livestream (P2P session) for Doorbell has started.
[7/13/2023, 4:18:40 PM] [EufySecurity-2.2.0-beta.19] INFO:  [Doorbell] [Video Process] Starting video stream: 1280x720, 30 fps, 299 kbps
[7/13/2023, 4:18:40 PM] [EufySecurity-2.2.0-beta.19] INFO:  [Doorbell] [Video Process] Starting audio stream: 16 kHz, 24 kbps, codec: libfdk_aac
[7/13/2023, 4:18:40 PM] [EufySecurity-2.2.0-beta.19] INFO:  [Doorbell] [Talkback Process] Starting audio stream: 16 kHz, 20 kbps, codec: libfdk_aac
[7/13/2023, 4:18:47 PM] [EufySecurity-2.2.0-beta.19] INFO:  Doorbell Stopped video stream.
[7/13/2023, 4:18:47 PM] [EufySecurity-2.2.0-beta.19] INFO:  Eufy HomeBase station livestream for Doorbell has stopped.
[7/13/2023, 4:18:49 PM] [EufySecurity-2.2.0-beta.19] INFO:  [Doorbell] [Talkback Process] FFmpeg exited with code: null and signal: SIGKILL (Forced)
[7/13/2023, 4:18:49 PM] [EufySecurity-2.2.0-beta.19] INFO:  [Doorbell] [Video Process] FFmpeg exited with code: null and signal: SIGKILL (Forced)
[7/13/2023, 4:18:55 PM] [EufySecurity-2.2.0-beta.19] INFO:  Eufy HomeBase station livestream (P2P session) for Doorbell has started.
[7/13/2023, 4:18:55 PM] [EufySecurity-2.2.0-beta.19] INFO:  [Doorbell] [Video Process] Starting video stream: 1280x720, 30 fps, 299 kbps
[7/13/2023, 4:18:55 PM] [EufySecurity-2.2.0-beta.19] INFO:  [Doorbell] [Video Process] Starting audio stream: 16 kHz, 24 kbps, codec: libfdk_aac
[7/13/2023, 4:18:55 PM] [EufySecurity-2.2.0-beta.19] INFO:  [Doorbell] [Talkback Process] Starting audio stream: 16 kHz, 20 kbps, codec: libfdk_aac
[7/13/2023, 4:19:01 PM] [EufySecurity-2.2.0-beta.19] INFO:  Doorbell Stopped video stream.
[7/13/2023, 4:19:01 PM] [EufySecurity-2.2.0-beta.19] INFO:  Eufy HomeBase station livestream for Doorbell has stopped.
[7/13/2023, 4:19:03 PM] [EufySecurity-2.2.0-beta.19] INFO:  [Doorbell] [Talkback Process] FFmpeg exited with code: null and signal: SIGKILL (Forced)
[7/13/2023, 4:19:03 PM] [EufySecurity-2.2.0-beta.19] INFO:  [Doorbell] [Video Process] FFmpeg exited with code: null and signal: SIGKILL (Forced)
[7/13/2023, 4:19:11 PM] [EufySecurity-2.2.0-beta.19] ERROR: Doorbell No snapshot in memory
[Doorbell 2434] Snapshot request handler provided empty image buffer!
[7/13/2023, 4:19:21 PM] [EufySecurity-2.2.0-beta.19] ERROR: Doorbell No snapshot in memory
[Doorbell 2434] Snapshot request handler provided empty image buffer!
[7/13/2023, 4:19:41 PM] [EufySecurity-2.2.0-beta.19] ERROR: Doorbell No snapshot in memory
[Doorbell 2434] Snapshot request handler provided empty image buffer!
[7/13/2023, 4:20:10 PM] [EufySecurity-2.2.0-beta.19] ERROR: Doorbell No snapshot in memory
[Doorbell 2434] Snapshot request handler provided empty image buffer!
[7/13/2023, 4:20:20 PM] [EufySecurity-2.2.0-beta.19] ERROR: Doorbell No snapshot in memory
[Doorbell 2434] Snapshot request handler provided empty image buffer!
[7/13/2023, 4:20:40 PM] [EufySecurity-2.2.0-beta.19] ERROR: Doorbell No snapshot in memory
[Doorbell 2434] Snapshot request handler provided empty image buffer!

config

"username": "xxx",
            "password": "xxx",
            "country": "xxx",
            "deviceName": "Eufy Doorbell",
            "platform": "EufySecurity",
            "ignoreStations": [],
            "ignoreDevices": [],
            "cleanCache": true,
            "cameras": [
                {
                    "serialNumber": "xxx",
                    "rtsp": false,
                    "enableCamera": true,
                    "videoConfig": {
                        "audio": true
                    },
                    "talkback": true,
                    "talkbackChannels": 1,
                    "hsv": true,
                    "hsvRecordingDuration": 90,
                    "hsvConfig": {},
                    "unbridge": true
                }
            ],
            "preferLocalConnection": true,
            "experimentalMode": false
lenoxys commented 1 year ago

have a look here : https://github.com/homebridge-eufy-security/plugin/wiki/Streaming-Settings

kimme1024 commented 1 year ago

Hi,

Thanks for the reply, I've fiddled around a bit with the settings based on the wiki. Copy should to be the best option for better quality, however this doesn't connect in any way:

[8/17/2023, 11:08:56 AM] [EufySecurity-2.2.2] INFO:  Eufy HomeBase station livestream (P2P session) for Doorbell has started.
[8/17/2023, 11:08:56 AM] [EufySecurity-2.2.2] INFO:  [Doorbell] [Video Process] Starting video stream: native
[8/17/2023, 11:08:56 AM] [EufySecurity-2.2.2] INFO:  [Doorbell] [Audio Process] Starting audio stream: 16 kHz, 24 kbps, codec: libfdk_aac
[8/17/2023, 11:08:56 AM] [EufySecurity-2.2.2] INFO:  [Doorbell] [Talkback Process] Starting audio stream: 16 kHz, 20 kbps, codec: libfdk_aac
[8/17/2023, 11:09:16 AM] [EufySecurity-2.2.2] ERROR: [Doorbell] [Talkback Process] FFmpeg exited with code: 0 and signal: null (Error)
[8/17/2023, 11:09:19 AM] [EufySecurity-2.2.2] INFO:  Looking for old cached accessories that seem to be outdated...
[8/17/2023, 11:09:19 AM] [EufySecurity-2.2.2] INFO:  No outdated cached accessories found.
[8/17/2023, 11:09:23 AM] [EufySecurity-2.2.2] INFO:  Eufy HomeBase station livestream for Doorbell has stopped.
[8/17/2023, 11:09:26 AM] [EufySecurity-2.2.2] INFO:  Doorbell Stopped video stream.
[8/17/2023, 11:09:28 AM] [EufySecurity-2.2.2] INFO:  [Doorbell] [Video Process] FFmpeg exited with code: null and signal: SIGKILL (Forced)
[8/17/2023, 11:09:28 AM] [EufySecurity-2.2.2] INFO:  [Doorbell] [Audio Process] FFmpeg exited with code: null and signal: SIGKILL (Forced)

I tried to disable separate processes, but still no luck using copy

[8/17/2023, 11:13:40 AM] [EufySecurity-2.2.2] INFO:  Eufy HomeBase station livestream (P2P session) for Doorbell has started.
[8/17/2023, 11:13:40 AM] [EufySecurity-2.2.2] INFO:  [Doorbell] [Video Process] Starting video stream: native
[8/17/2023, 11:13:40 AM] [EufySecurity-2.2.2] INFO:  [Doorbell] [Video Process] Starting audio stream: 16 kHz, 24 kbps, codec: libfdk_aac
[8/17/2023, 11:13:40 AM] [EufySecurity-2.2.2] INFO:  [Doorbell] [Talkback Process] Starting audio stream: 16 kHz, 20 kbps, codec: libfdk_aac
[8/17/2023, 11:13:45 AM] [homebridge-eufy-security] This plugin slows down Homebridge. The write handler for the characteristic 'Selected RTP Stream Configuration' on the accessory 'Doorbell 2434' didn't respond at all!. Please check that you properly call the callback! See https://homebridge.io/w/JtMGR for more info.
[8/17/2023, 11:13:45 AM] [EufySecurity-2.2.2] INFO:  Doorbell Stopped video stream.
[8/17/2023, 11:13:45 AM] [EufySecurity-2.2.2] INFO:  Eufy HomeBase station livestream for Doorbell has stopped.
[8/17/2023, 11:13:47 AM] [EufySecurity-2.2.2] INFO:  [Doorbell] [Video Process] FFmpeg exited with code: null and signal: SIGKILL (Forced)
[8/17/2023, 11:13:47 AM] [EufySecurity-2.2.2] INFO:  [Doorbell] [Talkback Process] FFmpeg exited with code: null and signal: SIGKILL (Forced)

So the only way it (kind of) works is with libx264 and separate processes enabled. However the resolution is about as good as a 90's webcam with about 1fps and connection dropping after 10 or so seconds.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 5 days with no activity.