[HW Accel Support]: INtel N100 VAAPI #13750
-
Describe the problem you are havingHardware acceleration not working Version0.14.1-f4f3cfa In which browser(s) are you experiencing the issue with?Google Chrome Version 128.0.6613.137 (Offizieller Build) (64-Bit) Frigate config filemqtt:
enabled: true
host: 192.168.178.44 # <---- same mqtt broker that home assistant uses
user: dirkt
password: dirkt
ffmpeg:
hwaccel_args: preset-vaapi
cameras:
Haustuer: # <--- this will be changed to your actual camera later
enabled: true
ffmpeg:
inputs:
- path: rtsp://test:[email protected]:554/live/ch1
roles:
- detect
- path: rtsp://test:[email protected]:554/live/ch0
roles:
- record
- audio
#detectors:
# ov:
# type: openvino
# device: auto
#model:
# width: 300
# height: 300
# input_tensor: nhwc
# input_pixel_format: bgr
# path: /openvino-model/ssdlite_mobilenet_v2.xml
# labelmap_path: /openvino-model/coco_91cl_bkgr.txt
zones:
Haustuer_Zone_1:
coordinates:
0.003,0.184,0.005,0.482,0.092,0.535,0.184,0.689,0.25,0.899,0.363,0.961,0.589,0.983,0.674,0.983,0.73,0.795,0.761,0.624,0.808,0.464,0.801,0.309,0.771,0.129,0.671,0.066,0.443,0.103,0.269,0.153
loitering_time: 0
inertia: 3
motion:
mask:
- 0.718,0,0.724,0.058,0.782,0.133,0.805,0.207,0.826,0.358,0.818,0.501,0.784,0.589,0.759,0.732,0.721,0.924,0.742,0.974,0.998,0.995,0.997,0.004
- 0.008,0.497,0.003,0.991,0.256,0.996,0.188,0.724,0.087,0.552
record:
enabled: true
retain:
days: 7
mode: motion
events:
retain:
default: 30
mode: motion
snapshots:
enabled: true
retain:
default: 30
version: 0.14 docker-compose file or Docker CLI commandservices:
frigate:
container_name: frigate
privileged: true # this may not be necessary for all setups
restart: unless-stopped
image: ghcr.io/blakeblackshear/frigate:stable
shm_size: "80mb" # update for your cameras based on calculation above
devices:
#- /dev/bus/usb:/dev/bus/usb # Passes the USB Coral, needs to be modified for other versions
#- /dev/apex_0:/dev/apex_0 # Passes a PCIe Coral, follow driver instructions here https://coral.ai/docs/m2/get-started/#2a-on-linux
#- /dev/video11:/dev/video11 # For Raspberry Pi 4B
- /dev/dri/renderD128 :/dev/dri/renderD128 # For intel hwaccel, needs to be updated for your hardware
volumes:
- /etc/localtime:/etc/localtime:ro
- ./config:/config
- ./media:/media/frigate
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "5000:5000"
- "8554:8554" # RTSP feeds
- "8555:8555/tcp" # WebRTC over tcp
- "8555:8555/udp" # WebRTC over udp
environment:
- TZ=Europe/Berlin Relevant Frigate log output2024-09-15 16:33:32 frigate | 2024-09-15 14:33:32.390930363 [2024-09-15 16:33:32] frigate.app INFO : Starting Frigate (0.14.1-f4f3cfa)
2024-09-15 16:33:32 frigate | 2024-09-15 14:33:32.391042162 [2024-09-15 16:33:32] frigate.util.config INFO : Checking if frigate config needs migration...
2024-09-15 16:33:32 frigate | 2024-09-15 14:33:32.406830373 [2024-09-15 16:33:32] frigate.util.config INFO : frigate config does not need migration...
2024-09-15 16:33:34 frigate | 2024-09-15 14:33:34.464263878 [2024-09-15 16:33:34] peewee_migrate.logs INFO : Starting migrations
2024-09-15 16:33:34 frigate | 2024-09-15 14:33:34.465486321 [2024-09-15 16:33:34] peewee_migrate.logs INFO : There is nothing to migrate
2024-09-15 16:33:34 frigate | 2024-09-15 14:33:34.472160010 [2024-09-15 16:33:34] frigate.app INFO : Recording process started: 345
2024-09-15 16:33:34 frigate | 2024-09-15 14:33:34.480283765 [2024-09-15 16:33:34] frigate.app INFO : Recording process started: 346
2024-09-15 16:33:34 frigate | 2024-09-15 14:33:34.482260071 [2024-09-15 16:33:34] frigate.app INFO : go2rtc process pid: 110
2024-09-15 16:33:34 frigate | 2024-09-15 14:33:34.516836864 [2024-09-15 16:33:34] detector.cpu INFO : Starting detection process: 374
2024-09-15 16:33:34 frigate | 2024-09-15 14:33:34.523410901 [2024-09-15 16:33:34] frigate.detectors WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
2024-09-15 16:33:34 frigate | 2024-09-15 14:33:34.525808213 [2024-09-15 16:33:34] frigate.app INFO : Output process started: 376
2024-09-15 16:33:34 frigate | 2024-09-15 14:33:34.578876047 [2024-09-15 16:33:34] frigate.app INFO : Camera processor started for Haustuer: 391
2024-09-15 16:33:34 frigate | 2024-09-15 14:33:34.585960005 [2024-09-15 16:33:34] frigate.app INFO : Capture process started for Haustuer: 403
2024-09-15 16:33:36 frigate | 2024-09-15 14:33:36.184825880 [2024-09-15 16:33:36] frigate.video ERROR : Haustuer: Unable to read frames from ffmpeg process.
2024-09-15 16:33:36 frigate | 2024-09-15 14:33:36.184965919 [2024-09-15 16:33:36] frigate.video ERROR : Haustuer: ffmpeg process is not running. exiting capture thread...
2024-09-15 16:33:36 frigate | 2024-09-15 14:33:36.824318596 [2024-09-15 16:33:36] frigate.util.services ERROR : Unable to poll vainfo: b"error: XDG_RUNTIME_DIR is invalid or not set in the environment.\nerror: can't connect to X server!\nerror: failed to initialize display\n"
2024-09-15 16:33:36 frigate | 2024-09-15 14:33:36.836060930 [2024-09-15 16:33:36] frigate.util.services ERROR : Unable to poll intel GPU stats: No device filter specified and no discrete/integrated i915 devices found Relevant go2rtc log output2024-09-15 15:02:15.308479288 [2024-09-15 17:02:15] watchdog.Haustuer INFO : Terminating the existing ffmpeg process...
2024-09-15 15:02:15.308482352 [2024-09-15 17:02:15] watchdog.Haustuer INFO : Waiting for ffmpeg to exit gracefully...
2024-09-15 15:02:17.124666880 [2024-09-15 17:02:17] frigate.video ERROR : Haustuer: Unable to read frames from ffmpeg process.
2024-09-15 15:02:17.125143428 [2024-09-15 17:02:17] frigate.video ERROR : Haustuer: ffmpeg process is not running. exiting capture thread...
2024-09-15 15:02:25.324846394 [2024-09-15 17:02:25] watchdog.Haustuer ERROR : Ffmpeg process crashed unexpectedly for Haustuer.
2024-09-15 15:02:25.325135047 [2024-09-15 17:02:25] watchdog.Haustuer ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-09-15 15:02:25.326802446 [2024-09-15 17:02:25] ffmpeg.Haustuer.detect ERROR : Option hwaccel (use HW accelerated decoding) cannot be applied to output url vaapi -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to.
2024-09-15 15:02:25.326811224 [2024-09-15 17:02:25] ffmpeg.Haustuer.detect ERROR : Error parsing options for output file vaapi.
2024-09-15 15:02:25.326815016 [2024-09-15 17:02:25] ffmpeg.Haustuer.detect ERROR : Error opening output files: Invalid argument
2024-09-15 15:02:25.352163949 [2024-09-15 17:02:25] ffmpeg.Haustuer.audio_record ERROR : Option hwaccel (use HW accelerated decoding) cannot be applied to output url vaapi -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to.
2024-09-15 15:02:25.352396638 [2024-09-15 17:02:25] ffmpeg.Haustuer.audio_record ERROR : Error parsing options for output file vaapi.
2024-09-15 15:02:25.352554685 [2024-09-15 17:02:25] ffmpeg.Haustuer.audio_record ERROR : Error opening output files: Invalid argument
2024-09-15 15:02:25.352991082 [2024-09-15 17:02:25] watchdog.Haustuer INFO : Terminating the existing ffmpeg process...
2024-09-15 15:02:25.352998189 [2024-09-15 17:02:25] watchdog.Haustuer INFO : Waiting for ffmpeg to exit gracefully...
2024-09-15 15:02:26.899359195 [2024-09-15 17:02:26] frigate.video ERROR : Haustuer: Unable to read frames from ffmpeg process.
2024-09-15 15:02:26.899362951 [2024-09-15 17:02:26] frigate.video ERROR : Haustuer: ffmpeg process is not running. exiting capture thread...
2024-09-15 15:02:35.362575152 [2024-09-15 17:02:35] watchdog.Haustuer ERROR : Ffmpeg process crashed unexpectedly for Haustuer.
2024-09-15 15:02:35.362860045 [2024-09-15 17:02:35] watchdog.Haustuer ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-09-15 15:02:35.363467669 [2024-09-15 17:02:35] ffmpeg.Haustuer.detect ERROR : Option hwaccel (use HW accelerated decoding) cannot be applied to output url vaapi -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to.
2024-09-15 15:02:35.363476167 [2024-09-15 17:02:35] ffmpeg.Haustuer.detect ERROR : Error parsing options for output file vaapi.
2024-09-15 15:02:35.363479873 [2024-09-15 17:02:35] ffmpeg.Haustuer.detect ERROR : Error opening output files: Invalid argument
2024-09-15 15:02:35.392213982 [2024-09-15 17:02:35] ffmpeg.Haustuer.audio_record ERROR : Option hwaccel (use HW accelerated decoding) cannot be applied to output url vaapi -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to.
2024-09-15 15:02:35.392221347 [2024-09-15 17:02:35] ffmpeg.Haustuer.audio_record ERROR : Error parsing options for output file vaapi.
2024-09-15 15:02:35.392224232 [2024-09-15 17:02:35] ffmpeg.Haustuer.audio_record ERROR : Error opening output files: Invalid argument
2024-09-15 15:02:35.392226826 [2024-09-15 17:02:35] watchdog.Haustuer INFO : Terminating the existing ffmpeg process...
2024-09-15 15:02:35.392234354 [2024-09-15 17:02:35] watchdog.Haustuer INFO : Waiting for ffmpeg to exit gracefully...
2024-09-15 15:02:36.989446523 [2024-09-15 17:02:36] frigate.video ERROR : Haustuer: Unable to read frames from ffmpeg process.
2024-09-15 15:02:36.990903065 [2024-09-15 17:02:36] frigate.video ERROR : Haustuer: ffmpeg process is not running. exiting capture thread...
2024-09-15 15:02:45.412382310 [2024-09-15 17:02:45] watchdog.Haustuer ERROR : Ffmpeg process crashed unexpectedly for Haustuer.
2024-09-15 15:02:45.413112995 [2024-09-15 17:02:45] watchdog.Haustuer ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-09-15 15:02:45.413122005 [2024-09-15 17:02:45] ffmpeg.Haustuer.detect ERROR : Option hwaccel (use HW accelerated decoding) cannot be applied to output url vaapi -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to.
2024-09-15 15:02:45.413125464 [2024-09-15 17:02:45] ffmpeg.Haustuer.detect ERROR : Error parsing options for output file vaapi.
2024-09-15 15:02:45.413128130 [2024-09-15 17:02:45] ffmpeg.Haustuer.detect ERROR : Error opening output files: Invalid argument
2024-09-15 15:02:45.426626208 [2024-09-15 17:02:45] ffmpeg.Haustuer.audio_record ERROR : Option hwaccel (use HW accelerated decoding) cannot be applied to output url vaapi -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to.
2024-09-15 15:02:45.426793177 [2024-09-15 17:02:45] ffmpeg.Haustuer.audio_record ERROR : Error parsing options for output file vaapi.
2024-09-15 15:02:45.427417513 [2024-09-15 17:02:45] ffmpeg.Haustuer.audio_record ERROR : Error opening output files: Invalid argument
2024-09-15 15:02:45.427424756 [2024-09-15 17:02:45] watchdog.Haustuer INFO : Terminating the existing ffmpeg process...
2024-09-15 15:02:45.427428144 [2024-09-15 17:02:45] watchdog.Haustuer INFO : Waiting for ffmpeg to exit gracefully...
2024-09-15 15:02:47.039898184 [2024-09-15 17:02:47] frigate.video ERROR : Haustuer: Unable to read frames from ffmpeg process.
2024-09-15 15:02:47.040209495 [2024-09-15 17:02:47] frigate.video ERROR : Haustuer: ffmpeg process is not running. exiting capture thread...
2024-09-15 15:02:55.448056404 [2024-09-15 17:02:55] watchdog.Haustuer ERROR : Ffmpeg process crashed unexpectedly for Haustuer.
2024-09-15 15:02:55.448357422 [2024-09-15 17:02:55] watchdog.Haustuer ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-09-15 15:02:55.448362208 [2024-09-15 17:02:55] ffmpeg.Haustuer.detect ERROR : Option hwaccel (use HW accelerated decoding) cannot be applied to output url vaapi -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to.
2024-09-15 15:02:55.448363861 [2024-09-15 17:02:55] ffmpeg.Haustuer.detect ERROR : Error parsing options for output file vaapi.
2024-09-15 15:02:55.448365322 [2024-09-15 17:02:55] ffmpeg.Haustuer.detect ERROR : Error opening output files: Invalid argument
2024-09-15 15:02:55.455012169 [2024-09-15 17:02:55] ffmpeg.Haustuer.audio_record ERROR : Option hwaccel (use HW accelerated decoding) cannot be applied to output url vaapi -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to.
2024-09-15 15:02:55.455315710 [2024-09-15 17:02:55] ffmpeg.Haustuer.audio_record ERROR : Error parsing options for output file vaapi.
2024-09-15 15:02:55.455319521 [2024-09-15 17:02:55] ffmpeg.Haustuer.audio_record ERROR : Error opening output files: Invalid argument
2024-09-15 15:02:55.455321047 [2024-09-15 17:02:55] watchdog.Haustuer INFO : Terminating the existing ffmpeg process...
2024-09-15 15:02:55.455322328 [2024-09-15 17:02:55] watchdog.Haustuer INFO : Waiting for ffmpeg to exit gracefully...
2024-09-15 15:02:57.057059291 [2024-09-15 17:02:57] frigate.video ERROR : Haustuer: Unable to read frames from ffmpeg process.
2024-09-15 15:02:57.057258913 [2024-09-15 17:02:57] frigate.video ERROR : Haustuer: ffmpeg process is not running. exiting capture thread... FFprobe output from your cameralibavutil 58. 29.100 / 58. 29.100
libavcodec 60. 31.102 / 60. 31.102
libavformat 60. 16.100 / 60. 16.100
libavdevice 60. 3.100 / 60. 3.100
libavfilter 9. 12.100 / 9. 12.100
libswscale 7. 5.100 / 7. 5.100
libswresample 4. 12.100 / 4. 12.100
libpostproc 57. 3.100 / 57. 3.100
Input #0, rtsp, from 'rtsp://test:[email protected]:554/live/ch1':
Metadata:
title : streamed by RTSP server
Duration: N/A, start: 0.066000, bitrate: N/A
Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 640x360, 15 fps, 15 tbr, 90k tbn
Stream #0:1: Audio: aac, 8000 Hz, mono, fltp Operating systemOther Linux Install methodDocker Compose Network connectionWired Camera make and modelGalayou Y4 - https://www.galayou-store.com/y4 Screenshots of the Frigate UI's System metrics pagesAny other information that may be helpfulSystemdetailsberichtBerichtdetails
Hardware-Informationen:
Software-Informationen:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
I have one more information. The ffprobe above was done on the host. The lower is down in the container! ffprobe rtsp://test:[email protected]:554/live/ch1ffprobe version n5.1-2-g915ef932a3-20220731 Copyright (c) 2007-2022 the FFmpeg developers I know from VLC that the stream ist HEVC. Maybe therefore is something going wrong? |
Beta Was this translation helpful? Give feedback.
-
what does hardware info show in the frigate ui under system |
Beta Was this translation helpful? Give feedback.
-
I have installed all stuff new but now without docker desktop. Only docker with docker compose. Now the IGPU is recognized. Hwaacl works now, but Openvino works not . But this is already decsribed as bug. Nevertheless, the camera also seems to have a problem, as there are often errors in the stream (even with VLC there is then no connection). When I restart the camera it works again for a while. Thany you for your support! |
Beta Was this translation helpful? Give feedback.
I have installed all stuff new but now without docker desktop. Only docker with docker compose. Now the IGPU is recognized. Hwaacl works now, but Openvino works not . But this is already decsribed as bug. Nevertheless, the camera also seems to have a problem, as there are often errors in the stream (even with VLC there is then no connection). When I restart the camera it works again for a while. Thany you for your support!