Enable hardware acceleration for decoding, config tweaks
This commit is contained in:
parent
dac5478957
commit
ae6d583e3e
2 changed files with 25 additions and 10 deletions
|
@ -1,6 +1,6 @@
|
|||
mqtt:
|
||||
host: mqtt.datarift.nl
|
||||
port: 8883
|
||||
port: 1883
|
||||
user: frigate
|
||||
password: "{FRIGATE_MQTT_PASSWORD}"
|
||||
|
||||
|
@ -10,7 +10,7 @@ logger:
|
|||
record:
|
||||
enabled: true
|
||||
retain:
|
||||
days: 7
|
||||
days: 5
|
||||
|
||||
snapshots:
|
||||
enabled: true
|
||||
|
@ -18,18 +18,30 @@ snapshots:
|
|||
detect:
|
||||
enabled: False
|
||||
|
||||
# ffmpeg:
|
||||
# hwaccel_args: -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format yuv420p
|
||||
ffmpeg:
|
||||
hwaccel_args: -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format yuv420p
|
||||
|
||||
cameras:
|
||||
hobby:
|
||||
deurbel:
|
||||
ffmpeg:
|
||||
inputs:
|
||||
- path: http://10.0.0.161:8080/
|
||||
# - path: rtsp://admin:{FRIGATE_DOORBELL_PASSWORD}@10.0.0.31/h264Preview_01_main
|
||||
- path: https://10.0.0.31/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password={FRIGATE_DOORBELL_PASSWORD}
|
||||
roles:
|
||||
- record
|
||||
- rtmp
|
||||
input_args: -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -use_wallclock_as_timestamps 1 -c:v mjpeg
|
||||
output_args:
|
||||
record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v libx264 -an
|
||||
rtmp: -c:v libx264 -an -f flv
|
||||
input_args:
|
||||
- -avoid_negative_ts
|
||||
- make_zero
|
||||
- -fflags
|
||||
- +genpts+discardcorrupt
|
||||
- -flags
|
||||
- low_delay
|
||||
- -strict
|
||||
- experimental
|
||||
- -analyzeduration
|
||||
- 1000M
|
||||
- -probesize
|
||||
- 1000M
|
||||
- -rw_timeout
|
||||
- "5000000"
|
||||
|
|
|
@ -42,6 +42,9 @@ in
|
|||
"--mount"
|
||||
"type=tmpfs,target=/tmp/cache,tmpfs-size=1G"
|
||||
];
|
||||
environment = {
|
||||
LIBVA_DRIVER_NAME = "i965";
|
||||
};
|
||||
environmentFiles = [
|
||||
config.sops.secrets.frigate.path
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue