Lag time



  • New user here. I stumbled across this app in doing a ton of searching in looking for an app do do what this app is doing. I have a backstreet surveillance camera system and wanted interaction with Alexa to show who is at my door when the doorbell rings. This is a work in progress at this point.
    To get the app working for me, I had to use the Monocle gateway. I then got all of my info in and working. I then rebooted the computer and installed Monocle as a service.
    It works ok at this point but it is taking about 17 - 18 seconds to load the stream. I have tried it on my main tv with a : Fire TV Stick streaming media player with Alexa built in, includes Alexa Voice Remote, HD, easy set-up, released 2019. I then ordered a Amazon Echo Show 8 - HD 8" smart display with Alexa. I got this yesterday and it has the same time lag as the fire stick. Is there any tweeks that may help this? I have read a lot of these post and my delay sounds a little excesive compared to others.
    Thanks for any help / ideas
    Wayne



  • Forgot to ask in my first post. Does running the monocle service or app in Rasberry Pi make any difference than running it on my computer. Is one way any faster than the other?
    Thanks
    Wayne



  • ALso, forgot in my post that in vlc the video is about 6 seconds to get video feed.



  • @Wayne-K said in Lag time:

    New user here. I stumbled across this app in doing a ton of searching in looking for an app do do what this app is doing. I have a backstreet surveillance camera system and wanted interaction with Alexa to show who is at my door when the doorbell rings. This is a work in progress at this point.
    To get the app working for me, I had to use the Monocle gateway. I then got all of my info in and working. I then rebooted the computer and installed Monocle as a service.
    It works ok at this point but it is taking about 17 - 18 seconds to load the stream. I have tried it on my main tv with a : Fire TV Stick streaming media player with Alexa built in, includes Alexa Voice Remote, HD, easy set-up, released 2019. I then ordered a Amazon Echo Show 8 - HD 8" smart display with Alexa. I got this yesterday and it has the same time lag as the fire stick. Is there any tweeks that may help this? I have read a lot of these post and my delay sounds a little excesive compared to others.
    Thanks for any help / ideas
    Wayne

    The delay is almost entirely based on the Alexa RTSP player. When using the Monocle Gateway, there is a potential for a slight additional delay, but no more than 1-2 seconds – typically less than 1 second under normal conditions.

    17-18 seconds does sound excessive. My cameras range anywhere from 5 to 15 seconds. You might try adding the tag @noaudio to strip out any audio from the stream. I have seen certain cases where the audio channel caused additional latency on some cameras. You may also be able to play with some of the video encoder settings to see if you can get any less latency. Sorry I don’t have any definitive answers – Alexa is pretty much a black box implementation for its RTSP player.

    Thanks, Robert



  • @Wayne-K said in Lag time:

    Forgot to ask in my first post. Does running the monocle service or app in Rasberry Pi make any difference than running it on my computer. Is one way any faster than the other?
    Thanks
    Wayne

    Under most conditions running on a small embedded system such as a Raspberry Pi is perfectly fine. We have not experienced any significant improvement or difference when running on a Pi or on much more powerful desktop hardware. The gateway is pretty much just a pass thru proxy for the RTSP TCP/UDP packets — its not doing any heavy lifting. With that said – it is more important to make sure its physically connected to ethernet and not using WiFi. Under very high loads handling multiple concurrent streams, running the gateway on more powerful hardware and perhaps gigabit networking could result in better performance — however that’s not a typical use case for most Monocle users.

    Thanks, Robert



  • @Wayne-K said in Lag time:

    ALso, forgot in my post that in vlc the video is about 6 seconds to get video feed.

    Is the camera connected via WiFi? Most cameras I connect to using VLC from a desktop/laptop computer have very little latency maybe a couple of seconds.

    When testing from VLC and FFMPEG from a Raspberry Pi, the latency was much greater – close to that of the Alexa devices 5-15 seconds.



  • I am hardwired ethernet thru poe switch to each camera
    I am using the following settings
    Digest
    H264
    None on audio
    1920*1080
    @noaudio, @proxy

    Thanks for the reply’s
    Wayne


Log in to reply