homebridge-eufy-security / plugin

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

[Bug]: Error spawn ffmpeg ENOENT #441

Open mrlightison opened 1 year ago

mrlightison commented 1 year ago

What happened?

[09/27/2023 21:43:25] [EufySecurity-2.2.21] DEBUG [streamingDelegate.ts:172] Snapshot requested: 1280 x 720 Front Door undefined [9/27/2023, 9:43:25 PM] Error: spawn ffmpeg ENOENT at Process.ChildProcess._handle.onexit (node:internal/child_process:284:19) at onErrorNT (node:internal/child_process:477:16) at processTicksAndRejections (node:internal/process/task_queues:82:21) [09/27/2023 21:43:25] [EufySecurity-2.2.21] ERROR [streamingDelegate.ts:180] Front Door

Error spawn ffmpeg ENOENT, -2, ENOENT, spawn ffmpeg, ffmpeg, -hide_banner,-loglevel,level+verbose,-i,pipe:,-frames:v,1,-filter:v,scale='min(640,iw)':'min(480,ih)':force_original_aspect_ratio=decrease,scale='trunc(iw/2)2:trunc(ih/2)2',-f,image2,pipe:1,-progress,tcp://<> error stack: • child_process Process.ChildProcess._handle.onexit child_process:284 • child_process onErrorNT child_process:477 • task_queues processTicksAndRejections task_queues:82 [Front Door] Snapshot request handler provided empty image buffer!

Device Type

Doorbell (Supported)

Plugin Version

v2.0.x (Supported)

HomeBridge Version

v1.6.x (Supported)

NodeJS Version

v18 (Supported)

Operating System

Mac OS X 11+ (UnSupported)

Relevant log output

[09/27/2023 21:43:25]   [EufySecurity-2.2.21]   DEBUG   [streamingDelegate.ts:172]      Snapshot requested: 1280 x 720 Front Door undefined
[9/27/2023, 9:43:25 PM] Error: spawn ffmpeg ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:284:19)
    at onErrorNT (node:internal/child_process:477:16)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
[09/27/2023 21:43:25]   [EufySecurity-2.2.21]   ERROR   [streamingDelegate.ts:180]      Front Door

 Error  spawn ffmpeg ENOENT, -2, ENOENT, spawn ffmpeg, ffmpeg, -hide_banner,-loglevel,level+verbose,-i,pipe:,-frames:v,1,-filter:v,scale='min(640,iw)':'min(480,ih)':force_original_aspect_ratio=decrease,scale='trunc(iw/2)*2:trunc(ih/2)*2',-f,image2,pipe:1,-progress,tcp://<<IP ADDRESS>>
error stack:
  • child_process       Process.ChildProcess._handle.onexit
        child_process:284
  • child_process       onErrorNT
        child_process:477
  • task_queues processTicksAndRejections
        task_queues:82
[Front Door] Snapshot request handler provided empty image buffer!

config

{
            "enableDetailedLogging": true,
            "CameraMaxLivestreamDuration": 30,
            "pollingIntervalMinutes": 10,
            "hkHome": 1,
            "hkAway": 0,
            "hkNight": 3,
            "hkOff": 63,
            "ignoreStations": [
                "T841************",
                "T841************"
            ],
            "ignoreDevices": [
                "T89************",
                "T81************",
                "T84************",
                "T84************",
                "T81************"
            ],
            "country": "US",
            "cameras": [
                {
                    "serialNumber": "T896*************",
                    "rtsp": false,
                    "talkback": false
                },
                {
                    "serialNumber": "T82*************",
                    "rtsp": false,
                    "enableCamera": true,
                    "useCachedLocalLivestream": false,
                    "videoConfig": {
                        "audio": true,
                        "maxWidth": 640,
                        "maxHeight": 480,
                        "maxFPS": 15,
                        "useSeparateProcesses": true
                    },
                    "talkback": true,
                    "enableButton": false,
                    "motionButton": false,
                    "indoorChimeButton": false,
                    "immediateRingNotificationWithoutSnapshot": true,
                    "delayCameraSnapshot": true,
                    "refreshSnapshotIntervalMinutes": 30
                }
            ],
            "cleanCache": true,
            "unbridge": false,
            "username": "*************",
            "password": "*************",
            "deviceName": "",
            "platform": "EufySecurity",
            "stations": [
                {
                    "serialNumber": "*************",
                    "manualTriggerModes": [
                        0,
                        1,
                        2
                    ]
                }
            ]
        }
    ]
}
github-actions[bot] commented 1 year ago

Did you check this Common Issues pages ?

mrlightison commented 1 year ago

Note that this issue is fixed for me in v2.3.1-beta.3, but not 2.2.20, 2.2.21, 2.3.2, or 2.3.3.

tteuer commented 1 year ago

I have the exact same issue. Moving to 2.3.1-beta.3 solved the problem.