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

how to add a http video stream #146

Closed PvdGulik closed 5 months ago

PvdGulik commented 5 months ago

I use the app "IPCamera - high-end networkcam" which works very easy and fine for the purpose I need. But I would like to add the stream to Homekit. I hoped to use via this plugin on Homebridge which also works fine for me. But I don't get a http://ip-address stream working.

Can somebody help me how to add it in the config.

I tried this:

{ "name": "Camera FFmpeg", "cameras": [ { "name": "Nestkastje", "model": "iPhone SE", "unbridge": true, "videoConfig": { "source": "-i http://192.168.1.133/", "stillImageSource": "-i http://192.168.1.133/", "maxWidth": 0, "maxHeight": 0, "maxFPS": 0, "audio": false } } ], "platform": "Camera-ffmpeg" }

but with no succes, and errors in the logs of homebridge:

[07/02/2024, 00:25:05] [Camera FFmpeg] [Nestkastje] Failed to fetch snapshot. [Nestkastje 6769] Snapshot request handler provided empty image buffer! [07/02/2024, 00:25:14] [Camera FFmpeg] [Nestkastje] Starting video stream: native x native, native fps, 802 kbps [07/02/2024, 00:25:15] [Camera FFmpeg] [Nestkastje] FFmpeg exited with code: 1 and signal: null (Error) [07/02/2024, 00:25:15] [Camera FFmpeg] [Nestkastje] Stopped video stream. [07/02/2024, 00:26:01] [Camera FFmpeg] [Nestkastje] Failed to fetch snapshot. [Nestkastje 6769] Snapshot request handler provided empty image buffer! [07/02/2024, 00:27:42] [Camera FFmpeg] [Nestkastje] Failed to fetch snapshot. [Nestkastje 6769] Snapshot request handler provided empty image buffer! [07/02/2024, 00:29:23] [Camera FFmpeg] [Nestkastje] Failed to fetch snapshot. [Nestkastje 6769] Snapshot request handler provided empty image buffer! [07/02/2024, 00:31:04] [Camera FFmpeg] [Nestkastje] Failed to fetch snapshot. [Nestkastje 6769] Snapshot request handler provided empty image buffer! [07/02/2024, 00:31:33] [Camera FFmpeg] [Nestkastje] Failed to fetch snapshot. [Nestkastje 6769] Snapshot request handler provided empty image buffer! [07/02/2024, 00:31:35] [Camera FFmpeg] [Nestkastje] Failed to fetch snapshot. [Nestkastje 6769] Snapshot request handler provided empty image buffer! [07/02/2024, 00:32:45] [Camera FFmpeg] [Nestkastje] Failed to fetch snapshot. [Nestkastje 6769] Snapshot request handler provided empty image buffer! [07/02/2024, 00:34:26] [Camera FFmpeg] [Nestkastje] Failed to fetch snapshot. [Nestkastje 6769] Snapshot request handler provided empty image buffer! [07/02/2024, 00:36:07] [Camera FFmpeg] [Nestkastje] Failed to fetch snapshot. [Nestkastje 6769] Snapshot request handler provided empty image buffer! [07/02/2024, 00:37:48] [Camera FFmpeg] [Nestkastje] Failed to fetch snapshot. [Nestkastje 6769] Snapshot request handler provided empty image buffer!

Thanks!

potmat commented 5 months ago

@PvdGulik: I'm not sure what you mean. This plugin is for working with Nest devices in HomeKit apps. It does not expose any HTTP endpoints for viewing camera streams.

potmat commented 5 months ago

Closing as this does not appear to be an issue with this plugin.