lovelace-hass-aarlo icon indicating copy to clipboard operation
lovelace-hass-aarlo copied to clipboard

Very long delay

Open pinkfloydFR opened this issue 3 years ago • 9 comments

HI, the card is working well for me, but with a 10s video delay

I don't know if it's my configuration ( hassio on a raspberry pi ) but with anoter ip camera i have solved the problem with using :

https://github.com/AlexxIT/WebRTC

perhaps you can inspire from that ?

Thanks for the work btw.

pinkfloydFR avatar Jun 23 '21 00:06 pinkfloydFR

Other IP cameras are being picked up directly (so their stream is directly played in your browser / app), while Arlo sends the stream to its cloud where it is probably transcoded and sent back to you. The delay is accumulated depending on wifi strength, internet uplink, load on Arlo Cloud, etc.

In my experience 10s is pretty long, for me it's usually more like 3-5s - but real-time is just not possible with Arlo, for that you would need a local IP cam.

TheDK avatar Jun 23 '21 07:06 TheDK

ah ok didn't know that.

The strange thing is, like you said, that in the arlo apps the delay is pretty short ( ie 2/3 second ), it's only very long on HA.

pinkfloydFR avatar Jun 23 '21 08:06 pinkfloydFR

If that's the case there might be additional transcoding going on in HA, see here: https://github.com/twrecked/hass-aarlo#other-streaming

Maybe try around a bit what works best / all in your setup...

TheDK avatar Jun 23 '21 08:06 TheDK

One more thing to add: we are using the web interface to make this work, I think the Arlo app gets access to a better interface with more features and faster responses so you can't do a direct comparison. My delays are similar to @TheDK , more in the 5 second range.

twrecked avatar Jun 23 '21 12:06 twrecked

Added user agent, will test if it's better...

aarlo: username: !secret arlo_username password: !secret arlo_password tfa_source: imap tfa_type: email tfa_host: imap.gmail.com tfa_username: !secret tfa_username tfa_password: !secret tfa_password user_agent: linux

pinkfloydFR avatar Jun 23 '21 12:06 pinkfloydFR

Don't forgot to add direct to image_view.

twrecked avatar Jun 23 '21 12:06 twrecked

like i have done ?

type: custom:aarlo-glance entity: camera.aarlo_arlo_entree name: front door image_view: direct image_top: signal,battery|status image_bottom: onoff,motion,library,stream,sound|snapshot image_click: stream library_sizes: 3,4,2

pinkfloydFR avatar Jun 23 '21 12:06 pinkfloydFR

That looks good.

And thanks for the WebRTC link, I have a single FosCam camera and I'm going to see if that will speed up the access to that. Not sure I can get that to work with Arlo because, as you may have noticed, the stream URL changes every time.

twrecked avatar Jun 23 '21 13:06 twrecked

I have only two camera that stream ok. the other 2 won't stream... someone can help me?

platini76 avatar Nov 17 '22 03:11 platini76