potmat / homebridge-google-nest-sdm

A Homebridge plugin for Google Nest devices that uses the Google Smart Device Management API. Supports Cameras, Doorbells, Displays, and Thermostats. Includes support for HomeKit Secure Video.
ISC License
134 stars 15 forks source link

Error when trying to view stream #153

Open TanoopSungha opened 5 months ago

TanoopSungha commented 5 months ago

I get the following error message: FFmpeg exited with code: 1 and signal: null (Error) {name of camera}

fLyRhyTHeMz commented 5 months ago

same here. Nest cam gen 1 and nest hub max gen 2 both fail. Don't even load snapshots, just nest logo.

potmat commented 5 months ago

Guys this is not enough to go on. Please enable debug mode and post more logs from around when the error happens. Also make sure you have read the FAQ.

TanoopSungha commented 5 months ago

I get this appearing: Recording download stream 1 is still awaiting generator although stream was closed 10s ago! This is a programming mistake by the camera implementation which prevents freeing up resources.

rudiv commented 4 months ago

Confirmed, it does appear to be streaming something but eventually Home app is just saying "No response".

[12/03/2024, 16:48:16] [homebridge-google-nest-sdm] [vost#0:0/libx264 @ 0x141e06790] [verbose] *** 1 dup! Front Door Doorbell
[12/03/2024, 16:48:16] [homebridge-google-nest-sdm]  Front Door Doorbell
[12/03/2024, 16:48:16] [homebridge-google-nest-sdm] [vost#0:0/libx264 @ 0x141e06790] [verbose] *** 1 dup! Front Door Doorbell
[12/03/2024, 16:48:16] [homebridge-google-nest-sdm]  Front Door Doorbell
 Front Door Doorbell6] [homebridge-google-nest-sdm] [info] frame=  651 fps= 31 q=13.0 size=    3051kB time=00:00:22.69 bitrate=1101.3kbits/s dup=324 drop=0 speed=1.07x
[12/03/2024, 16:48:16] [homebridge-google-nest-sdm] [vost#0:0/libx264 @ 0x141e06790] [verbose] *** 1 dup! Front Door Doorbell
[12/03/2024, 16:48:16] [homebridge-google-nest-sdm]  Front Door Doorbell
[12/03/2024, 16:48:16] [homebridge-google-nest-sdm] [vost#0:0/libx264 @ 0x141e06790] [verbose] *** 1 dup! Front Door Doorbell
[12/03/2024, 16:48:16] [homebridge-google-nest-sdm]  Front Door Doorbell
[12/03/2024, 16:48:16] [homebridge-google-nest-sdm] [vost#0:0/libx264 @ 0x141e06790] [verbose] *** 1 dup! Front Door Doorbell
[12/03/2024, 16:48:16] [homebridge-google-nest-sdm]  Front Door Doorbell
[12/03/2024, 16:48:16] [homebridge-google-nest-sdm] [vost#0:0/libx264 @ 0x141e06790] [verbose] *** 1 dup! Front Door Doorbell

It's also intermixed with a lot of errors (non debug) from this API. From looking around it's related to new cameras not supporting it, but this is an old Nest Hello that should be supported.

"code":403,"errors":[{"message":"Permission denied to sdm.devices.commands.CameraEventImage.GenerateImage.","domain":"global","reason":"forbidden"}]} Front Door Doorbell
potmat commented 4 months ago

When the logs show the streaming working but no video is showing up it's usually due to something in your network preventing the traffic from reaching the destination. What environment are you running Homebridge in?

rudiv commented 4 months ago

Funny enough my original comment was going to be about errors with FFMpeg (getting a 404 on the RTSP stream) but they seem to have disappeared now.

All running from a Nest Wifi mesh - everything seems to be fairly standard (UPnP enabled etc).

potmat commented 4 months ago

The 404 errors are a known bug with the SDM API, you can help by starring this issue: https://issuetracker.google.com/issues/300128105

If I had to guess it's got something to do with the Nest Wifi, never heard of anyone using one of those before. See if you can run Homebridge on a laptop or something on your network and see if it works.

rudiv commented 4 months ago

Starred that issue!

Sorry, I was being stupid.

Homebridge is running on a Mac Studio (M1 Ultra), the network environment is Nest Wifi. I mentioned that primarily as I've heard of some weird things being blocked on the network side before - they're all on the same network.

potmat commented 4 months ago

Unfortunately this may be one of those issues where, without me being in your house, I have no way to figure out what the problem is.