homebridge-google-nest-sdm icon indicating copy to clipboard operation
homebridge-google-nest-sdm copied to clipboard

Error when trying to view stream

Open TanoopSungha opened this issue 1 year ago • 11 comments

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

TanoopSungha avatar Feb 14 '24 15:02 TanoopSungha

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

fLyRhyTHeMz avatar Feb 17 '24 07:02 fLyRhyTHeMz

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.

potmat avatar Feb 18 '24 19:02 potmat

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.

TanoopSungha avatar Feb 19 '24 10:02 TanoopSungha

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

rudiv avatar Mar 12 '24 16:03 rudiv

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?

potmat avatar Mar 12 '24 17:03 potmat

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).

rudiv avatar Mar 12 '24 17:03 rudiv

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.

potmat avatar Mar 12 '24 17:03 potmat

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.

rudiv avatar Mar 12 '24 17:03 rudiv

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.

potmat avatar Mar 13 '24 00:03 potmat

Just to chip in on my experience ( since I wasted 1/2 day trying to understand live feed issues ), in my case, it was a combination of 2 factors: a/ Having a VPN enabled on the hub ( AppleTV in my case ), is totally breaking any HomeKit video feeds ( seems that my VPN provider is tunnelling all traffic, that HomeKit Secure Video doesn't like ). b/ There seems to be a latency cutoff on the HomeKit side for video streaming --- in my setup, trying to set the video quality for the video cameras to "max" would make HomeKit time out on on me.

Just my 2c : )

zmanuel1234 avatar Oct 15 '24 00:10 zmanuel1234

I forgot to update this, but running it on a Raspberry Pi instead (using the config exported from the Mac Studio) worked without issue.

I can't explain why as the logs look identical, it just has the benefit of actually working from the Raspi.

rudiv avatar Oct 15 '24 19:10 rudiv