twrecked / lovelace-hass-aarlo

Lovelace card for hass-aarlo integration.
75 stars 23 forks source link

Very long delay #102

Open pinkfloydFR opened 3 years ago

pinkfloydFR commented 3 years ago

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.

TheDK commented 3 years ago

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.

pinkfloydFR commented 3 years ago

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.

TheDK commented 3 years ago

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...

twrecked commented 3 years ago

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.

pinkfloydFR commented 3 years ago

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

twrecked commented 3 years ago

Don't forgot to add direct to image_view.

pinkfloydFR commented 3 years ago

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

twrecked commented 3 years ago

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.

platini76 commented 2 years ago

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