▲ 2 r/frigate_nvr
FFMpeg crashing continuously
I'm running Frigate in a proxmox LXC with igpu passthough.
I've access to both vaapi and qsv. Now even though it's working detection and everything but logs are riddled with errors.
What I'm doing wrong?
LCX:
root@FrigateNvr:~# ffmpeg -hwaccels 2>&1
ffmpeg version 7.1.4-0+deb13u1 Copyright (c) 2000-2026 the FFmpeg developers
built with gcc 14 (Debian 14.2.0-19)
configuration: --prefix=/usr --extra-version=0+deb13u1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --disable-libmfx --disable-omx --enable-gnutls --enable-libaom --enable-libass --enable-libbs2b --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libharfbuzz --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-openal --enable-opencl --enable-opengl --disable-sndio --enable-libvpl --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-ladspa --enable-libbluray --enable-libcaca --enable-libdvdnav --enable-libdvdread --enable-libjack --enable-libpulse --enable-librabbitmq --enable-librist --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libx264 --enable-libzmq --enable-libzvbi --enable-lv2 --enable-sdl2 --enable-libplacebo --enable-librav1e --enable-pocketsphinx --enable-librsvg --enable-libjxl --enable-shared
libavutil 59. 39.100 / 59. 39.100
libavcodec 61. 19.101 / 61. 19.101
libavformat 61. 7.102 / 61. 7.102
libavdevice 61. 3.100 / 61. 3.100
libavfilter 10. 5.100 / 10. 5.100
libswscale 8. 3.100 / 8. 3.100
libswresample 5. 3.100 / 5. 3.100
libpostproc 58. 3.100 / 58. 3.100
Hardware acceleration methods:
vdpau
cuda
vaapi
qsv
drm
opencl
vulkan
root@FrigateNvr:~# ffmpeg -decoders 2>/dev/null | grep qsv
V....D av1_qsv AV1 video (Intel Quick Sync Video acceleration) (codec av1)
V....D h264_qsv H264 video (Intel Quick Sync Video acceleration) (codec h264)
V....D hevc_qsv HEVC video (Intel Quick Sync Video acceleration) (codec hevc)
V....D mjpeg_qsv MJPEG video (Intel Quick Sync Video acceleration) (codec mjpeg)
V....D mpeg2_qsv MPEG2VIDEO video (Intel Quick Sync Video acceleration) (codec mpeg2video)
V....D vc1_qsv VC1 video (Intel Quick Sync Video acceleration) (codec vc1)
V....D vp8_qsv VP8 video (Intel Quick Sync Video acceleration) (codec vp8)
V....D vp9_qsv VP9 video (Intel Quick Sync Video acceleration) (codec vp9)
V....D vvc_qsv VVC video (Intel Quick Sync Video acceleration) (codec vvc)
Logs:
info | 2026-05-18 14:34:00 | watchdog.backyard | Waiting for capture thread to exit...
error | 2026-05-18 14:34:00 | frigate.video | backyard: Unable to read frames from ffmpeg process.
error | 2026-05-18 14:34:00 | frigate.video | backyard: ffmpeg process is not running. exiting capture thread...
error | 2026-05-18 14:34:00 | watchdog.backyard | The following ffmpeg logs include the last 100 lines prior to exit.
error | 2026-05-18 14:34:00 | ffmpeg.backyard.detect | [rtsp @ 0x5a11701cb080] RTP: PT=60: bad cseq 8f79 expected=0d8d
error | 2026-05-18 14:34:00 | ffmpeg.backyard.detect | [rtsp @ 0x5a11701cb080] RTP: PT=61: bad cseq e351 expected=0bf3
info | 2026-05-18 14:34:00 | watchdog.backyard | Restarting ffmpeg...
error | 2026-05-18 14:34:02 | frigate.video | side: Unable to read frames from ffmpeg process.
error | 2026-05-18 14:34:02 | frigate.video | side: ffmpeg process is not running. exiting capture thread...
error | 2026-05-18 14:34:02 | watchdog.side | The following ffmpeg logs include the last 100 lines prior to exit.
error | 2026-05-18 14:34:02 | ffmpeg.side.detect | [rtsp @ 0x5c63a26a5080] RTP: PT=60: bad cseq df9b expected=cfb0
error | 2026-05-18 14:34:02 | ffmpeg.side.detect | [rtsp @ 0x5c63a26a5080] RTP: PT=61: bad cseq 0f3a expected=2b78
info | 2026-05-18 14:34:02 | watchdog.side | Restarting ffmpeg...
Frigate config:
ffmpeg:
hwaccel_args: preset-vaapi
detectors:
ov_0:
type: openvino
device: GPU # Or NPU
ov_1:
type: openvino
device: GPU # Or NPU
semantic_search:
enabled: false
model_size: small
face_recognition:
enabled: true
model_size: small
lpr:
enabled: false
classification:
bird:
enabled: true
snapshots:
enabled: true
retain:
default: 30
record:
enabled: true
alerts:
retain:
days: 30
mode: active_objects
detections:
retain:
days: 7
mode: active_objects
continuous:
days: 1
motion:
days: 3
objects:
track:
- person
- cat
- dog
- fox
- badger
model:
model_type: yolo-generic
width: 320 # <--- should match whatever was set in notebook
height: 320 # <--- should match whatever was set in notebook
input_pixel_format: rgb
input_tensor: nchw
input_dtype: float
path: /config/model_cache/yolov9-s-320.onnx
labelmap_path: /labelmap/coco-80.txt
go2rtc:
streams:
hallway:
# Stream #0:0: Video: h264 (High), yuv420p(progressive), 2304x1296, 16.67 fps, 16.67 tbr, 90k tbn
# Stream #0:1: Audio: pcm_alaw, 8000 Hz, mono, s16, 64 kb/s
- rtsp://{FRIGATE_HALLWAY_USER}:{FRIGATE_HALLWAY_PSWD}@{FRIGATE_HALLWAY_IP}:554/stream1
- ffmpeg:hallway#audio=aac # transcodes audio to aac for frigate recording and audio detection
- ffmpeg:hallway#audio=opus # transcodes audio to opus for webrtc compatibility
- tapo://{FRIGATE_TAPO_PSWD}@{FRIGATE_HALLWAY_IP}
hallway_sub:
# Stream #0:0: Video: h264 (High), yuv420p(progressive), 1280x720, 16.67 fps, 16.67 tbr, 90k tbn
# Stream #0:1: Audio: pcm_alaw, 8000 Hz, mono, s16, 64 kb/s
- rtsp://{FRIGATE_HALLWAY_USER}:{FRIGATE_HALLWAY_PSWD}@{FRIGATE_HALLWAY_IP}:554/stream2
doorbell:
# Stream #0:0: Video: h264 (High), yuv420p(progressive), 2560x1920, 20 fps, 40 tbr, 90k tbn
# Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp
# - rtsp://{FRIGATE_DOORBELL_USER}:{FRIGATE_DOORBELL_PSWD}@{FRIGATE_DOORBELL_IP}:554/h264Preview_01_main
# - ffmpeg:doorbell#audio=opus # transcodes audio to opus for webrtc compatibility
- "ffmpeg:http://{FRIGATE_DOORBELL_IP}/flv?port=1935&app=bcs&stream=channel0_main.bcs&user={FRIGATE_DOORBELL_USER}&password={FRIGATE_DOORBELL_PSWD}#video=copy#audio=copy#audio=opus"
- "rtsp://{FRIGATE_DOORBELL_USER}:{FRIGATE_DOORBELL_PSWD}@{FRIGATE_DOORBELL_IP}/Preview_01_sub"
doorbell_sub:
# Stream #0:0: Video: h264 (High), yuv420p(progressive), 640x480, 10 fps, 20 tbr, 90k tbn
# Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp
# - rtsp://{FRIGATE_DOORBELL_USER}:{FRIGATE_DOORBELL_PSWD}@{FRIGATE_DOORBELL_IP}:554/h264Preview_01_sub
- "ffmpeg:http://{FRIGATE_DOORBELL_IP}/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user={FRIGATE_DOORBELL_USER}&password={FRIGATE_DOORBELL_PSWD}"
- "rtsp://{FRIGATE_DOORBELL_USER}:{FRIGATE_DOORBELL_PSWD}@{FRIGATE_DOORBELL_IP}/Preview_01_sub"
side:
# Stream #0:0: Video: hevc (Main), yuv420p(tv), 3840x2160, 25 fps, 25 tbr, 90k tbn
# Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp
- rtsp://{FRIGATE_SIDE_USER}:{FRIGATE_SIDE_PSWD}@{FRIGATE_SIDE_IP}:554/Preview_01_main
- ffmpeg:side#audio=opus # transcodes audio to opus for webrtc compatibility
side_sub:
# Stream #0:0: Video: h264 (High), yuv420p(progressive), 640x360, 10 fps, 20 tbr, 90k tbn
# Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp
- rtsp://{FRIGATE_SIDE_USER}:{FRIGATE_SIDE_PSWD}@{FRIGATE_SIDE_IP}:554/Preview_01_sub
backyard:
# Stream #0:0: Video: hevc (Main), yuv420p(tv), 3840x2160, 25 fps, 24.58 tbr, 90k tbn
# Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp
- rtsp://{FRIGATE_BACKYARD_USER}:{FRIGATE_BACKYARD_PSWD}@{FRIGATE_BACKYARD_IP}:554/Preview_01_main
- ffmpeg:backyard#audio=opus # transcodes audio to opus for webrtc compatibility
backyard_sub:
# Stream #0:0: Video: h264 (High), yuv420p(progressive), 640x360, 10 fps, 25.08 tbr, 90k tbn
# Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp
- rtsp://{FRIGATE_BACKYARD_USER}:{FRIGATE_BACKYARD_PSWD}@{FRIGATE_BACKYARD_IP}:554/Preview_01_sub
garden:
# Stream #0:0: Video: hevc (Main), yuv420p(tv), 4608x1728, 20 fps, 20 tbr, 90k tbn
# Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp
- rtsp://{FRIGATE_GARDEN_USER}:{FRIGATE_GARDEN_PSWD}@{FRIGATE_GARDEN_IP}:554/Preview_01_main
- ffmpeg:garden#audio=opus # transcodes audio to opus for webrtc compatibility
garden_sub:
# Stream #0:0: Video: h264 (High), yuv420p(progressive), 1536x576, 10 fps, 20 tbr, 90k tbn
# Stream #0:1: Audio: aac, 16000 Hz, mono, fltp
- rtsp://{FRIGATE_GARDEN_USER}:{FRIGATE_GARDEN_PSWD}@{FRIGATE_GARDEN_IP}:554/Preview_01_sub
ffmpeg:
volume: -af "volume=30dB"
webrtc:
listen: :8555
candidates:
- '{FRIGATE_IP}:8555'
- stun:8555
cameras:
hallway:
detect:
enabled: true
width: 1280
height: 720
fps: 5
review:
alerts:
enabled: false
detections:
enabled: false
ffmpeg:
# hwaccel_args: preset-intel-qsv-h264
output_args:
# nned audio-aac since original has pcm_alaw
record: preset-record-generic-audio-aac
inputs:
- path: rtsp://127.0.0.1:8554/hallway
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/hallway_sub
input_args: preset-rtsp-restream
roles:
- detect
live:
streams:
Sub Stream: hallway_sub
Main Stream: hallway
doorbell:
enabled: true
detect:
enabled: true
width: 640
height: 480
fps: 5
ffmpeg:
# hwaccel_args: preset-intel-qsv-h264
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp://127.0.0.1:8554/doorbell
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/doorbell_sub
input_args: preset-rtsp-restream
roles:
- detect
side:
enabled: true
detect:
enabled: true
width: 640
height: 360
fps: 5
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp://127.0.0.1:8554/side
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/side_sub
input_args: preset-rtsp-restream
roles:
- detect
live:
streams:
Sub Stream: side_sub
Main Stream: side
backyard:
enabled: true
detect:
enabled: true
width: 640
height: 360
fps: 5
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp://127.0.0.1:8554/backyard
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/backyard_sub
input_args: preset-rtsp-restream
roles:
- detect
live:
streams:
Sub Stream: backyard_sub
Main Stream: backyard
garden:
enabled: true
detect:
enabled: true
width: 1536
height: 576
fps: 5
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp://127.0.0.1:8554/garden
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/garden_sub
input_args: preset-rtsp-restream
roles:
- detect
live:
streams:
Sub Stream: garden_sub
Main Stream: garden
version: 0.17-1
u/stackinvader — 4 days ago