mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 01:35:22 +03:00
Support all stream types
This commit is contained in:
parent
d218b27d3a
commit
f6b87531b9
@ -26,7 +26,11 @@ class RestreamApi:
|
||||
|
||||
for input in camera.ffmpeg.inputs:
|
||||
if "restream" in input.roles:
|
||||
if input.path.startswith('rtsp'):
|
||||
self.relays[cam_name] = input.path
|
||||
else:
|
||||
# go2rtc only supports rtsp for direct relay, otherwise ffmpeg is used
|
||||
self.relays[cam_name] = f"ffmpeg:{input.path}"
|
||||
|
||||
for name, path in self.relays.items():
|
||||
params = {"src": path, "name": name}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user