forked from Github/frigate
Compare commits
4 Commits
v0.12.0-rc
...
v0.12.0-rc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bc16ad1f13 | ||
|
|
1b8cd10142 | ||
|
|
83c80c570c | ||
|
|
4c5cd02ab7 |
@@ -54,8 +54,17 @@ if [[ ! -f "/dev/shm/go2rtc.yaml" ]]; then
|
|||||||
python3 /usr/local/go2rtc/create_config.py
|
python3 /usr/local/go2rtc/create_config.py
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
readonly config_path="/config"
|
||||||
|
|
||||||
|
if [[ -x "${config_path}/go2rtc" ]]; then
|
||||||
|
readonly binary_path="${config_path}/go2rtc"
|
||||||
|
echo "[WARN] Using go2rtc binary from '${binary_path}' instead of the embedded one"
|
||||||
|
else
|
||||||
|
readonly binary_path="/usr/local/go2rtc/bin/go2rtc"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "[INFO] Starting go2rtc..."
|
echo "[INFO] Starting go2rtc..."
|
||||||
|
|
||||||
# Replace the bash process with the go2rtc process, redirecting stderr to stdout
|
# Replace the bash process with the go2rtc process, redirecting stderr to stdout
|
||||||
exec 2>&1
|
exec 2>&1
|
||||||
exec go2rtc -config=/dev/shm/go2rtc.yaml
|
exec "${binary_path}" -config=/dev/shm/go2rtc.yaml
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ Note that mjpeg cameras require encoding the video into h264 for recording, and
|
|||||||
```yaml
|
```yaml
|
||||||
go2rtc:
|
go2rtc:
|
||||||
streams:
|
streams:
|
||||||
mjpeg_cam: ffmpeg:{your_mjpeg_stream_url}#video=h264#hardware # <- use hardware acceleration to create an h264 stream usable for other components.
|
mjpeg_cam: "ffmpeg:{your_mjpeg_stream_url}#video=h264#hardware" # <- use hardware acceleration to create an h264 stream usable for other components.
|
||||||
|
|
||||||
cameras:
|
cameras:
|
||||||
...
|
...
|
||||||
@@ -110,7 +110,7 @@ go2rtc:
|
|||||||
streams:
|
streams:
|
||||||
reolink:
|
reolink:
|
||||||
- http://reolink_ip/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password
|
- http://reolink_ip/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password
|
||||||
- ffmpeg:reolink#audio=opus
|
- "ffmpeg:reolink#audio=opus"
|
||||||
reolink_sub:
|
reolink_sub:
|
||||||
- http://reolink_ip/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=username&password=password
|
- http://reolink_ip/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=username&password=password
|
||||||
|
|
||||||
|
|||||||
@@ -502,7 +502,7 @@ ui:
|
|||||||
# Optional: Set the default live mode for cameras in the UI (default: shown below)
|
# Optional: Set the default live mode for cameras in the UI (default: shown below)
|
||||||
live_mode: mse
|
live_mode: mse
|
||||||
# Optional: Set a timezone to use in the UI (default: use browser local time)
|
# Optional: Set a timezone to use in the UI (default: use browser local time)
|
||||||
timezone: None
|
# timezone: America/Denver
|
||||||
# Optional: Use an experimental recordings / camera view UI (default: shown below)
|
# Optional: Use an experimental recordings / camera view UI (default: shown below)
|
||||||
use_experimental: False
|
use_experimental: False
|
||||||
# Optional: Set the time format used.
|
# Optional: Set the time format used.
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ export default function Storage() {
|
|||||||
<Tbody>
|
<Tbody>
|
||||||
<Tr>
|
<Tr>
|
||||||
<Td>{Math.round(camera['usage_percent'] ?? 0)}%</Td>
|
<Td>{Math.round(camera['usage_percent'] ?? 0)}%</Td>
|
||||||
<Td>{camera['bandwidth'] ? getUnitSize(camera['bandwidth']) : 'Calculating...'}/hr</Td>
|
<Td>{camera['bandwidth'] ? `${getUnitSize(camera['bandwidth'])}/hr` : 'Calculating...'}</Td>
|
||||||
</Tr>
|
</Tr>
|
||||||
</Tbody>
|
</Tbody>
|
||||||
</Table>
|
</Table>
|
||||||
|
|||||||
Reference in New Issue
Block a user