SgtBatten / HA_blueprints

Somewhere to store automation blueprints
200 stars 79 forks source link

[Issue]: Frigate .15beta Clip issue #308

Open kiloptero opened 3 days ago

kiloptero commented 3 days ago

Description

IMG_2892

With the last version of frigate .15beta the clip option is not working. All the rest like always works fine.

the version .14 of frigate works perfect with this addon

Version

Version (0.12.0.4p)

Automation Config

alias: Frigate Not multiple camera
description: ""
use_blueprint:
  path: SgtBatten/Beta.yaml
  input:
    camera:
      - camera.entradacasasub
      - camera.reolink5202
    notify_device: 0f9bb4768279fe312ad33b1b2b6c462b
    message: >-
      A {{ label }} {{ 'is loitering' if loitering else 'was detected' }} on the
      {{ camera_name }} camera{% if entered_zones %} in the {{ entered_zones |
      join(', ') | replace('_',' ') }}{% endif %} at
      {{event['after']['start_time']|timestamp_custom('%H:%M')}}.
    url_3: /lovelace
    button_3: Open HA
    debug: true
    cooldown: 0
    silence_timer: 0
    video: ""
    attachment: thumbnail.jpg

Frigate Config

mqtt:
  host: 10.1.2.100
  user: mqtt_user
  password: hamqtt
  topic_prefix: frigate

objects:
  # Optional: list of objects to track from labelmap.txt (default: shown below)
  track:
    - person
    - cat
    - car
  filters:
          #  bicycle:
          #    threshold: 0.8
    person:
      threshold: 0.75
      min_score: 0.7
    cat:
      threshold: 0.7
      min_score: 0.7
    car:
      threshold: 0.75
      min_score: 0.7

review:
  alerts:
    labels:
      - cat
      - person

  detections:
    labels:
      - cat
      - person
      - car
      - bird
      - dog

record:
  sync_recordings: True
  enabled: true
  retain:
    days: 10
    mode: all
  alerts:
    retain:
      days: 10
      mode: all
  detections:
    retain:
      days: 10
      mode: all
snapshots:
  enabled: true
  retain:
    default: 500

ffmpeg:
   hwaccel_args: preset-vaapi

go2rtc:
  streams:
    EntradaCasasub:
      - rtsp://login:pass@Ip0:554/h264Preview_01_sub
      - ffmpeg:EntradaCasasub#audio=opus
    EntradaCasa:
      - rtsp://login:pass@Ip0:554/h264Preview_01_main
      - ffmpeg:EntradaCasa#audio=opus

    reolinksub:
      - rtsp://login:pass@Ip1:554/h264Preview_01_sub
      - ffmpeg:reolink#audio=opus
    Reolink5201:
      - rtsp://login:pass@Ip2:554/h264Preview_01_main
      - ffmpeg:reolink#audio=opus
    Reolink5201sub:
      - rtsp://login:pass@Ip2:554/h264Preview_01_sub
      - ffmpeg:reolink#audio=opus
    Reolink5202:
      - rtsp://login:pass@Ip3:554/h264Preview_01_main
      - ffmpeg:reolink#audio=opus
    Reolink5202sub:
      - rtsp://login:pass@Ip3:554/h264Preview_01_sub
      - ffmpeg:reolink#audio=opus
    Reolinkduo21:
      - rtsp://login:pass@Ip4:554/h264Preview_01_main
      - ffmpeg:reolink#audio=opus
    Reolinkduo21sub:
      - rtsp://login:pass@Ip4:554/h264Preview_01_sub
      - ffmpeg:reolink#audio=opus
    Reolinkduo22:
      - rtsp://login:pass@Ip5:554/h264Preview_01_main
      - ffmpeg:reolink#audio=opus
    Reolinkduo22sub:
      - rtsp://login:pass@Ip5:554/h264Preview_01_sub
      - ffmpeg:reolink#audio=opus
    comedero:
      - echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh
        camera.pet_feeder
    lenovopieza:
      - http://10.1.3.131:2323/?cmd=getCamshot&password=2802
      - ffmpeg:http://127.0.0.1:1984/api/stream.mjpeg?src=lenovopieza#video=h264
    lenovoescritorio:
      - http://10.1.3.130:2323/?cmd=getCamshot&password=2802
      - ffmpeg:http://127.0.0.1:1984/api/stream.mjpeg?src=lenovoescritorio#video=h264
    fire11:
      - http://10.1.3.140:2323/?cmd=getCamshot&password=2802
      - ffmpeg:http://127.0.0.1:1984/api/stream.mjpeg?src=fire11#video=h264
  webrtc:
    candidates:
      - 10.1.2.100:8555
      - stun:8555

#genai:
#  enabled: True
#  provider: gemini
#  api_key: “xxxx”
#  model: gemini-1.5-flash

cameras:
  EntradaCasasub:

    birdseye:
      order: 1
    mqtt:
      timestamp: false
      bounding_box: false
      crop: true
      quality: 100
      height: 720

    ffmpeg:
      output_args:
        record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps
          1 -strftime 1 -c:v copy -tag:v hvc1 -bsf:v hevc_mp4toannexb -c:a aac
      inputs:
        - path: rtsp://127.0.0.1:8554/EntradaCasa?video=copy&audio=aac
          input_args: preset-rtsp-restream
          roles:
            - record

        - path: rtsp://127.0.0.1:8554/EntradaCasasub?video=copy&audio=aac
          input_args: preset-rtsp-restream
          roles:
            - detect

    live:
      stream_name: EntradaCasasub

    motion:
      mask: 0.335,0.01,0.337,0.071,0.641,0.079,0.636,0.01
    zones: {}
    review:
      alerts: {}
      detections: {}
  Reolinkduo21:
    mqtt:
      timestamp: false
      bounding_box: false
      crop: true
      quality: 100
      height: 720

    ffmpeg:
      output_args:
        record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps
          1 -strftime 1 -c:v copy -tag:v hvc1 -bsf:v hevc_mp4toannexb -c:a aac
      inputs:
        - path: rtsp://127.0.0.1:8554/Reolinkduo21?video=copy&audio=aac
          input_args: preset-rtsp-restream
          roles:
            - record

        - path: rtsp://127.0.0.1:8554/Reolinkduo21sub?video=copy&audio=aac
          input_args: preset-rtsp-restream
          roles:
            - detect
            - audio
    live:
      stream_name: Reolinkduo21sub

    audio:
      enabled: false
      listen:
        - bark
        - fire_alarm
        - scream
        - speech
        - yell

    zones: {}
    review: {}
  Reolinkduo22:
    mqtt:
      timestamp: false
      bounding_box: false
      crop: true
      quality: 100
      height: 720

    ffmpeg:
      output_args:
        record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps
          1 -strftime 1 -c:v copy -tag:v hvc1 -bsf:v hevc_mp4toannexb -c:a aac
      inputs:
        - path: rtsp://127.0.0.1:8554/Reolinkduo22?video=copy&audio=aac
          input_args: preset-rtsp-restream
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/Reolinkduo22sub?video=copy&audio=aac
          input_args: preset-rtsp-restream
          roles:
            - detect
    live:
      stream_name: Reolinkduo22sub

  reolink:
    mqtt:
      timestamp: false
      bounding_box: false
      crop: true
      quality: 100
      height: 720

    ffmpeg:
      output_args:
        record: preset-record-generic-audio-copy
      inputs:
        - path: rtsp://127.0.0.1:8554/reolink?video=copy&audio=aac
          input_args: preset-rtsp-restream
          roles:
            - record

        - path: rtsp://127.0.0.1:8554/reolinksub?video=copy&audio=aac
          input_args: preset-rtsp-restream
          roles:
            - detect
    live:
      stream_name: reolinksub

    objects:
      # Optional: list of objects to track from labelmap.txt (default: shown below)
      track:
        - person
        - cat
        - car
      filters:
              #  bicycle:
              #    threshold: 0.8
        person:
          threshold: 0.75
        cat:
          threshold: 0.75
        car:
          threshold: 0.75

  Reolink5201:
    mqtt:
      timestamp: false
      bounding_box: false
      crop: true
      quality: 100
      height: 720

    ffmpeg:
      output_args:
        record: preset-record-generic-audio-copy
      inputs:
        - path: rtsp://127.0.0.1:8554/Reolink5201?video=copy&audio=aac
          input_args: preset-rtsp-restream
          roles:
            - record

        - path: rtsp://127.0.0.1:8554/Reolink5201sub?video=copy&audio=aac
          input_args: preset-rtsp-restream
          roles:
            - detect
    live:
      stream_name: Reolink5201sub

  Reolink5202:
    mqtt:
      timestamp: false
      bounding_box: false
      crop: true
      quality: 100
      height: 720

    ffmpeg:
      output_args:
        record: preset-record-generic-audio-copy
      inputs:
        - path: rtsp://127.0.0.1:8554/Reolink5202?video=copy&audio=aac
          input_args: preset-rtsp-restream
          roles:
            - record

        - path: rtsp://127.0.0.1:8554/Reolink5202sub?video=copy&audio=aac
          input_args: preset-rtsp-restream
          roles:
            - detect
    live:
      stream_name: Reolink5202sub

    motion:
      mask: 0.336,0.01,0.341,0.046,0.638,0.051,0.639,0.006

  comedero:
    mqtt:
      timestamp: false
      bounding_box: false
      crop: true
      quality: 100
      height: 720
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/comedero?video
          input_args: preset-rtsp-restream-low-latency
          roles:
            - detect
            - record
            - audio
    objects:
      track:
        - cat
        - person

      filters:
        person:
          threshold: 0.7
          min_score: 0.75

        cat:
          threshold: 0.75
          min_score: 0.7

    audio:
      enabled: false
      listen:
        - speech
        - cat
        - scream
        - purr
        - meow

    motion:
      mask:
        - 0.011,0.083,0.366,0.084,0.363,0.01,0.007,0.014
        - 0.505,0.271,0.503,0.365,0.557,0.372,0.553,0.297
    zones: {}
    review: {}

  lenovopieza:
    mqtt:
      timestamp: false
      bounding_box: false
      crop: true
      quality: 100
      height: 720
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/lenovopieza?video
          input_args: preset-rtsp-restream-low-latency
          roles:
            - detect
            - record

  lenovoescritorio:
    mqtt:
      timestamp: false
      bounding_box: false
      crop: true
      quality: 100
      height: 720
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/lenovoescritorio?video
          input_args: preset-rtsp-restream-low-latency
          roles:
            - detect
            - record

  fire11:
    mqtt:
      timestamp: false
      bounding_box: false
      crop: true
      quality: 100
      height: 720
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/fire11?video
          input_args: preset-rtsp-restream-low-latency
          roles:
            - detect
            - record

detectors:
  coral_1:
    type: edgetpu
    device: usb:0
  coral_2:
    type: edgetpu
    device: usb:1

database:
  path: /config/frigate.db
    # model:
    #  path: "/custom_model.tflite"

birdseye:
  enabled: true
    # 1 is the highest quality, and 31 is the lowest. Lower quality feeds utilize less CPU resources.
  quality: 1
  mode: continuous

detect:
  fps: 5
  enabled: true

#ui:
#  live_mode: mse

version: 0.15-0
camera_groups:
  birdeyes:
    order: 1
    icon: LuBird
    cameras: birdseye
#semantic_search:
#  enabled: true
#  reindex: false
#  model_size: small

Any other relevant information

No response

kiloptero commented 2 days ago

sending images works perfect IMG_2895

SgtBatten commented 1 day ago

is there a change to the api url?

kiloptero commented 1 day ago

dont know;(

SgtBatten commented 1 day ago

You are using a beta version of software. Surely you read the change notes?

kiloptero commented 1 day ago

yes, read everything

see the clips is the onmy thing not working

Andres Roepke Del Solar. Ingeniero Civil Industrial Ingeniero Electronico Mobile 88196932

On Sun, Nov 3, 2024 at 03:52 SgtBatten @.***> wrote:

You are using a beta version of software. Surely you read the change notes?

— Reply to this email directly, view it on GitHub https://github.com/SgtBatten/HA_blueprints/issues/308#issuecomment-2453319153, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIOTKWU6JIHYEHP4ESIAXGLZ6XB27AVCNFSM6AAAAABRATAR5KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJTGMYTSMJVGM . You are receiving this because you authored the thread.Message ID: @.***>