question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Support]: Frigate Notification Snapshot

See original GitHub issue

Describe the problem you are having

How do I use the snapshot from the “best image” in the events tab? The notifications are detection frame snapshots. I am only using one stream per camera as it’s a blue iris stream I am pulling 1280x720 streams. The best image snapshots are of a much higher quality, have a bounding box and are not zoomed in.

I tried modifying the blueprint with bbox=1 and it didn’t work.

  title: View Snapshot
  uri: '{{base_url}}/api/frigate/notifications/{{id}}/snapshot.jpg?bbox=1'

Version

0.9.4-26AE608

Frigate config file

mqtt:
  host: 192.168.4.61
  user: user
  password: pw
detectors:
  coral1:
    type: edgetpu
    device: usb:0
  coral2:
    type: edgetpu
    device: usb:1
cameras:
  dining_room_1:
    ffmpeg:
      input_args: 
        - -avoid_negative_ts
        - make_zero
        - -flags
        - low_delay
        - -strict
        - experimental 
        - -fflags
        - +genpts+discardcorrupt
        - -rtsp_transport
        - tcp
        - -stimeout
        - "5000000"
        - -use_wallclock_as_timestamps
        - "1"
      inputs:
        - path: rtsp://192.168.1.246:81/diningroom1?w=1280&h=720
          roles:
            - detect
            - rtmp
    detect:
      width: 1280
      height: 720
      fps: 5
    zones:
      dining_room_walkway:
        coordinates: 92,720,521,594,924,427,760,377,44,586
      dining_room_sitting_area:
        coordinates: 1280,720,1280,574,1025,398,222,720
      dining_room:
        coordinates: 82,566,0,286,370,197,631,391
  dining_room_2:
    ffmpeg:
      input_args: 
        - -avoid_negative_ts
        - make_zero
        - -flags
        - low_delay
        - -strict
        - experimental 
        - -fflags
        - +genpts+discardcorrupt
        - -rtsp_transport
        - tcp
        - -stimeout
        - "5000000"
        - -use_wallclock_as_timestamps
        - "1"
      inputs:
        - path: rtsp://192.168.1.246:81/diningroom2?w=1280&h=720
          roles:
            - detect
            - rtmp
    detect:
      width: 1280
      height: 720
      fps: 5
  outdoor_3:
    ffmpeg:
      input_args: 
        - -avoid_negative_ts
        - make_zero
        - -flags
        - low_delay
        - -strict
        - experimental 
        - -fflags
        - +genpts+discardcorrupt
        - -rtsp_transport
        - tcp
        - -stimeout
        - "5000000"
        - -use_wallclock_as_timestamps
        - "1"
      inputs:
        - path: rtsp://192.168.1.246:81/outdoor3?w=1280&h=720
          roles:
            - detect
            - rtmp
    detect:
      width: 1280
      height: 720
      fps: 5
    zones:
      drive_way:
        coordinates: 234,720,1280,720,1280,477,1280,425,958,305,202,276
  outdoor_4:
    ffmpeg:
      input_args: 
        - -avoid_negative_ts
        - make_zero
        - -flags
        - low_delay
        - -strict
        - experimental 
        - -fflags
        - +genpts+discardcorrupt
        - -rtsp_transport
        - tcp
        - -stimeout
        - "5000000"
        - -use_wallclock_as_timestamps
        - "1"
      inputs:
        - path: rtsp://192.168.1.246:81/outdoor4?w=1280&h=720
          roles:
            - detect
            - rtmp
    detect:
      width: 1280
      height: 720
      fps: 5
  outdoor_2:
    ffmpeg:
      input_args: 
        - -avoid_negative_ts
        - make_zero
        - -flags
        - low_delay
        - -strict
        - experimental 
        - -fflags
        - +genpts+discardcorrupt
        - -rtsp_transport
        - tcp
        - -stimeout
        - "5000000"
        - -use_wallclock_as_timestamps
        - "1"
      inputs:
        - path: rtsp://192.168.1.246:81/outdoor2?w=1280&h=720
          roles:
            - detect
            - rtmp
    detect:
      width: 1280
      height: 720
      fps: 5
    zones:
      front_door:
        coordinates: 913,430,1063,626,1136,577,986,416
      side:
        coordinates: 458,271,880,271,994,720,0,720,0,317
  outdoor_1:
    ffmpeg:
      input_args: 
        - -avoid_negative_ts
        - make_zero
        - -flags
        - low_delay
        - -strict
        - experimental 
        - -fflags
        - +genpts+discardcorrupt
        - -rtsp_transport
        - tcp
        - -stimeout
        - "5000000"
        - -use_wallclock_as_timestamps
        - "1"
      inputs:
        - path: rtsp://192.168.1.246:81/outdoor1?w=1280&h=720
          roles:
            - detect
            - rtmp
    detect:
      width: 1280
      height: 720
      fps: 5
objects:
  track:
    - person
    - car
snapshots:
  enabled: True

Relevant log output

N/a

FFprobe output from your camera

N/a

Frigate stats

No response

Operating system

HassOS

Install method

HassOS Addon

Coral version

USB

Network connection

Wired

Camera make and model

Blue Iris

Any other information that may be helpful

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:18 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
blakeblackshearcommented, Dec 26, 2021

I was talking about the yaml for the automation created from the blueprint. You can see it if you go into automations in the config section, select your automation, select “Show Trace” > “Automation config”. You will need to copy that out into your own custom automation and change all of the thumbnail.jpg references to snapshot.jpg references. You can also remove the ?format=android parameter.

0reactions
Daniel-dev22commented, Dec 28, 2021

Sounds good I figured that was what I had to do.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Home Assistant notifications - Frigate Docs
It is generally recommended to trigger notifications based on the frigate/events mqtt topic. This provides the event_id needed to fetch thumbnails/snapshots/ ...
Read more >
Frigate clip, snapshot and stream in an actionable notification
I am trying to setup frigate. The blueprint works fine, but to many bells and whistles and i would like to have a...
Read more >
Frigate notification snapshot to Pushover? : r/homeassistant
My HA is not exposed to the internet so when I receive a notification from Frigate using the HA iOS app, the snapshot...
Read more >
FRIGATE NVR Part 3 - Actionable Notifications and ... - YouTube
FRIGATE NVR Part 3 - Actionable Notifications and Dashboard Cards ... It doesn't increase the cost to you, but it does help support...
Read more >
The Ultimate Guide to Frigate NVR Notifications - Simplepush
The Mosquitto MQTT service can also be run directly on your machine (without Docker). If you use Home Assistant Supervised or HassOS, you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found