File tree 1 file changed +13
-2
lines changed
docker/rootfs/usr/local/go2rtc
1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 67
67
# as source for frigate and the integration supports HLS playback
68
68
if go2rtc_config .get ("rtsp" ) is None :
69
69
go2rtc_config ["rtsp" ] = {"default_query" : "mp4" }
70
- elif go2rtc_config ["rtsp" ].get ("default_query" ) is None :
71
- go2rtc_config ["rtsp" ]["default_query" ] = "mp4"
70
+ else :
71
+ if go2rtc_config ["rtsp" ].get ("default_query" ) is None :
72
+ go2rtc_config ["rtsp" ]["default_query" ] = "mp4"
73
+
74
+ if go2rtc_config ["rtsp" ].get ("username" ) is not None :
75
+ go2rtc_config ["rtsp" ]["username" ] = go2rtc_config ["rtsp" ]["username" ].format (
76
+ ** FRIGATE_ENV_VARS
77
+ )
78
+
79
+ if go2rtc_config ["rtsp" ].get ("password" ) is not None :
80
+ go2rtc_config ["rtsp" ]["password" ] = go2rtc_config ["rtsp" ]["password" ].format (
81
+ ** FRIGATE_ENV_VARS
82
+ )
72
83
73
84
# need to replace ffmpeg command when using ffmpeg4
74
85
if int (os .environ ["LIBAVFORMAT_VERSION_MAJOR" ]) < 59 :
You can’t perform that action at this time.
0 commit comments