Frigate hwaccel

Hallo.
Home Assistant habe ich wie in Simons Videos erklärt auf Proxmox laufen. Frigate ist als Addon installiert. Ich habe einen Mini PC mit Intel Prozessor.
Angeschlossen ist ein Google Coral.

Vorher lief alles auf einem Raspberry.

Meine aktuelle Config sieht so aus. Als ffmpeg und der Hardwarebeschleunigung für den alten Raspberry:

#environment_vars:
  #LIBVA_DRIVER_NAME: i965

ffmpeg:
  hwaccel_args: preset-rpi-64-h264
  #hwaccel_args: preset-vaapi
  #input_args: preset-rtsp-restream
  #output-args: preset-record-generic-audio-copy

Wenn ich nun auf preset-vaapi umstellen möchte, bootet das Addon nicht mehr hoch. Egal, ob die environment_vars aktiviert sind oder nicht.

Hier ein Auszug aus den Logs:

Invalid argument
2025-07-31 15:48:47.765657663  [2025-07-31 17:48:47] ffmpeg.Buero.detect            ERROR   : [vost#0:0/rawvideo @ 0x564e71d3a480] Error initializing a simple filtergraph
2025-07-31 15:48:47.765659259  [2025-07-31 17:48:47] ffmpeg.Buero.detect            ERROR   : Error opening output file pipe:.
2025-07-31 15:48:47.765660777  [2025-07-31 17:48:47] ffmpeg.Buero.detect            ERROR   : Error opening output files: Invalid argument
2025-07-31 15:48:47.905212795  [2025-07-31 17:48:47] watchdog.Werkstatt             ERROR   : Ffmpeg process crashed unexpectedly for Werkstatt.
2025-07-31 15:48:47.905216757  [2025-07-31 17:48:47] watchdog.Werkstatt             ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2025-07-31 15:48:47.905218769  [2025-07-31 17:48:47] ffmpeg.Werkstatt.detect        ERROR   : [AVHWDeviceContext @ 0x55cd5a5a6ec0] No VA display found for device /dev/dri/renderD128.
2025-07-31 15:48:47.905220432  [2025-07-31 17:48:47] ffmpeg.Werkstatt.detect        ERROR   : Device creation failed: -22.
2025-07-31 15:48:47.905456713  [2025-07-31 17:48:47] ffmpeg.Werkstatt.detect        ERROR   : [vist#0:0/h264 @ 0x55cd5a5d8e40] [dec:h264 @ 0x55cd5a5a6680] No device available for decoder: device type vaapi needed for codec h264.
2025-07-31 15:48:47.905459269  [2025-07-31 17:48:47] ffmpeg.Werkstatt.detect        ERROR   : [vist#0:0/h264 @ 0x55cd5a5d8e40] [dec:h264 @ 0x55cd5a5a6680] Hardware device setup failed for decoder: Invalid argument
2025-07-31 15:48:47.905460992  [2025-07-31 17:48:47] ffmpeg.Werkstatt.detect        ERROR   : [vost#0:0/rawvideo @ 0x55cd5a5a97c0] Error initializing a simple filtergraph
2025-07-31 15:48:47.905462507  [2025-07-31 17:48:47] ffmpeg.Werkstatt.detect        ERROR   : Error opening output file pipe:.
2025-07-31 15:48:47.905463967  [2025-07-31 17:48:47] ffmpeg.Werkstatt.detect        ERROR   : Error opening output files: Invalid argument
2025-07-31 15:48:47.999739724  [2025-07-31 17:48:47] watchdog.Garage                ERROR   : Ffmpeg process crashed unexpectedly for Garage.
2025-07-31 15:48:47.999744062  [2025-07-31 17:48:47] watchdog.Garage                ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2025-07-31 15:48:47.999746115  [2025-07-31 17:48:47] ffmpeg.Garage.detect           ERROR   : [AVHWDeviceContext @ 0x5594c3d9d040] No VA display found for device /dev/dri/renderD128.
2025-07-31 15:48:48.007866018  [2025-07-31 17:48:47] ffmpeg.Garage.detect           ERROR   : Device creation failed: -22.
2025-07-31 15:48:48.007869881  [2025-07-31 17:48:47] ffmpeg.Garage.detect           ERROR   : [vist#0:0/h264 @ 0x5594c3dcae40] [dec:h264 @ 0x5594c3d8ad40] No device available for decoder: device type vaapi needed for codec h264.
2025-07-31 15:48:48.007871897  [2025-07-31 17:48:47] ffmpeg.Garage.detect           ERROR   : [vist#0:0/h264 @ 0x5594c3dcae40] [dec:h264 @ 0x5594c3d8ad40] Hardware device setup failed for decoder: Invalid argument
2025-07-31 15:48:48.007873639  [2025-07-31 17:48:47] ffmpeg.Garage.detect           ERROR   : [vost#0:0/rawvideo @ 0x5594c3d994c0] Error initializing a simple filtergraph
2025-07-31 15:48:48.007875128  [2025-07-31 17:48:47] ffmpeg.Garage.detect           ERROR   : Error opening output file pipe:.
2025-07-31 15:48:48.007876567  [2025-07-31 17:48:47] ffmpeg.Garage.detect           ERROR   : Error opening output files: Invalid argument
2025-07-31 15:48:48.093033172  [2025-07-31 17:48:48] watchdog.Haustuer              ERROR   : Ffmpeg process crashed unexpectedly for Haustuer.
2025-07-31 15:48:48.093115009  [2025-07-31 17:48:48] watchdog.Haustuer              ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2025-07-31 15:48:48.093251205  [2025-07-31 17:48:48] ffmpeg.Haustuer.detect         ERROR   : [AVHWDeviceContext @ 0x55906ec959c0] No VA display found for device /dev/dri/renderD128.
2025-07-31 15:48:48.093253413  [2025-07-31 17:48:48] ffmpeg.Haustuer.detect         ERROR   : Device creation failed: -22.
2025-07-31 15:48:48.093255524  [2025-07-31 17:48:48] ffmpeg.Haustuer.detect         ERROR   : [vist#0:0/h264 @ 0x55906ee67b00] [dec:h264 @ 0x55906eccbdc0] No device available for decoder: device type 

Moin,

als USB-Stick, oder M.2 intern?

Wenn USB-Stick, dann liegt es wohl daran, dass Proxmox den Stick ersteinmal nicht korrekt erkennt, dazu musste dann erst etwas in Proxmox eingerichtet werden damit er als Google Coral erkannt wurde, bin mir gerade aber nicht sicher ob das dann nur für LXC relevant war oder auch für VMs, denn eigentlich nutzt ja die VM ihr eigenes Betriebssystem, aber der Stick wird ja von Proxmox bereitgestellt also ein Versuch ist es wert.

Weitere Suchergebnisse
https://community.simon42.com/search?q=Proxmox+Google+Coral

VG
Bernd

Den Coral (als USB) habe ich eigentlich (nach eine Anleitung) durchgereicht in Proxmox und er wird auch laut den Logs erkannt:

2025-07-31 16:10:01.976908998  [2025-07-31 18:09:58] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as usb
2025-07-31 16:10:01.983375817  [2025-07-31 18:10:01] frigate.detectors.plugins.edgetpu_tfl INFO    : TPU found

Insofern scheint das mit dem Detect zu funktionieren.

Lediglich die Intel GPU/CPU lässt er mich nicht auswählen.

Ich frage mich, wieso er mit der rpi-64-h264 läuft, obwohl gar kein RPI angeschlossen ist.

Moin,

ok, ich habe mich da vielleicht zu sehr auf Google Coral versteift, da es damit öfter mal Probleme gibt, aber Deine Probleme liegen ja im nicht vorhandenen

No VA display found for device /dev/dri/renderD128

[vist#0:0/h264 @ 0x55cd5a5d8e40] [dec:h264 @ 0x55cd5a5a6680] No device available for decoder: device type vaapi needed for codec h264

Wenn Du aber auf einem Proxmox System bist und dort eine VM mit HAOS hast, warum steht da dann preset-rpi-84-h264 Du hast doch jetzt einen x86_64 CPU und passende GPU :thinking:
Sollte das dann nicht so sein?

Wie sieht denn die unter Proxmox eingerichtete VM aus?

VG
Bernd

Du brauchst keine Intel GPU wenn du den Google Coral hast. Das wären ja dann zwei Grafikkarten, das kann nicht funktionieren

Du brauchst keine Intel ….

Soll angeblich funktionieren, weil der Coral für den Detect zuständig ist, und Vaapi für den Stream.

*:crayon:by HarryP: unnötiges Vollzitat aus Beitrag drüber entfernt*

Wenn Du aber auf einem Proxmox System bist und dort eine VM mit HAOS hast, warum steht da dann preset-rpi-84-h264 Du hast doch jetzt einen x86_64 CPU und passende GPU :thinking:
Sollte das dann nicht so sein?

Den Punkt verstehe ich auch nicht, dass das System mit preset-rpi-84-h264 läuft.

Mit der Frigate Doku komme ich nicht mehr weiter. Alles war dort relativ gut beschrieben ist, bringt bei mir die entsprechenden Fehlermeldungen.

No VA display found for device /dev/dri/renderD128

[vist#0:0/h264 @ 0x55cd5a5d8e40] [dec:h264 @ 0x55cd5a5a6680] No device available for decoder: device type vaapi needed for codec h264

Hier stellt sich mir die Frage, wie ich den Fehler behebe, bzw. was ich tun muss.

Moin,

du musst erst einmal die GrKa an die VM durchreichen, damit dann auch das Device in HA zur Verfügung steht, normalerweise ist das ja in HA als VM nicht nötig, da HA ein Server - Client System ist.
Also in Proxmox die GrKa im Ressourcen Mapping aufnehmen.


Dann in der HAOS VM die GrKa als Hardware aufnehmen, was da dann noch gemacht werden muss, kann ich nicht sagen, habe mich damit noch nicht beschäftigt, zumal ich Frigate nie als Add-on in der HA VM laufen lassen würde, ich würde das immer als LXC außerhalb betreiben.

Aber einfach mal die Suchmaschine deiner Wahl anschmeißen, da wirst du schon noch was finden.

VG
Bernd

P.S.: Und wie @metallmanu ja auch angemerkt hat, Du brauchst da keine GrKa, weil du ja alles durch die TPU Google Coral jagst, jagen kannst.