mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 17:55:21 +03:00
Disable backchannel audio since it is not used
This commit is contained in:
parent
acd1fb9e3e
commit
8bb29f11bb
@ -22,14 +22,14 @@ def get_manual_go2rtc_stream(
|
||||
) -> str:
|
||||
"""Get a manual stream for go2rtc."""
|
||||
if codec == RestreamCodecEnum.copy:
|
||||
return f"ffmpeg:{camera_url}#video=copy#audio=aac#audio=opus"
|
||||
return f"ffmpeg:{camera_url}#video=copy#audio=aac#audio=opus#backchannel=0"
|
||||
|
||||
if engine:
|
||||
return (
|
||||
f"ffmpeg:{camera_url}#video={codec}#hardware={engine}#audio=aac#audio=opus"
|
||||
f"ffmpeg:{camera_url}#video={codec}#hardware={engine}#audio=aac#audio=opus#backchannel=0"
|
||||
)
|
||||
|
||||
return f"ffmpeg:{camera_url}#video={codec}#audio=aac#audio=opus"
|
||||
return f"ffmpeg:{camera_url}#video={codec}#audio=aac#audio=opus#backchannel=0"
|
||||
|
||||
|
||||
class RestreamApi:
|
||||
@ -52,7 +52,7 @@ class RestreamApi:
|
||||
input.path.startswith("rtsp")
|
||||
and not camera.restream.force_audio
|
||||
):
|
||||
self.relays[cam_name] = escape_special_characters(input.path)
|
||||
self.relays[cam_name] = f"{escape_special_characters(input.path)}#backchannel=0"
|
||||
else:
|
||||
# go2rtc only supports rtsp for direct relay, otherwise ffmpeg is used
|
||||
self.relays[cam_name] = get_manual_go2rtc_stream(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user