Sunoo / homebridge-camera-ffmpeg

Homebridge Plugin Providing FFmpeg-based Camera Support
https://sunoo.github.io/homebridge-camera-ffmpeg/
Apache License 2.0
1.09k stars 227 forks source link

getting error: ERROR[Shop Cam] The image snapshot handler for the given accessory didn't respond at all! See https://homebridge.io/w/JtMGR for more info. #1316

Closed recoi1er closed 2 years ago

recoi1er commented 2 years ago

Describe The Problem:

Today started getting this error in the log, not sure what it means other than the provided URL in the error says to report the issue to the plugin developer as it's an issue with the plugin. I have made zero changes to this plugin's config in almost 2 years, it has worked without issue since I originally created the config for WyzeCams **To Reproduce:** open the log and see the error, error started today. only changes to the system have been a couple other plugins updated in the past couple days but did not get error until today **Logs:**
Camera BridgeERROR[Shop Cam] The image snapshot handler for the given accessory didn't respond at all! See https://homebridge.io/w/JtMGR for more info.
7/4/2022, 12:27:02 PMCamera BridgeCamera FFmpegERROR[Front Door Cam] Failed to fetch snapshot.
7/4/2022, 12:27:02 PMCamera BridgeERROR[Front Door Cam] Snapshot request handler provided empty image buffer!
7/4/2022, 12:27:06 PMCamera BridgeCamera FFmpegERROR[Cat Cam PAN] Failed to fetch snapshot.
7/4/2022, 12:27:06 PMCamera BridgeERROR[Cat Cam PAN] Snapshot request handler provided empty image buffer!

Homebridge Config:

{
    "platform": "Camera-ffmpeg",
    "name": "Camera FFmpeg",
    "cameras": [
        {
            "name": "Cat Cam PAN",
            "manufacturer": "Wyze",
            "model": "Wyze Cam Pan",
            "serialNumber": "redacted",
            "firmwareRevision": "redacted",
            "unbridge": false,
            "videoConfig": {
                "source": "-rtsp_transport tcp -i rtsp://redacted:redacted@redacted/live",
                "stillImageSource": "-rtsp_transport tcp -i rtsp://redacted:redacted@redacted/live -vframes 1 -r 1",
                "additionalCommandline": "-protocol_whitelist https,crypto,srtp,rtp,udp",
                "maxWidth": 1280,
                "maxHeight": 720,
                "maxFPS": 15,
                "maxStreams": 2,
                "audio": true,
                "vcodec": "copy",
                "motion": true
            }
        },
        {
            "name": "Shop Cam",
            "manufacturer": "Wyze",
            "model": "Wyze Cam v2",
            "serialNumber": "redacted",
            "firmwareRevision": "redacted",
            "unbridge": false,
            "videoConfig": {
                "source": "-rtsp_transport tcp -i rtsp://redacted:redacted@redacted/live",
                "stillImageSource": "-rtsp_transport tcp -i rtsp://redacted:redacted@redacted/live -vframes 1 -r 1",
                "additionalCommandline": "-protocol_whitelist https,crypto,srtp,rtp,udp",
                "maxWidth": 1280,
                "maxHeight": 720,
                "maxFPS": 15,
                "maxStreams": 2,
                "audio": true,
                "vcodec": "copy",
                "motion": true
            }
        },
        {
            "name": "Front Door Cam",
            "manufacturer": "Wyze",
            "model": "Wyze Cam v2",
            "serialNumber": "redacted",
            "firmwareRevision": "redacted",
            "unbridge": false,
            "videoConfig": {
                "source": "-rtsp_transport tcp -i rtsp://redacted:redacted@redacted/live",
                "stillImageSource": "-rtsp_transport tcp -i rtsp://redacted:redacted@redacted/live -vframes 1 -r 1",
                "additionalCommandline": "-protocol_whitelist https,crypto,srtp,rtp,udp",
                "maxWidth": 1280,
                "maxHeight": 720,
                "maxFPS": 15,
                "maxStreams": 2,
                "audio": true,
                "vcodec": "copy",
                "motion": true
            },
            "motion": true
        },
        {
            "name": "Garage Door Cam",
            "manufacturer": "Wyze",
            "model": "Wyze Cam v2",
            "serialNumber": "redacted",
            "firmwareRevision": "redacted",
            "unbridge": false,
            "videoConfig": {
                "source": "-rtsp_transport tcp -i rtsp://redacted:redacted@redacted/live",
                "stillImageSource": "-rtsp_transport tcp -i rtsp://redacted:redacted@redacted/live -vframes 1 -r 1",
                "additionalCommandline": "-protocol_whitelist https,crypto,srtp,rtp,udp",
                "maxWidth": 1280,
                "maxHeight": 720,
                "maxFPS": 15,
                "maxStreams": 2,
                "audio": true,
                "vcodec": "copy",
                "motion": true
            }
        }
    ],
    "videoProcessor": "ffmpeg"
}

Screenshots:

Environment:

Sunoo commented 2 years ago

Does video still work and it’s just snapshots that are broken?

recoi1er commented 2 years ago

The snapshots worked for a brief moment up when I tried them all just now and no video worked, now neither work

and getting this in the log now:

Camera BridgeERROR[Shop Cam] The image snapshot handler for the given accessory is slow to respond! See https://homebridge.io/w/JtMGR for more info.

Sunoo commented 2 years ago

Did you cameras change IP addresses or anything?

recoi1er commented 2 years ago

No changes whatsoever have been made to this or the cameras since they were setup. I can still access all the cameras in the Wyze app. The URL referenced in the error code says its something the dev needs to look at and correct, https://homebridge.io/w/JtMGR

Sunoo commented 2 years ago

The URL is generic and doesn’t apply here.

is it possible something changed on the Wyze side? Can you try loading one of the URLs in VLC and see if it works there?

recoi1er commented 2 years ago

Loads immediately in VLC

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

aamiyazaki commented 1 year ago

Recently I started getting the same message (The image snapshot handler for the given accessory is slow to respond! See https://homebridge.io/w/JtMGR for more info.). Has the root cause been identified?

Sunoo commented 1 year ago

That's caused by your camera being slow to return a snapshot, not much can be done about it, as it comes from the Homebridge code.