Delay with camera stream


I have a camera with a rtsp stream. When I connect via the android app the delay is minimal (approx. 1 sec).
When I use the stream in vlc player the delay is also minimal rtsp://

When I configure

- platform: generic
  stream_source: rtsp://

then the delay is 30 to 60 seconds.

I use a lan connected rpi 3B with HA 0.98.1 and motioneye installed. CPU use is approx 33%.

What could be the cause of the delay? Is the raspberry to slow to transcode the stream?

1 Like

same issues here, have you found solution?

Is the raspberry to slow to transcode the stream?


in my case i have a HP microserver with xeon processor, so unlikely the processor/hardware is the issue
HA is running on that server with esxi

1 Like

hi @Thuurke found a solution yet ?

Hi, do you have found solutions a this issue?

I stopped using stream, I use the play command now , works much better

1 Like

I would like to know how you used this play command because I also have a lot of delay.

Did you enable the ffmpeg: integration in your configuration?


Yes I activated and everything is fine, but the cameras have a delay of 6 to 8 seconds.


Jan 9

I stopped using stream, I use the play command now , works much better

wanted to know how he did it above.

hi, see below
i created a template switch to expose my caremas to google
so i just say: camera xx on/off to google
the link is coming from motioneye streaming url, or you can use what ever stream you want

     friendly_name: Camera Buiten
     value_template: "false"   
       - service: media_player.play_media
           entity_id: media_player.google_hub
           media_content_type: "image/jpg"       
       - service: media_player.turn_off
         entity_id: media_player.google_hub

ok, i see in RC release notes for 110 release , that we can now configure 2 base urls
internal + external

maybe that helps for the slow camera streams!

how does that help? i have also this problem with RTSP streams, 10 seconds behind. and this is in passthrough mode, so the cameras are h264, so there is no transcoding happening via ffmpeg? I think that it got worse on 110. on 104 was working better.

1 Like

In my case it didn’t help…

Try this, let me know if it works.

I’m running HA in a docker container on Unraid. I spun up a MotionEye container and fed it the RTSP stream of my Unifi Protect and Wyze cameras. No more delays and perfect response on notifications. Let me know if you need help.

See : motionEye snapshot url does not work

and see:


Hi, I’m also having a delay. Mine is about 5 seconds so not too bad, but would like to reduce this.

I’ve connected a Reolink E1 Pro through ONVIF integration. Home Assistant is running on on a RP 3B.

Does anyone have any advice on what I can do to reduce? I’ve already reduced frame rate and resolution to about 15fps and 1080P and don’t want to go much lower than that. I also have preload stream enabled on the UI.

On ONVIF Device Manager there is no delay at all. Could it be the RP hardware causing the delay?

Testing a Reolink 520 and I have a big 15+ second delay via Home Assistant even with the low res 640x480 _sub feed. I also have the Preload option turned on. In VLC on my macbook there is barely a delay, 1-2 seconds.

Currently running on a Raspberry Pi 3B.

Delay is no better on a Pi 4 and it seems this is related to how HA handles stream feeds. ONVIF integration reduces the delay for me by about 1/2 but still not great (6-10 seconds depending).