Blake Blackshear 5 лет назад
Родитель
Сommit
a659019d1a
2 измененных файлов с 5 добавлено и 7 удалено
  1. 2 0
      .gitignore
  2. 3 7
      config/config.example.yml

+ 2 - 0
.gitignore

@@ -1,2 +1,4 @@
 *.pyc 
 debug
+.vscode
+config/config.yml

+ 3 - 7
config/config.yml → config/config.example.yml

@@ -8,13 +8,9 @@ mqtt:
 
 cameras:
   back:
-    rtsp:
-      user: viewer
-      host: 10.0.10.10
-      port: 554
-      # values that begin with a "$" will be replaced with environment variable
-      password: $RTSP_PASSWORD
-      path: /cam/realmonitor?channel=1&subtype=2
+    # Source passed to ffmpeg after the -i parameter.
+    # Environment variables that begin with 'FRIGATE_' may be referenced in {}
+    ffmpeg_input: rtsp://viewer:{FRIGATE_RTSP_PASSWORD}@10.0.10.10:554/cam/realmonitor?channel=1&subtype=2
 
     ################
     ## Optional mask. Must be the same dimensions as your video feed.