Print to stderr

This commit is contained in:
Nicolas Mowen 2023-01-24 08:34:24 -07:00 committed by GitHub
parent 7b1b5ff7aa
commit d07fa1498b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,7 @@
import json import json
import os import os
import sys
import yaml import yaml
@ -40,6 +41,8 @@ if not go2rtc_config.get("webrtc", {}).get("candidates", []):
default_candidates.append("stun:8555") default_candidates.append("stun:8555")
go2rtc_config["webrtc"] = {"candidates": default_candidates} go2rtc_config["webrtc"] = {"candidates": default_candidates}
else:
print("[INFO] Not injecting WebRTC candidates into go2rtc config as it has been set manually", file=sys.stderr)
# need to replace ffmpeg command when using ffmpeg4 # need to replace ffmpeg command when using ffmpeg4
if not os.path.exists(BTBN_PATH): if not os.path.exists(BTBN_PATH):