| 14 Jan 2025 |
Samsonite | im using a beelink with a AMD/ATI Cezanne Radeon Vega Mobile series | 01:30:21 |
Samsonite | any way to make that little thing help out | 01:30:33 |
@hexa:lossy.network | did you configure settings.ffmpeg.hwaccel_args? | 01:31:34 |
@hexa:lossy.network | set it to preset-vaapi | 01:31:55 |
Samsonite | nah sorry i asked before checking into this really, bad etiquette | 01:32:06 |
Samsonite | thanks! | 01:32:08 |
Samsonite | i see this nowhttps://docs.frigate.video/configuration/hardware_acceleration/ which says the same thing | 01:32:29 |
@hexa:lossy.network | some day someone should write a wiki article | 01:32:39 |
@hexa:lossy.network | yeah, or https://docs.frigate.video/configuration/ffmpeg_presets/#hwaccel-presets | 01:32:55 |
@hexa:lossy.network | also linked from the module under the vaapiDriver option | 01:33:08 |
@hexa:lossy.network | both links actually | 01:33:13 |
Samsonite | so AI is recommending that on top of setting preset-vaapi, I also add:
environment.LIBVA_DRIVER_NAME = "radeonsi";
serviceConfig = {
SupplementaryGroups = ["render" "video"];
AmbientCapabilities = "CAP_PERFMON";
};
| 01:35:04 |
@hexa:lossy.network | sigh | 01:35:31 |
Samsonite | lol | 01:35:35 |
Samsonite | ok that's all i need to know | 01:35:39 |
Samsonite | thanks | 01:35:39 |
@hexa:lossy.network | I mean | 01:36:03 |
@hexa:lossy.network | that looks like a ripoff from something I once posted to an issue | 01:36:43 |
@hexa:lossy.network | systemd.services.frigate = {
environment.LIBVA_DRIVER_NAME = "radeonsi";
serviceConfig = {
SupplementaryGroups = ["render" "video"] ; # for access to dev/dri/*
AmbientCapabilities = "CAP_PERFMON";
};
};
| 01:37:02 |
Samsonite | ai is rippin you off man | 01:37:40 |
@hexa:lossy.network | anyway | 01:38:53 |
@hexa:lossy.network | only the render group is needed, and frigate is joining it by default these days | 01:39:07 |
@hexa:lossy.network | and CAP_PERFMON is only required for intel_gpu_top | 01:39:31 |
@hexa:lossy.network | and LIBVA_DRIVER_NAME is set by configuring vaapiDriver, but as that option will tell you … not required unless you have multiple cards to choose from | 01:40:17 |
Samsonite | arg i am getting errors after setting preset-vaapi | 01:42:41 |
Samsonite | Jan 13 20:42:36 frigate systemd[1]: Starting frigate.service...
Jan 13 20:42:36 frigate systemd[1]: Started frigate.service.
Jan 13 20:42:37 frigate frigate[9827]: 2025-01-13 20:42:37.084120: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance->
Jan 13 20:42:37 frigate frigate[9827]: To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
Jan 13 20:42:40 frigate frigate[9827]: /nix/store/cgbfczq9sp6sd5h1dd20zkf5fk2k5byg-frigate-0.14.1/lib/python3.12/site-packages/frigate/util/services.py:299: SyntaxWarning: invalid escape sequence '\d'
Jan 13 20:42:40 frigate frigate[9827]: for result in re.findall('"Video/\d":{[a-z":\d.,%]+}', reading):
Jan 13 20:42:41 frigate frigate[9901]: [2025-01-13 20:42:41] frigate.app INFO : Starting Frigate (0.14.1)
Jan 13 20:42:41 frigate frigate[9901]: [2025-01-13 20:42:41] frigate.app INFO : Creating directory: /var/cache/frigate/model_cache
Jan 13 20:42:41 frigate frigate[9901]: [2025-01-13 20:42:41] frigate.util.config INFO : Checking if frigate config needs migration...
Jan 13 20:42:41 frigate frigate[9901]: [2025-01-13 20:42:41] frigate.util.config ERROR : Config file is read-only, unable to migrate config file.
Jan 13 20:42:42 frigate frigate[9901]: [2025-01-13 20:42:42] peewee_migrate.logs INFO : Starting migrations
Jan 13 20:42:42 frigate frigate[9901]: [2025-01-13 20:42:42] peewee_migrate.logs INFO : There is nothing to migrate
Jan 13 20:42:42 frigate frigate[9901]: [2025-01-13 20:42:42] frigate.app INFO : Recording process started: 9919
Jan 13 20:42:42 frigate frigate[9901]: [2025-01-13 20:42:42] frigate.app INFO : Recording process started: 9928
Jan 13 20:42:42 frigate frigate[9901]: [2025-01-13 20:42:42] frigate.app INFO : go2rtc process pid: 1042
Jan 13 20:42:42 frigate frigate[9901]: [2025-01-13 20:42:42] detector.coral INFO : Starting detection process: 9947
Jan 13 20:42:43 frigate frigate[9901]: [2025-01-13 20:42:43] frigate.app INFO : Output process started: 9949
Jan 13 20:42:43 frigate frigate[9901]: [2025-01-13 20:42:42] frigate.detectors.plugins.edgetpu_tfl INFO : Attempting to load TPU as usb
Jan 13 20:42:43 frigate frigate[9901]: [2025-01-13 20:42:43] frigate.app INFO : Camera processor started for mycamerastream: 9962
Jan 13 20:42:43 frigate frigate[9901]: [2025-01-13 20:42:43] frigate.app INFO : Capture process started for mycamerastream: 9965
Jan 13 20:42:44 frigate frigate[9901]: [2025-01-13 20:42:44] frigate.video ERROR : mycamerastream: Unable to read frames from ffmpeg process.
Jan 13 20:42:44 frigate frigate[9901]: [2025-01-13 20:42:44] frigate.video ERROR : mycamerastream: ffmpeg process is not running. exiting capture thread...
Jan 13 20:42:45 frigate frigate[9901]: [2025-01-13 20:42:45] frigate.util.services ERROR : Unable to poll vainfo: b"error: XDG_RUNTIME_DIR is invalid or not set in the environment.\nerror: can't>
Jan 13 20:42:45 frigate frigate[9901]: [2025-01-13 20:42:45] frigate.util.services ERROR : Unable to poll intel GPU stats: No device filter specified and no discrete/integrated i915 devices found
Jan 13 20:42:46 frigate frigate[9947]: INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
Jan 13 20:42:46 frigate frigate[9901]: [2025-01-13 20:42:46] frigate.detectors.plugins.edgetpu_tfl INFO : TPU found
Jan 13 20:43:03 frigate frigate[9901]: [2025-01-13 20:43:03] watchdog.mycamerastream ERROR : Ffmpeg process crashed unexpectedly for mycamerastream.
Jan 13 20:43:03 frigate frigate[9901]: [2025-01-13 20:43:03] watchdog.mycamerastream ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
Jan 13 20:43:03 frigate frigate[9901]: [2025-01-13 20:43:03] ffmpeg.mycamerastream.detect ERROR : [AVHWDeviceContext @ 0x356987c0] Failed to initialise VAAPI connection: -1 (unknown libva error).
Jan 13 20:43:03 frigate frigate[9901]: [2025-01-13 20:43:03] ffmpeg.mycamerastream.detect ERROR : Device creation failed: -5.
Jan 13 20:43:03 frigate frigate[9901]: [2025-01-13 20:43:03] ffmpeg.mycamerastream.detect ERROR : [vist#0:0/h264 @ 0x356a2a00] [dec:h264 @ 0x35623e80] No device available for decoder: device type vaapi>
Jan 13 20:43:03 frigate frigate[9901]: [2025-01-13 20:43:03] ffmpeg.mycamerastream.detect ERROR : [vist#0:0/h264 @ 0x356a2a00] [dec:h264 @ 0x35623e80] Hardware device setup failed for decoder: Input/ou>
Jan 13 20:43:03 frigate frigate[9901]: [2025-01-13 20:43:03] ffmpeg.mycamerastream.detect ERROR : Error opening output file pipe:.
Jan 13 20:43:03 frigate frigate[9901]: [2025-01-13 20:43:03] ffmpeg.mycamerastream.detect ERROR : Error opening output files: Input/output error
Jan 13 20:43:04 frigate frigate[9901]: [2025-01-13 20:43:04] frigate.video ERROR : mycamerastream: Unable to read frames from ffmpeg process.
| 01:44:44 |
Samsonite | i know i'm so close to getting this working | 01:44:50 |
@hexa:lossy.network | is this a headless machine? | 01:45:29 |
Samsonite | yes | 01:45:36 |
@hexa:lossy.network | did you enable hardware.graphics? | 01:45:46 |