Local realtime person detection for RTSP cameras

I have moved to rc2 because of this problem.

here are ffprobe details:
Cam1

Input #0, rtsp, from ‘rtsp://redacted:[email protected]:554/Streaming/Channels/102?profile=Profile_1’:
Metadata:
title : Media Presentation
Duration: N/A, start: 0.556667, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 640x480 [SAR 4:3 DAR 16:9], 12 fps, 12.50 tbr, 90k tbn, 24 tbc

Cam2:

Input #0, rtsp, from ‘rtsp://192.168.10.104:554/live/ch0?token=redacted’:
Metadata:
title : hysxrtpsion
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x1080, 15 fps, 15 tbr, 90k tbn, 30 tbc
Stream #0:1: Audio: aac (LC), 8000 Hz, mono, fltp

Clips are perfectly read by my linux box default player.

Can you create an issue on GH? It is difficult to troubleshoot here.

Goodness, I’m glad I’m running Frigate in a docker container and not as a HA addon. Integration is working fine with HA however.

HA seems to be harder and harder to work with as the days go by.

1 Like

Please open an issue on GH with the requested information.

The dev board does not work like a Coral. It is more like a raspberry pi. You will need to run frigate in a container on the dev board.

Done : https://github.com/blakeblackshear/frigate/issues/562

https://github.com/blakeblackshear/frigate/issues/563 done sir :slight_smile:

I think this is because the folders on your host dont allow read or execute for other users than eben. Try running chmod 755 ~/Docker/frigate/clips and chmod 755 ~/Docker/frigate/recordings and restarting frigate.

RC3 is out: https://github.com/blakeblackshear/frigate/releases/tag/v0.8.0-rc3

Hopefully this fixes the rest of the ingress issues.

3 Likes

Ingress web UI features are all working great for me now on RC3. Thanks @paulstronaut and @blakeblackshear!

2 Likes

Thanks @paulstronaut for a your great job! It seems that very soon i can totally uninstall cpu hungry zoneminder :slight_smile:
One question though. What means “rebuild” on the addon screen in HA? When i should use this button?

It’s working for me to. Thanks so much. All the cat negatives are history.

One question. I had to change the cams primary stream res from 4k to 1080 for clips to work(I have substream 640 for detection). Is that works as designed or my fault? Does anybody has 4k clips working ?

Keep up the good work!

I am running one of my cameras at 4K.

Are you running this on a PI or a NUC / Laptop etc?

Perhaps if you are running a PI it’s to much for it?

I’m running both the main and sub stream at H.264

ingress issue fixed sir! Just awesome! 1000 Thanks!

another stupi question … is someone running a TAPO C200 Cam with frigate? Me i do with this config:

  porch:
    ffmpeg:
      inputs:
        - path: 'rtsp://hassio:[email protected]:554/stream1'
          roles:
            - detect
            - rtmp
            - clips
            - record
    width: 1280
    height: 720
    fps: 15
    record:
      enabled: true
      retain_days: 1

working well so far BUT my object detection looks like this:

image
we already saw this issue but there waas no really solution … or i didn’t find it here :frowning:

this is my ffmpeg settings GLOBAL:

ffmpeg:
  global_args:
    - '-hide_banner'
    - '-loglevel'
    - panic
  hwaccel_args:
    - '-hwaccel'
    - vaapi
    - '-hwaccel_device'
    - /dev/dri/renderD128
    - '-hwaccel_output_format'
    - yuv420p
  input_args:
    - '-avoid_negative_ts'
    - make_zero
    - '-fflags'
    - nobuffer
    - '-flags'
    - low_delay
    - '-strict'
    - experimental
    - '-fflags'
    - +genpts+discardcorrupt
    - '-rtsp_transport'
    - tcp
    - '-stimeout'
    - '5000000'
    - '-use_wallclock_as_timestamps'
    - '1'

and another issue here: I set framerate to 15 FPS but it uses more:

1 Like

Thanks for your respons. I’m running it on a nuc10 i5 so that should be ok. Do I need to specify the clip resolution stream or only the detection stream(that’s what i do now)? I have 2 annke c800 camera’s.

OK awesome, that fixed the issue!! I ended up changing the owner of the folder to root and now the clips play correctly.

Thanks Blake!!

Quick random question - does anyone know if it is possible to hide the default “Local Media” folder from the Media Browser? I only use the browser for Frigate, so would ideally like to show only those clips. I’ve tried limiting it in my config file, but doesn’t hide the local media folder:

media_source:
  media_dirs:
      frigate: /media/frigate

Any suggestions?

@denver WoW ,… that easy? well … fixed it :slight_smile: Thanks a lot! now all my 4 cams are pretty well working thanks to u!!

I have just set up notifications for people detected when my alarm is armed, using the automation templates here.

One observation is that if people are near the camera for any period of time, or if there are multiple people in a group, the automation will send a notification repeatedly in rapid-fire. Is there any way in an automation to limit a re-notification for a particular camera for a short period (e.g. 10 secs) to limit this behavior?