45clouds / homebridge-ip-camera

IP camera plugin for homebridge
50 stars 7 forks source link

Live-performance delay & framerate #8

Open JannickWe opened 7 years ago

JannickWe commented 7 years ago

Hi,

I am running your plugin on an Intel NUC with the latest Debian stretch, the computer is equipped with an i5 and should be capable of handling this easily. The camera submits a 25fps stream, viewing it with vlc shows a really good performance. I have removed the sillImagesource since my camera doesn't offer any stills.

The videostream in HomeKit is very laggy, it takes around 30 seconds to get the first image and another 30 seconds until it changes to live. If it's live, there is one picture every few seconds, with a much reduced quality. Furthermore, the timestamp shows a delay of around 30 seconds. Do you have any idea where this come from? Is that the expected functionality of the plugin and the same for all users?

Best Regards and thanks for the great work!

Jannick

grimmsq commented 7 years ago

Hey, first I would like to thank @45clouds for this plugin and his time involved in making it, second I have the same issue, I'm running homebridge on a PI3, it takes ~30 seconds until the view is updated, is there any work around this?

Thanks in advance!

45clouds commented 7 years ago

It seems to be a problem with homebridge. I have a lot of devices connected to home kit via homebridge. I've noticed that what I run Home application on my phone I have to wait few seconds until they update their state. On the other hand Philips Hue lights update their status almost immediately. The same with this plugin. You have to wait until home kit starts to process the input stream. I've tried to resolve this issue but without luck

JannickWe commented 7 years ago

Thank you for your response. If I open a stream in the home app, I can watch the homebridge immediately calling the video function, so the delay has to happen after the request is handed over to the plugin. Would it be possible to prepare the video stream continuously, even if no one is requesting it to have it available as soon as I’d request it?

DavidCo23 commented 6 years ago

Hello,

I'm having this same issue. Did anyone here ever figure out what was happening?