mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Add a TCP timeout of 5 seconds to ffmpeg (#23617)
Add a TCP timeout of 5 seconds to ffmpeg to fix stream getting stuck when network connectivity is lost https://github.com/home-assistant/home-assistant/issues/22741
This commit is contained in:
parent
3e59e7f347
commit
f87209605b
@ -53,6 +53,7 @@ def request_stream(hass, stream_source, *, fmt='hls',
|
||||
if isinstance(stream_source, str) \
|
||||
and stream_source[:7] == 'rtsp://' and not options:
|
||||
options['rtsp_flags'] = 'prefer_tcp'
|
||||
options['stimeout'] = '5000000'
|
||||
|
||||
try:
|
||||
streams = hass.data[DOMAIN][ATTR_STREAMS]
|
||||
|
Loading…
x
Reference in New Issue
Block a user