plugin: [Bug]: Updating to Node.js 20.11.1 causes ffmpeg to not start, camera not found etc.

What happened?

After updating to Node.js 20.11.1, ffmpeg would not start, P2P times out etc. Backdating to 20.11.0 fixes the problem.

More info on setup: Plugin version 2.2.21 Homebridge version: 1.7.0 NodeJS version: 20.11.1 is broken!!! 20.11.0 is ok Operating system: Linux homebridge 6.1.0-rpi6-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.58-1+rpt2 (2023-10-27) aarch64 GNU/Linux

Device Type

Indoor Camera (Supported)

Plugin Version

v2.0.x (Supported)

HomeBridge Version

other (UnSupported)

NodeJS Version

v18 (Supported)

Operating System

Raspbian 10+ (Supported)

Relevant log output

39m	ERROR	Living Room Local livestream didn't start in time. Abort livestream request.
[02/16/2024, 21:58:20]	[EufySecurity]	WARN	Living Room Could not get snapshot from livestream!
[02/16/2024, 21:58:20]	[EufySecurity]	WARN	Living Room No camera source detected.
[02/16/2024, 21:58:28]	[EufySecurity]	INFO	Living Room station livestream (P2P session) for Living Room has started.
[02/16/2024, 21:58:39]	[EufySecurity]	ERROR	Kitchen Local livestream didn't start in time. Abort livestream request.
[02/16/2024, 21:58:39]	[EufySecurity]	WARN	Kitchen Could not get snapshot from livestream!
[02/16/2024, 21:58:39]	[EufySecurity]	WARN	Kitchen No camera source detected.
[02/16/2024, 21:58:43]	[EufySecurity]	WARN	Living Room ffmpeg process timed out.
[02/16/2024, 21:58:50]	[EufySecurity]	INFO	Living Room station livestream (P2P session) for Living Room has started.
[02/16/2024, 21:58:51]	[EufySecurity]	ERROR	Kitchen Local livestream didn't start in time. Abort livestream request.
[02/16/2024, 21:58:51]	[EufySecurity]	WARN	Kitchen Could not get snapshot from livestream!
[02/16/2024, 21:58:51]	[EufySecurity]	WARN	Kitchen No camera source detected.
[02/16/2024, 21:59:02]	[EufySecurity]	ERROR	Kitchen Local livestream didn't start in time. Abort livestream request.
[02/16/2024, 21:59:02]	[EufySecurity]	WARN	Kitchen Could not get snapshot from livestream!
[02/16/2024, 21:59:02]	[EufySecurity]	WARN	Kitchen No camera source detected.
[02/16/2024, 21:59:05]	[EufySecurity]	WARN	Living Room ffmpeg process timed out.
[02/16/2024, 21:59:14]	[EufySecurity]	ERROR	Kitchen Local livestream didn't start in time. Abort livestream request.
[02/16/2024, 21:59:14]	[EufySecurity]	WARN	Kitchen Could not get snapshot from livestream!
[02/16/2024, 21:59:14]	[EufySecurity]	WARN	Kitchen No camera source detected.
[02/16/2024, 21:59:23]	[EufySecurity]	ERROR	Living Room Local livestream didn't start in time. Abort livestream request.
[02/16/2024, 21:59:23]	[EufySecurity]	WARN	Living Room Could not get snapshot from livestream!
[02/16/2024, 21:59:23]	[EufySecurity]	WARN	Living Room No camera source detected.
[02/16/2024, 21:59:25]	[EufySecurity]	INFO	Living Room station livestream (P2P session) for Living Room has started.
[02/16/2024, 21:59:25]	[EufySecurity]	ERROR	Kitchen Local livestream didn't start in time. Abort livestream request.
[02/16/2024, 21:59:25]	[EufySecurity]	WARN	Kitchen Could not get snapshot from livestream!
[02/16/2024, 21:59:25]	[EufySecurity]	WARN	Kitchen No camera source detected.

config

{
    "username": "xxx",
    "password": "xxx",
    "country": "US",
    "deviceName": "",
    "stations": [
        {
            "hkHome": 1,
            "hkAway": 0,
            "serialNumber": "xxx",
            "hkNight": 3,
            "hkOff": 63
        },
        {
            "serialNumber": "xxx,
            "manualTriggerModes": []
        }
    ],
    "platform": "EufySecurity",
    "ignoreStations": [],
    "ignoreDevices": [],
    "cleanCache": true,
    "cameras": [
        {
            "serialNumber": "xxx",
            "useCachedLocalLivestream": true,
            "videoConfig": {
                "audio": true,
                "maxWidth": 640,
                "maxHeight": 480,
                "maxFPS": 15,
                "useSeparateProcesses": true
            },
            "talkback": true,
            "enableCamera": "true",
            "hsv": true,
            "hsvRecordingDuration": 90,
            "hsvConfig": {},
            "unbridge": false,
            "snapshotHandlingMethod": 2,
            "refreshSnapshotIntervalMinutes": 5
        },
        {
            "serialNumber": "xxx,
            "useCachedLocalLivestream": true,
            "videoConfig": {
                "audio": true,
                "maxWidth": 640,
                "maxHeight": 480,
                "maxFPS": 15,
                "useSeparateProcesses": true
            },
            "talkback": true,
            "enableCamera": "true",
            "hsv": true,
            "hsvRecordingDuration": 90,
            "hsvConfig": {},
            "unbridge": false,
            "snapshotHandlingMethod": 2,
            "refreshSnapshotIntervalMinutes": 5
        }
    ],
    "_bridge": {
        "username": "xxx",
        "port": 32980
    }
}

About this issue

  • Original URL
  • State: closed
  • Created 4 months ago
  • Comments: 29 (3 by maintainers)

Most upvoted comments

Yeah nodejs is the cause of the issue. Use 2.3.22 it will prevent plugin to work on NodeJS version which introduced the bug

Hi @lenoxys ,

I have restarted the access data process at Miele. That seems to have helped.