kopiro / homebridge-tapo-camera

Homebridge plugin for TP-Link TAPO security cameras
ISC License
119 stars 10 forks source link

[04/01/2024, 23:18:42] [tapo-camera] [TAPO C200] Failed to fetch snapshot. #115

Closed mrtargaryen closed 5 months ago

mrtargaryen commented 6 months ago

I have ffmpeg installed on my Raspberry Pi 4 (11, Bullseye)

I have Homebridge installed.

Furthermore, I have the Homebridge-tapo-camera plugin installed.

And these are the error messages I am receiving:

[04/01/2024, 23:18:42] [tapo-camera] [TAPO C200] Failed to fetch snapshot.
[TAPO C200 C5E8] Snapshot request handler provided empty image buffer!
[04/01/2024, 23:19:14] [tapo-camera] [TAPO C200] Failed to fetch snapshot.
[TAPO C200 C5E8] Snapshot request handler provided empty image buffer!
[04/01/2024, 23:19:14] [tapo-camera] [TAPO C200] Starting video stream: native x native, native fps, ??? kbps (AAC-eld)
[04/01/2024, 23:19:14] [tapo-camera] [TAPO C200] FFmpeg exited with code: 1 and signal: null (Error)
[04/01/2024, 23:19:14] [tapo-camera] [TAPO C200] Stopped video stream.
[04/01/2024, 23:19:18] [tapo-camera] [TAPO C200] Failed to fetch snapshot.
[TAPO C200 C5E8] Snapshot request handler provided empty image buffer!

I'm assuming it's a problem with the camera or a problem with the plugin.

Any help is appreciated.

mrtargaryen commented 6 months ago

Here is my config:

{
    "bridge": {
        "name": "Homebridge 25AE",
        "username": "XXXXXXXXXXXXXX",
        "port": 51714,
        "pin": "392-78-811",
        "advertiser": "avahi"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        },
        {
            "cameras": [
                {
                    "name": "TAPO C200",
                    "ipAddress": "192.168.50.191",
                    "password": "PASSWORD",
                    "streamUser": "USERNAME",
                    "streamPassword": "PASSWORD",
                    "disablePrivacyAccessory": true
                }
            ],
            "platform": "tapo-camera"
        },
        {
            "addresses": [
                "192.168.50.28"
            ],
            "name": "Tapo Lights",
            "email": "EMAIL",
            "password": "PASSWORD",
            "platform": "HomebridgeTPLinkTapo"
        }
    ]
}
x23piracy commented 5 months ago

Did you install https://github.com/Sunoo/homebridge-camera-ffmpeg#readme too? Try it.

mrtargaryen commented 5 months ago

Did you install https://github.com/Sunoo/homebridge-camera-ffmpeg#readme too? Try it.

Thanks for the reply, I have the same problem when using this plugin (homebridge-camera-ffmpeg), snapshot failed. I have no idea what to do. I've asked in several places, and you're the only person to reply.

kopiro commented 5 months ago

Follow the instructions to install ffmpeg-for-homebridge here: https://github.com/homebridge/ffmpeg-for-homebridge