!QhvgabMQzwEQeWehhZ:lossy.network

NixOS Home Automation

503 Members
Declarative Home Automation and other Sidequests | https://wiki.nixos.org/wiki/Home_Assistant128 Servers

Load older messages


SenderMessageTime
21 Nov 2024
@hexa:lossy.network@hexa:lossy.networkat this point I would just recommend to directly use that branch temporarily (if you're on unstable/master anyway)23:01:33
@hexa:lossy.network@hexa:lossy.networkor wait until it is merged23:01:41
@netpleb:matrix.orgnetpleb
In reply to @hexa:lossy.network
at this point I would just recommend to directly use that branch temporarily (if you're on unstable/master anyway)
Ok, I will give it a go. I tried to do it with overlays but failed.
23:34:17
@netpleb:matrix.orgnetpleb
In reply to @hexa:lossy.network
at this point I would just recommend to directly use that branch temporarily (if you're on unstable/master anyway)

ok, I tried just changing my nixpkgs input to use that branch (inputs.nixpkgs.url = "github:mweinelt/nixpkgs/frigate-libedgetpu";), updated the flake, and tried to rebuild, but ended up with:

       error: undefined variable 'libedgeptu'
       at /nix/store/hizil0zplswmpj2528dzahh3ld6sd0ma-source/nixos/modules/hardware/coral.nix:29:45:
           28|     (mkIf cfg.usb.enable {
           29|       services.udev.packages = with pkgs; [ libedgeptu ];
             |                                             ^
           30|     })
23:46:36
@hexa:lossy.network@hexa:lossy.networkthat makes no sense23:50:45
22 Nov 2024
@netpleb:matrix.orgnetpleb
In reply to @hexa:lossy.network
that makes no sense
Yep, I thought so too. Is somehow the libedgetpu package not actually in that PR's git tree?
00:03:22
@rager:lolrav.esrager set a profile picture.07:48:59
@zacharyweiss:matrix.orgZach joined the room.16:59:34
@netpleb:matrix.orgnetpleb
In reply to @hexa:lossy.network
at this point I would just recommend to directly use that branch temporarily (if you're on unstable/master anyway)
Thanks very much for your help on the frigate/tpu stuff. I was able to get it working! The last piece I seem to be running into is: frigate.util.services WARNING : Did not detect hwaccel, using a GPU for accelerated video decoding is highly recommended
21:29:11
@hexa:lossy.network@hexa:lossy.network
In reply to @netpleb:matrix.org
Yep, I thought so too. Is somehow the libedgetpu package not actually in that PR's git tree?
note how it said libedgeptu
21:29:37
@hexa:lossy.network@hexa:lossy.networktypo on my end.21:29:42
@hexa:lossy.network@hexa:lossy.network
In reply to @netpleb:matrix.org
Thanks very much for your help on the frigate/tpu stuff. I was able to get it working! The last piece I seem to be running into is: frigate.util.services WARNING : Did not detect hwaccel, using a GPU for accelerated video decoding is highly recommended
ffmpeg.hwaccel_args
21:29:58
@hexa:lossy.network@hexa:lossy.networkhttps://docs.frigate.video/configuration/ffmpeg_presets#hwaccel-presets21:30:16
@hexa:lossy.network@hexa:lossy.networkdepending on the GPU you want one of these hardware accelerated presets21:30:32
@hexa:lossy.network@hexa:lossy.networkand then set vaapiDriver accordingly21:30:46
@netpleb:matrix.orgnetpleb
In reply to @hexa:lossy.network
ffmpeg.hwaccel_args
right, so I tried adding cameras.cam1.ffmpeg.imputs.hwaccel_args = ["preset-vaapi"]; (it's an AMD gpu I think, but it's just a gmktec minipc)
21:31:59
@hexa:lossy.network@hexa:lossy.networkhuh, not on the cameras21:32:26
@netpleb:matrix.orgnetpleb
In reply to @hexa:lossy.network
huh, not on the cameras
oh...good catch! hopefull that was my problem!
21:32:50
@hexa:lossy.network@hexa:lossy.networkimage.png
Download image.png
21:33:07
@netpleb:matrix.orgnetpleb
In reply to @hexa:lossy.network
sent an image.

awesome! That fixed it. Thanks so much! As I was iterating on this, I ended adding:

  hardware.graphics = {
    enable = true;
    extraPackages = with pkgs; [ intel-media-driver ];
  };
  environment.sessionVariables = {
    LIBVA_DRIVER_NAME="radeonsi";
  };

but I am not sure if either of those are necessary. I will remove them to see, but I am wondering if a reboot is necessary to make sure?

21:39:18
@hexa:lossy.network@hexa:lossy.networkthat is backwards21:39:32
@hexa:lossy.network@hexa:lossy.networkthe intel-media-driver is for intel gpus21:39:42
@hexa:lossy.network@hexa:lossy.network and environment.sessionVariables overwrites discovery mechanisms systeem-wide 21:40:22
@hexa:lossy.network@hexa:lossy.network
hardware.graphics.enable = true;
services.frigate.vaapiDriver = "radeonsi";
21:40:50
@netpleb:matrix.orgnetpleb
In reply to @hexa:lossy.network
the intel-media-driver is for intel gpus
yeah, I was just trying different things while following that PR and know very little about these drivers. Figured maybe there was some sort of shared/common driver in there. I'll remove those items and reboot if necessary.
21:40:50
@hexa:lossy.network@hexa:lossy.networkthat's all you need21:40:54
@hexa:lossy.network@hexa:lossy.networkgpus are highly proprietary21:41:09
@hexa:lossy.network@hexa:lossy.networkthey don't tend to share anything21:41:15
@netpleb:matrix.orgnetpleb ok, so in the frigate web ui now (just cam1 hooked up) I have a status bar of CPU 6%, AMD GPU 1% but then on the far right it says Cam1 has high detect CPU usage (93%). That does not make sense to me, but maybe it is normal? 21:47:36
@hexa:lossy.network@hexa:lossy.networkn oidea22:28:05

Show newer messages


Back to Room ListRoom Version: 6