Trying to get real-time cameras in Lovelace - help!

No matter what I try, the cams arent realtime in a lovelace card. Theyre choppy, delayed, etc I have them defined in motioneye and when viewing them in the Motioneye screen, they are realtime and look great.

were designing a realtime monitor dashboard for a very high-powered laser cutter and I need graphs, temps, status,etc and video all on one screen…

stream:
camera:
  - platform: ffmpeg
    name: USB Camera 1
    input: http://localhost:9081/mjpeg

Ive even tried the Frigate card

type: custom:frigate-card
cameras:
  - camera_entity: camera.usb_camera_1
    live_provider: auto
    motioneye:
      url: http://localhost:9081
    triggers:
      occupancy: false

same problem. interestingly if I use the mpeg stream url in an iframe (http://localhost:9081), it’s works and is in realtime but I cant contol how the iframe displays so the pic is cut off. I’d like to be able to use the Motioneye controls that are available.

I believe when doing that the streams are proxied through home assistant. Does your HA system have enough processor to handle the load?

Yes, - Intel NUC, well appointed.

Have you tried the MJPEG camera integration?

Yes, it was choppy and laggy. that’s what led me to try the Motioneye integration, which works great and is near real-time. It’s just that the camera images themselves can’t seem to be used in a Lovelace card, only on its on screen.

We need to see the live video along side the temp and pressure graphs as the machine is operating.

Not sure if I mentioned it previously but these are 2 USB cameras directly plugged in to the NUC. Not that it should make any difference. FWIW, I’ve never been able to get near real-time video from any camera displayed in HA in the past, even on my system at my house, regardless if it comes from my ip NVR, or directly from a camera itself via TCP stream.

Jeff