Disable backchannel audio since it is not used (#5021)

* Disable backchannel audio since it is not used

* Don't need to block bachchannel audio for ffmpeg streams

* Formatting
This commit is contained in:
Nicolas Mowen 2023-01-11 16:21:48 -07:00 committed by GitHub
parent 1643b4d108
commit cb0c5c2587
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,9 @@ class RestreamApi:
input.path.startswith("rtsp") input.path.startswith("rtsp")
and not camera.restream.force_audio 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: else:
# go2rtc only supports rtsp for direct relay, otherwise ffmpeg is used # go2rtc only supports rtsp for direct relay, otherwise ffmpeg is used
self.relays[cam_name] = get_manual_go2rtc_stream( self.relays[cam_name] = get_manual_go2rtc_stream(