mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-06-09 01:16:08 +02:00
Enable audio by default (#17125)
* Remove mp4 query, allowing go2rtc to send any audio * Add audio transcoding by default
This commit is contained in:
parent
6360802612
commit
b7333557a1
@ -80,15 +80,6 @@ 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
|
|
||||||
# this means user does not need to specify audio codec when using restream
|
|
||||||
# as source for frigate and the integration supports HLS playback
|
|
||||||
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("username") is not None:
|
||||||
go2rtc_config["rtsp"]["username"] = go2rtc_config["rtsp"]["username"].format(
|
go2rtc_config["rtsp"]["username"] = go2rtc_config["rtsp"]["username"].format(
|
||||||
**FRIGATE_ENV_VARS
|
**FRIGATE_ENV_VARS
|
||||||
|
@ -21,7 +21,7 @@ __all__ = [
|
|||||||
FFMPEG_GLOBAL_ARGS_DEFAULT = ["-hide_banner", "-loglevel", "warning", "-threads", "2"]
|
FFMPEG_GLOBAL_ARGS_DEFAULT = ["-hide_banner", "-loglevel", "warning", "-threads", "2"]
|
||||||
FFMPEG_INPUT_ARGS_DEFAULT = "preset-rtsp-generic"
|
FFMPEG_INPUT_ARGS_DEFAULT = "preset-rtsp-generic"
|
||||||
|
|
||||||
RECORD_FFMPEG_OUTPUT_ARGS_DEFAULT = "preset-record-generic"
|
RECORD_FFMPEG_OUTPUT_ARGS_DEFAULT = "preset-record-generic-audio-aac"
|
||||||
DETECT_FFMPEG_OUTPUT_ARGS_DEFAULT = [
|
DETECT_FFMPEG_OUTPUT_ARGS_DEFAULT = [
|
||||||
"-threads",
|
"-threads",
|
||||||
"2",
|
"2",
|
||||||
|
Loading…
Reference in New Issue
Block a user