kopiro / homebridge-tapo-camera

Homebridge plugin for TP-Link TAPO security cameras
ISC License
127 stars 11 forks source link

FFmpeg process creation failed: spawn ffmpeg ENOENT #114

Closed mrtargaryen closed 9 months ago

mrtargaryen commented 9 months ago

Describe Your Problem: I connected the C200 Camera to this plugin, and connected the Camera to the Home app. There is no video stream in the Home app. In the Homebridge logs it states the following:

[1/3/2024, 1:04:33 PM] Homebridge v1.7.0 (HAP v0.11.1) (Homebridge 6FA5) is running on port 51499.
[1/3/2024, 1:04:33 PM] [TPLink Tapo Platform] Restoring existing accessory from cache: Smart Bulb
[1/3/2024, 1:04:33 PM] TAPO C200 C5E8 is running on port 51657.
[1/3/2024, 1:04:33 PM] Please add [TAPO C200 C5E8] manually in Home app. Setup Code: 312-07-873
[1/3/2024, 1:04:36 PM] [tapo-camera] [TAPO C200] FFmpeg process creation failed: spawn ffmpeg ENOENT
[TAPO C200 C5E8] Snapshot request handler provided empty image buffer!
[1/3/2024, 1:04:56 PM] [tapo-camera] [TAPO C200] FFmpeg process creation failed: spawn ffmpeg ENOENT
[TAPO C200 C5E8] Snapshot request handler provided empty image buffer!

Plugin Config:

{
    "bridge": {
        "name": "Homebridge 6FA5",
        "username": “XXXXXXXXXX”,
        "port": 51499,
        "pin": "312-07-873",
        "advertiser": "bonjour-hap"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "auth": "form",
            "theme": "deep-purple",
            "tempUnits": "c",
            "lang": "en",
            "platform": "config"
        },
        {
            "addresses": [
                "192.168.50.28"
            ],
            "name": "TPLink Tapo Platform",
            "email": “XXXXXXXXXX.com",
            "password": “XXXXXXX”,
            "platform": "HomebridgeTPLinkTapo"
        },
        {
            "cameras": [
                {
                    "name": "TAPO C200",
                    "ipAddress": "192.168.50.191",
                    "password": “XXXXXXXXXXXX”,
                    "streamUser": “XXXXXXXXX”,
                    "streamPassword": “XXXXXXXXXX”
                }
            ],
            "platform": "tapo-camera"
        }
    ],
    "disabledPlugins": []
}

Environment:

kopiro commented 9 months ago

Please try to install ffmpeg-for-homebridge manually.

mrtargaryen commented 9 months ago

That didn't work, why did you close this?

[1/3/2024, 11:40:49 PM] Homebridge v1.7.0 (HAP v0.11.1) (Homebridge 6FA5) is running on port 51499.
[1/3/2024, 11:40:49 PM] [TPLink Tapo Platform] Restoring existing accessory from cache: Smart Bulb
[1/3/2024, 11:40:50 PM] TAPO C200 C5E8 is running on port 63109.
[1/3/2024, 11:40:50 PM] Please add [TAPO C200 C5E8] manually in Home app. Setup Code: 312-07-873
[1/3/2024, 11:41:06 PM] [tapo-camera] [TAPO C200] Failed to fetch snapshot.
[TAPO C200 C5E8] Snapshot request handler provided empty image buffer!
[1/3/2024, 11:41:07 PM] [tapo-camera] [TAPO C200] Starting video stream: native x native, native fps, ??? kbps (AAC-eld)
[1/3/2024, 11:41:08 PM] [tapo-camera] [TAPO C200] FFmpeg exited with code: 1 and signal: null (Error)
[1/3/2024, 11:41:08 PM] [tapo-camera] [TAPO C200] Stopped video stream.
[1/3/2024, 11:41:21 PM] [tapo-camera] [TAPO C200] Starting video stream: native x native, native fps, ??? kbps (AAC-eld)
[1/3/2024, 11:41:22 PM] [tapo-camera] [TAPO C200] FFmpeg exited with code: 1 and signal: null (Error)
[1/3/2024, 11:41:22 PM] [tapo-camera] [TAPO C200] Stopped video stream.
[1/3/2024, 11:41:29 PM] [tapo-camera] [TAPO C200] Failed to fetch snapshot.
[TAPO C200 C5E8] Snapshot request handler provided empty image buffer!
[1/3/2024, 11:41:35 PM] [tapo-camera] [TAPO C200] Failed to fetch snapshot.
[TAPO C200 C5E8] Snapshot request handler provided empty image buffer!
[1/3/2024, 11:41:36 PM] [tapo-camera] [TAPO C200] Failed to fetch snapshot.
[TAPO C200 C5E8] Snapshot request handler provided empty image buffer!
[1/3/2024, 11:41:38 PM] [tapo-camera] [TAPO C200] Starting video stream: native x native, native fps, ??? kbps (AAC-eld)
[1/3/2024, 11:41:39 PM] [tapo-camera] [TAPO C200] FFmpeg exited with code: 1 and signal: null (Error)
[1/3/2024, 11:41:39 PM] [tapo-camera] [TAPO C200] Stopped video stream.