Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

frigate: init at 0.12.0 #214428

Merged
merged 5 commits into from
May 22, 2023
Merged

frigate: init at 0.12.0 #214428

merged 5 commits into from
May 22, 2023

Conversation

mweinelt
Copy link
Member

@mweinelt mweinelt commented Feb 3, 2023

Description of changes

WIP frigate nvr software
https://github.com/blakeblackshear/frigate

Would be ideal if libedgetpu/pycoral were packaged, but I'm unlikely to do that. #188719

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.05 Release Notes (or backporting 22.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@mweinelt

This comment was marked as outdated.

@mweinelt

This comment was marked as outdated.

@mweinelt

This comment was marked as outdated.

@mweinelt
Copy link
Member Author

mweinelt commented Apr 2, 2023

@mweinelt mweinelt requested a review from fleaz April 2, 2023 23:32
@mweinelt mweinelt changed the title frigate: init at 0.12.0-beta10 frigate: init at 0.12.0 Apr 22, 2023
@mweinelt
Copy link
Member Author

Added an initial version for the nginx config. The tests can now run frigate, and it fails to find the camera, that doesn't exist. Would be cool if we could find something to mock the rtmp stream, if anyone knows anything in that field.

@mweinelt mweinelt force-pushed the frigate-init branch 2 times, most recently from f64616c to 7029af4 Compare May 15, 2023 13:39
@mweinelt mweinelt marked this pull request as ready for review May 15, 2023 13:40
@mweinelt mweinelt force-pushed the frigate-init branch 3 times, most recently from a15ca67 to ba3e935 Compare May 22, 2023 02:25
@github-actions github-actions bot added 8.has: changelog 8.has: documentation This PR adds or changes documentation labels May 22, 2023
@mweinelt
Copy link
Member Author

mweinelt commented May 22, 2023

A quick overview of what I'm seeing so far. I'm fine with merging this as is, but it will likely require more patching down the road. For now, I would like to collect more experience with it, and get others to chime in.


What works:

  • RTSP Streaming
  • Storage View
  • System View
    • Hardware Acceleration Statistics
      • needs LIBVA_DRIVER_NAME=radeonsi for vaapi with AMD GPUs 🤷

What does not work:

  • Logs
    • expects file based logs, we use systemd-journald, process is not allowed to query the journal
  • Recordings
    • Unclear, getting corrupt recording segments with the streams I use
      frigate.record                 WARNING : Failed to probe corrupt segment /var/cache/frigate/stmarkus-20230522043027.mp4: 1 - b'[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1afaf80] moov atom not found\n/var/cache/frigate/stmarkus-20230522043027.mp4: Invalid data found when processing input\n'
      frigate.record                 WARNING : Discarding a corrupt recording segment: /var/cache/frigate/stmarkus-20230522043027.mp4
      
  • Restart from within the app
  • Automatic go2rtc integration, uses bespoke script for config generation

Untested:

  • Clips
  • Events
    • don't have the camera input for that currently
  • Birdeye View
    • saw it stream data over a websockets, but nothing happened; possibly related to events

mweinelt and others added 5 commits May 22, 2023 16:29
Frigate is a NVR with realtime local object detection for IP cameras.
Starts a frigate instance with a dummy video stream provided by ffmpeg.

Co-Authored-By: fleaz <[email protected]>
@0x4A6F 0x4A6F merged commit afad0c1 into NixOS:master May 22, 2023
@mweinelt mweinelt deleted the frigate-init branch May 22, 2023 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: changelog 8.has: documentation This PR adds or changes documentation 8.has: module (update) This PR changes an existing module in `nixos/` 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 10.rebuild-darwin: 1 10.rebuild-linux: 1-10 11.by: package-maintainer This PR was created by the maintainer of the package it changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants