jgow / org.openhab.binding.mqtt.frigatesvr

Frigate SVR binding for OpenHAB
Eclipse Public License 2.0
14 stars 2 forks source link

Main UI video stream delay #10

Open rabner opened 2 days ago

rabner commented 2 days ago

Frigate ver: 0.14.1 OpenHab ver: 4.2.2 on RPi 4

I'm getting about 15s delay displaying stream in Main UI as compared to rtsp directly from Frigate. I'm doing it via item state + ".m3u8" in oh-video-card. Birdseye re-stream in Main UI is only delayed couple seconds (via oh-image-card). Is that normal?

image

jgow commented 1 day ago

Yes there can be a delay (in viewed streams; this does not affect detection which is handled by Frigate). The binding itself doesn't do any video processing - all the video stream generation is done by ffmpeg - the binding just serves up the HLS stream components as generated by ffmpeg. It is possible to change the ffmpeg settings via the binding configuration, it may be worth experimenting as it is entirely possible ffmpeg is buffering the stream.

rabner commented 1 day ago

Yes, that would make sense. Just thinking out loud, would it be possible to point to frigate directly in openhab items state? For example as an option when 're-stream' is not enabled in camera thing?

Yesterday I've created modal page with birdseye view and two video streams to see how it behaves. So now when I checked birdseye is working, but both video streams are not. I can't see any ffmpeg process starting in openhab for those cameras.