mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-12-23 19:11:14 +01:00
4eb3e98076
* Update go2rtc to rc3 * Simplify ffmpeg / audio conversions * Set ffmpeg bin location * Manually set video as copied * Run go2rtc with env vars * Remove manual ffmpeg declaration * Enable force_audio by default * Fix test
12 lines
358 B
Plaintext
12 lines
358 B
Plaintext
#!/usr/bin/with-contenv bash
|
|
|
|
# https://gist.github.com/mohanpedala/1e2ff5661761d3abd0385e8223e16425?permalink_comment_id=3945021
|
|
set -euo pipefail
|
|
|
|
if [[ -f "/config/frigate-go2rtc.yaml" ]]; then
|
|
CONFIG_PATH=/config/frigate-go2rtc.yaml
|
|
else
|
|
CONFIG_PATH=/usr/local/go2rtc/sbin/go2rtc.yaml
|
|
fi
|
|
|
|
exec /usr/local/go2rtc/sbin/go2rtc -config="$CONFIG_PATH" |