When using an ONVIF/RTSP camera, sometimes the default 15 seconds timeout is not enough to get an image. On my 100mbit ethernet setup, with a noname IP camera, I have a 30% success rate with it. I started playing with the timeout by gradually increasing the hardcoded value in ha-ffmpeg
but the solution is not very clean and it does not survive an update.
I noticed that the async_get_image
is able to override this timeout, so I guess it should be just propagated further and exposed somehow in the settings of the ONVIF integration similarly to the Extra ffmpeg arguments.
What do you folks think? I have problem of implementing it if the “design” gets approved. Or I can also work with an increased (25s) hardcoded timeout in the ha-ffmpeg
library.