!QhvgabMQzwEQeWehhZ:lossy.network

NixOS Home Automation

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

Load older messages


SenderMessageTime
13 Feb 2025
@motiejus:jakstys.ltmotiejus

I can't get the detect process to read from go2rtc, always weirdly get the same ffmpeg error Error opening input files: Invalid data found when processing input when the detect role comes not directly from camera, but from go2rtc (record is fine).

I will put this on hold for some time (a few days?). I disabled detect process, will be recording only for now (no cpu use).

20:37:02
@hexa:lossy.network@hexa:lossy.network
ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
ERROR   : [AVHWFramesContext @ 0x7fd4c0078880] Failed to sync surface 0x9: 1 (operation failed).
ERROR   : [hwdownload @ 0x7fd4cc0025c0] Failed to download frame: -5.
ERROR   : [vf#1:0 @ 0x1b6ef480] Error while filtering: Input/output error
ERROR   : [vf#1:0 @ 0x1b6ef480] Task finished with error code: -5 (Input/output error)
ERROR   : [vf#1:0 @ 0x1b6ef480] Terminating thread with return code -5 (Input/output error)
20:37:59
@hexa:lossy.network@hexa:lossy.networkthis is what I'm seeing every few minutes20:38:03
@motiejus:jakstys.ltmotiejus

also, I can't understand the relationship of go2rtc config in frigate, and its own. I guess I shouldn't use go2rtc top-level in frigate config, and just use the rtsp endpoints. But then the docs don't help understand this too:

After adding this to the config, restart Frigate and try to watch the live stream for a single camera by clicking on it from the dashboard. It should look much clearer and more fluent than the original jsmpeg stream.
20:39:05
@hexa:lossy.network@hexa:lossy.networkfrigate can run its own go2rtc process and configure it20:39:46
@motiejus:jakstys.ltmotiejusif I run ffmpeg command myself, I logs lots of lost packets (the router behind the camera is under stress). I think it makes sense to restart in higher-bandwidth situation20:39:53
@hexa:lossy.network@hexa:lossy.networkin nixos I just configure go2rtc myself20:39:54
@motiejus:jakstys.ltmotiejusok, so that's what its for. Ditto, I just did it myself.20:40:05
@motiejus:jakstys.ltmotiejus

tailscale0:

TX packets:316154987 errors:0 dropped:51176 overruns:0 carrier:0

that's not too bad.

20:42:16
14 Feb 2025
@rane:junkyard.systemsrane [they/them] joined the room.11:29:35
@tcas:matrix.orgtcasIs there a way to set a user in home assistant from NixOS config? I've got home assistant core running on NixOS and don't want to go through the onboarding procedure manually.12:14:23
15 Feb 2025
@jmanch:matrix.orgJManch joined the room.01:41:40
@sorin:iclanzan.comsorin joined the room.02:34:18
@thatonelutenist:stranger.systemsThatOneLutenist joined the room.06:41:05
@benjb83:matrix.orgBenjB83 joined the room.10:14:40
@benjb83:matrix.orgBenjB83 changed their display name from Benjamín Buske to BenjB83.10:43:08
16 Feb 2025
@motiejus:jakstys.ltmotiejus configured go2rtc. What is the resolution you are feeding to the detect stream? 19:52:43
@motiejus:jakstys.ltmotiejus * configured go2rtc, same high cpu usage. What is the resolution you are feeding to the detect stream? 19:53:43
@hexa:lossy.network@hexa:lossy.network
api:
  listen: :1984
ffmpeg:
  bin: /nix/store/a4ha6dhk6xlrkpybnh5d8dnqq6c9mlph-ffmpeg-headless-7.1-bin/bin/ffmpeg
rtsp:
  listen: :8554
streams:
  g3:
  - rtsp://192.168.110.231:554/s0
  g3-flex:
  - rtsp://192.168.110.230:554/s0
webrtc:
  listen: :8555
20:35:47
@hexa:lossy.network@hexa:lossy.networkI would think the native resolution? 😄 20:35:54
@hexa:lossy.network@hexa:lossy.networkneither frigate nor go2rtc has any resolution configured20:36:14
@motiejus:jakstys.ltmotiejusimage.png
Download image.png
20:39:07
@motiejus:jakstys.ltmotiejusno matter what I try :D 20:39:11
@motiejus:jakstys.ltmotiejusit's transcoding h.265 -> h.264 (to conserve bandwidth) using 7-8% of core per stream, and "detecting" with a full core + coral. :) 20:40:08
@hexa:lossy.network@hexa:lossy.networkpretty sure my cameras are send h.26420:47:20
@motiejus:jakstys.ltmotiejusyeah, I was testing this with h.264 all the time, just turned on h.265 for unrelated reasons (it's transcoded to h.264 at the front door)20:54:23
17 Feb 2025
@rane:junkyard.systemsrane [they/them]does anyone have any good resources for migrating an existing home assistant install on alpine over to NixOS? I've got an intergration or two installed via HACS, and then most of my other sources are MQTT, no complex zigbee or other hardware integration. If there's not something that has already been written up, I'm happy to work it out and document my experience, but thought I'd just ask first.00:37:19
@hexa:lossy.network@hexa:lossy.networkwe have some integrations packaged up00:37:52
@hexa:lossy.network@hexa:lossy.network
nix-repl> lib.attrNames home-assistant-custom-components
[
  "adaptive_lighting"
  "alarmo"
  "amshan"
  "auth-header"
  "auth_oidc"
  "average"
  "awtrix"
  "better_thermostat"
  "bodymiscale"
  "calendar_export"
  "climate_group"
  "daikin_onecta"
  "dirigera_platform"
  "dwd"
  "elevenlabs_tts"
  "emporia_vue"
  "epex_spot"
  "frigate"
  "frigidaire"
  "garmin_connect"
  "govee-lan"
  "gpio"
  "homematicip_local"
  "indego"
  "local_luftdaten"
  "localtuya"
  "midea-air-appliances-lan"
  "midea_ac"
  "midea_ac_lan"
  "miele"
  "moonraker"
  "nest_protect"
  "ntfy"
  "omnik_inverter"
  "philips_airpurifier_coap"
  "prometheus_sensor"
  "recurseForDerivations"
  "samsungtv-smart"
  "sensi"
  "smartir"
  "smartthinq-sensors"
  "solax_modbus"
  "solis-sensor"
  "somweb"
  "spook"
  "systemair"
  "tuya_local"
  "versatile_thermostat"
  "volkswagen_we_connect_id"
  "volkswagencarnet"
  "waste_collection_schedule"
  "xiaomi_gateway3"
  "xiaomi_miot"
  "yassi"
  "yoto_ha"
]
00:38:39
@rane:junkyard.systemsrane [they/them]oh cool, good to know - so I suppose anything I'm installing with HACS currently would be best contributed as a package if not already packaged?00:40:06

Show newer messages


Back to Room ListRoom Version: 6