Print webrtc info to stderr (#5227)

* Update create_config.py

* Print to stderr
This commit is contained in:
Nicolas Mowen 2023-01-25 17:38:45 -07:00 committed by GitHub
parent 9ddcf7b1fe
commit f54b223adf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,7 @@
import json
import os
import sys
import yaml
@ -41,7 +42,7 @@ if not go2rtc_config.get("webrtc", {}).get("candidates", []):
go2rtc_config["webrtc"] = {"candidates": default_candidates}
else:
print("[INFO] Not injecting WebRTC candidates into go2rtc config as it has been set manually")
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
if not os.path.exists(BTBN_PATH):