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

12/7/2023, 3:54:18 PM Google Nest Sdm Bridge homebridge-google-nest-sdm [ ERROR ] FFmpeg exited with code: 1 and signal: null (Error) Front door Doorbell #121

Closed fitzpact closed 7 months ago

fitzpact commented 7 months ago

Hi, I am getting the following error trying to access my Google Next Battery doorbell video. I only see the Google logo instead of any streaming video. I checked the microphone on the device and it is currently on. What else can I do to resolve this error and display the live stream correctly?

potmat commented 7 months ago

Please enable debug mode and post some more logs from when the error happens.

fitzpact commented 7 months ago

I may not be doing this correctly but this was all I get. For reference, my actions were trying to open live stream via homkit app to produce the error. HomeKit results in "No response" from my front door doorbell

Stream Configuration' on the accessory 'Front door Doorbell' didn't respond at all!. Please check that you properly call the callback! 12/7/2023, 3:54:18 PMGoogle Nest Sdm Bridgehomebridge-google-nest-sdmERRORFFmpeg exited with code: 1 and signal: null (Error) Front door Doorbell 12/7/2023, 4:01:07 PM/usr/share/keyrings/yarnkey.gpg: OK 12/7/2023, 4:01:07 PM/usr/share/keyrings/hoobs.gpg: OK 12/7/2023, 4:01:07 PMdeb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x bullseye main 12/7/2023, 4:01:07 PMdeb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x bullseye main 12/7/2023, 4:01:08 PMHit:1 http://deb.debian.org/debian bullseye InRelease 12/7/2023, 4:01:08 PMGet:2 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB] 12/7/2023, 4:01:08 PMGet:3 http://deb.debian.org/debian bullseye-backports InRelease [49.0 kB] 12/7/2023, 4:01:08 PMHit:4 http://security.debian.org bullseye-security InRelease 12/7/2023, 4:01:08 PMHit:5 http://armbian.chi.auroradev.org/apt bullseye InRelease 12/7/2023, 4:01:08 PMGet:6 https://dl.hoobs.org/debian stable InRelease [3,032 B] 12/7/2023, 4:01:08 PMHit:7 https://dl.yarnpkg.com/debian stable InRelease 12/7/2023, 4:01:08 PMHit:8 https://deb.nodesource.com/node_16.x bullseye InRelease 12/7/2023, 4:01:45 PMGet:9 http://deb.debian.org/debian bullseye-backports/main armhf Packages.diff/Index [63.3 kB] 12/7/2023, 4:01:45 PMGet:10 http://deb.debian.org/debian bullseye-backports/main armhf Packages T-2023-12-07-2007.14-F-2023-12-07-2007.14.pdiff [264 B] 12/7/2023, 4:01:45 PMGet:10 http://deb.debian.org/debian bullseye-backports/main armhf Packages T-2023-12-07-2007.14-F-2023-12-07-2007.14.pdiff [264 B] 12/7/2023, 4:01:45 PMFetched 160 kB in 5s (30.3 kB/s) 12/7/2023, 4:01:45 PMReading package lists... 12/7/2023, 4:08:20 PMGoogle Nest Sdm Bridgehomebridge-google-nest-sdmERRORFFmpeg exited with code: 1 and signal: null (Error) Front door Doorbell

potmat commented 7 months ago

You probably need to enable debug mode in Homebridge settings:

image
fitzpact commented 7 months ago

Within hoobs I have debug enabled and it doesn't show anything other than the FFmpeg error.

Screenshot 2023-12-07 at 4 18 57 PM
fitzpact commented 7 months ago

As an update, I am successfully getting notifications for motion and when the doorbell is rung it shows up on my Apple TV but it is still missing the streaming video live stream. Just shows the same "G".

fitzpact commented 7 months ago

As of this morning its no longer working and now receiving these errors when motion is detected.

Screenshot 2023-12-08 at 2 21 10 PM
potmat commented 7 months ago

I'm guessing this has something to do with it:

image

I don't use HOOBS so I can't say for certain what the issue is, but we have seen problems in the past with the plugin running as a bridge.

If anyone else out there has HOOBS and is able to help investigate this it would be appreciated.

zxlin commented 7 months ago
Edit: Found the issue for me - microphone was off for some reason, enabling microphone resolved this issue! I'm not using HOOBS, I'm on latest docker container image, homebridge v4.54.1. Debug log below doesn't show anything particularly useful? Of note, another camera works, just not the doorbell one for some reason. Anything else I can do to investigate? ``` [12/11/2023, 12:24:13 PM] [homebridge-google-nest-sdm] [info] Input #0, rtsp, from 'rtsps://stream-us1-foxtrot.dropcam.com:443/sdm_live_stream/[redact]': Doorbell [12/11/2023, 12:24:13 PM] [homebridge-google-nest-sdm] [info] Metadata: Doorbell [12/11/2023, 12:24:13 PM] [homebridge-google-nest-sdm] [info] title : SDM Doorbell [12/11/2023, 12:24:13 PM] [homebridge-google-nest-sdm] [info] Duration: N/A, start: 0.734000, bitrate: N/A Doorbell [12/11/2023, 12:24:13 PM] [homebridge-google-nest-sdm] [info] Stream #0:0: Video: h264 (Main), 1 reference frame, yuvj420p(pc, bt709, progressive, left), 1600x1200 [SAR 1:1 DAR 4:3], 15 fps, 15 tbr, Doorbell [12/11/2023, 12:24:13 PM] [homebridge-google-nest-sdm] 90k tbn Doorbell [12/11/2023, 12:24:13 PM] [homebridge-google-nest-sdm] Doorbell [12/11/2023, 12:24:13 PM] [homebridge-google-nest-sdm] [info] Output #1, rtp, to 'srtp://[internal_ip]:57752?rtcpport=57752&pkt_size=188': Doorbell [12/11/2023, 12:24:13 PM] [homebridge-google-nest-sdm] [out#1/rtp @ 0x7f46fe5a4c40] [error] Output file does not contain any stream Doorbell [12/11/2023, 12:24:13 PM] [homebridge-google-nest-sdm] Doorbell [12/11/2023, 12:24:13 PM] [homebridge-google-nest-sdm] [AVIOContext @ 0x7f46fe574e40] [verbose] Statistics: 0 bytes written, 0 seeks, 0 writeouts Doorbell [12/11/2023, 12:24:13 PM] [homebridge-google-nest-sdm] Doorbell [12/11/2023, 12:24:13 PM] [homebridge-google-nest-sdm] FFmpeg exited with code: 1 and signal: null (Error) Doorbell [12/11/2023, 12:24:13 PM] [homebridge-google-nest-sdm] Executing command sdm.devices.commands.CameraLiveStream.StopRtspStream with parameters {"streamExtensionToken":"[redact]"} Doorbell ```
fitzpact commented 7 months ago

I have switched to a Ring camera now and have no issues with it working correctly. I'll close this issue.