Frigate FFmpeg Presets Reference
Hardware Acceleration Presets
Intel Platforms
| Preset | Use Case | Requirements |
|---|---|---|
preset-intel-qsv-h264 |
H.264 decode via QSV | Intel gen8+ |
preset-intel-qsv-h265 |
H.265 decode via QSV | Intel gen8+ |
preset-vaapi |
H.264/H.265 via VAAPI | Intel gen1-gen12 |
Example:
ffmpeg:
hwaccel_args: preset-intel-qsv-h264NVIDIA Platforms
| Preset | Use Case | Requirements |
|---|---|---|
preset-nvidia |
H.264/H.265 decode | NVIDIA GPU + Container Toolkit |
Example:
ffmpeg:
hwaccel_args: preset-nvidiaDocker Requirements:
services:
frigate:
runtime: nvidia
environment:
- NVIDIA_VISIBLE_DEVICES=allAMD Platforms
| Preset | Use Case | Requirements |
|---|---|---|
preset-vaapi |
H.264/H.265 via VAAPI | AMD GPU with radeonsi driver |
Example:
ffmpeg:
hwaccel_args: preset-vaapiEnvironment Variable:
environment:
- LIBVA_DRIVER_NAME=radeonsiRaspberry Pi
| Preset | Use Case | Requirements |
|---|---|---|
preset-rpi-64-h264 |
H.264 decode | RPi 4/5, 64-bit OS |
preset-rpi-64-h265 |
H.265 decode | RPi 4/5, 64-bit OS |
Requirements:
gpu_mem=128in/boot/config.txt- Device mapping:
/dev/video10,/dev/video11,/dev/video12
Input Presets
RTSP Transport
| Preset | Use Case |
|---|---|
preset-rtsp-restream |
Default RTSP with TCP transport |
preset-rtsp-udp |
RTSP with UDP transport |
preset-rtsp-blue-iris |
Optimized for Blue Iris |
Example:
cameras:
cam1:
ffmpeg:
inputs:
- path: rtsp://camera/stream
input_args: preset-rtsp-restreamHTTP/MJPEG
| Preset | Use Case |
|---|---|
preset-http-jpeg-generic |
Generic MJPEG over HTTP |
preset-http-reolink |
Reolink HTTP MJPEG |
Output Presets
Recording Output
| Preset | Use Case |
|---|---|
preset-record-generic |
Default recording (no audio) |
preset-record-generic-audio-aac |
Recording with AAC audio |
preset-record-generic-audio-copy |
Recording with original audio |
preset-record-mjpeg |
MJPEG recording |
preset-record-ubiquiti |
Ubiquiti camera optimization |
Example:
cameras:
cam1:
ffmpeg:
output_args:
record: preset-record-generic-audio-aacCommon Configurations
Intel System with Audio Recording
ffmpeg:
hwaccel_args: preset-intel-qsv-h264
cameras:
front_door:
ffmpeg:
inputs:
- path: rtsp://camera/substream
input_args: preset-rtsp-restream
roles:
- detect
- path: rtsp://camera/mainstream
input_args: preset-rtsp-restream
roles:
- record
output_args:
record: preset-record-generic-audio-aacNVIDIA with go2rtc Restream
ffmpeg:
hwaccel_args: preset-nvidia
go2rtc:
streams:
front_door:
- rtsp://camera/mainstream
- "ffmpeg:front_door#video=copy#audio=opus"
cameras:
front_door:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/front_door
input_args: preset-rtsp-restream
roles:
- detect
- recordRaspberry Pi with H.265 Camera
ffmpeg:
hwaccel_args: preset-rpi-64-h265
cameras:
front_door:
ffmpeg:
inputs:
- path: rtsp://camera/h265stream
input_args: preset-rtsp-restream
roles:
- detect
- recordUDP Transport for Unreliable Networks
cameras:
outdoor_cam:
ffmpeg:
inputs:
- path: rtsp://camera/stream
input_args: preset-rtsp-udp
roles:
- detectTroubleshooting
RTSP URL Works in VLC but Not Frigate
Frigate defaults to TCP transport, while VLC auto-switches between UDP and TCP.
Solution:
input_args: preset-rtsp-udpNo Audio in Recordings
Default presets strip audio to prevent corruption.
Solution:
output_args:
record: preset-record-generic-audio-aacHigh CPU Despite Hardware Acceleration
- Verify hardware acceleration is active in Frigate logs
- Check Docker device mappings are correct
- Ensure using correct preset for your hardware
Green/Corrupted Video
Usually indicates wrong codec or resolution mismatch.
Solutions:
- Verify camera actually outputs H.264 or H.265
- Match
detect.widthanddetect.heightexactly to camera output - Try software decoding temporarily to rule out hwaccel issues
Custom FFmpeg Arguments
For advanced use cases, you can specify raw FFmpeg arguments:
cameras:
cam1:
ffmpeg:
inputs:
- path: rtsp://camera/stream
input_args:
- -avoid_negative_ts
- make_zero
- -fflags
- +genpts+discardcorrupt
- -rtsp_transport
- tcp
- -use_wallclock_as_timestamps
- "1"See FFmpeg documentation for all available options.