TheCrypt0 / yi-hack-v4

New Custom Firmware for Xiaomi Cameras based on Hi3518e Chipset. It features RTSP, SSH, FTP and more!
GNU General Public License v3.0
1.54k stars 217 forks source link

Adding RTSP stream to Homebridge #66

Open WEZANGO opened 5 years ago

WEZANGO commented 5 years ago

Did anybody managed to add RTSP stream from Yi Hack V4 to homebridge? I can watch the stream through VLC but in HomeKit it's only black screen without any video.

I am using regular sapmle config provided at homebridge ffmpeg plugin wiki

{ "platform": "Camera-ffmpeg", "cameras": [ { "name": "Camera Name", "videoConfig": { "source": "-re -i rtsp://myfancy_rtsp_stream", "stillImageSource": "-i rtsp://myfancy_rtsp_stream", "maxStreams": 2, "maxWidth": 1280, "maxHeight": 720, "maxFPS": 30 } } ] }

seydx commented 5 years ago

yes, i have modified the homebridge-cameras-ffmpeg plugin and using also the mqtt service from this hack

xvolte commented 5 years ago

@SeydX can you share what you did please?

WEZANGO commented 5 years ago

yes, i have modified the homebridge-cameras-ffmpeg plugin and using also the mqtt service from this hack

Are you using Raspberry Pi for that or something else?

seydx commented 5 years ago

@WEZANGO

yea its a raspberry

@xvolte

will publish a own plugin for this within next few days

seydx commented 5 years ago

v1

https://github.com/SeydX/homebridge-camera-mqtt

WEZANGO commented 5 years ago

So it is an Mqtt plugin. But how did you add camera itself? Actually I already managed to add my camera, but it connects in about 10 secınds and it has really low frame rate, freezes once in a few seconds. I would say it’s because raspberry is not really powerfull, but while watching camera, CPU is loaded only for 20%. I am using x264_omx. Do you have the same issues?

seydx commented 5 years ago

@WEZANGO

Its a ffmpeg (its also possible to use other codecs) plugin with mqtt support designed for the mqtt service which this hack offers

Im using this with a Intel NUC, with the example-config you can find on the main site of the plugin

Do you tried with ffmpeg?

seydx commented 5 years ago

changed from homebridge-camera-mqtt to homebridge-yi-camera

here some screenshots

https://github.com/SeydX/homebridge-yi-camera/tree/master/images

WEZANGO commented 5 years ago

changed from homebridge-camera-mqtt to homebridge-yi-camera

here some screenshots

https://github.com/SeydX/homebridge-yi-camera/tree/master/images

That is just great. Thank a lot!

seydx commented 5 years ago

Next version will add also a web interface for the camera to access the stream via http from overall