mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-06 05:27:44 +03:00
Remove mp4 query, allowing go2rtc to send any audio
This commit is contained in:
parent
9e70bddc9d
commit
da29367e8c
@ -80,24 +80,15 @@ if go2rtc_config["webrtc"].get("candidates") is None:
|
|||||||
|
|
||||||
go2rtc_config["webrtc"]["candidates"] = default_candidates
|
go2rtc_config["webrtc"]["candidates"] = default_candidates
|
||||||
|
|
||||||
# sets default RTSP response to be equivalent to ?video=h264,h265&audio=aac
|
if go2rtc_config["rtsp"].get("username") is not None:
|
||||||
# this means user does not need to specify audio codec when using restream
|
go2rtc_config["rtsp"]["username"] = go2rtc_config["rtsp"]["username"].format(
|
||||||
# as source for frigate and the integration supports HLS playback
|
**FRIGATE_ENV_VARS
|
||||||
if go2rtc_config.get("rtsp") is None:
|
)
|
||||||
go2rtc_config["rtsp"] = {"default_query": "mp4"}
|
|
||||||
else:
|
|
||||||
if go2rtc_config["rtsp"].get("default_query") is None:
|
|
||||||
go2rtc_config["rtsp"]["default_query"] = "mp4"
|
|
||||||
|
|
||||||
if go2rtc_config["rtsp"].get("username") is not None:
|
if go2rtc_config["rtsp"].get("password") is not None:
|
||||||
go2rtc_config["rtsp"]["username"] = go2rtc_config["rtsp"]["username"].format(
|
go2rtc_config["rtsp"]["password"] = go2rtc_config["rtsp"]["password"].format(
|
||||||
**FRIGATE_ENV_VARS
|
**FRIGATE_ENV_VARS
|
||||||
)
|
)
|
||||||
|
|
||||||
if go2rtc_config["rtsp"].get("password") is not None:
|
|
||||||
go2rtc_config["rtsp"]["password"] = go2rtc_config["rtsp"]["password"].format(
|
|
||||||
**FRIGATE_ENV_VARS
|
|
||||||
)
|
|
||||||
|
|
||||||
# ensure ffmpeg path is set correctly
|
# ensure ffmpeg path is set correctly
|
||||||
path = config.get("ffmpeg", {}).get("path", "default")
|
path = config.get("ffmpeg", {}).get("path", "default")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user