#Frigate - 24/7 high quality recording.

1 messages ยท Page 1 of 1 (latest)

lunar wadi
#

What sort of config options am I looking at to achieve this?

I want to ditch my Reolink NVR. The drive is dead, and Frigate has now been rock solid for me for a year, and Frigate+... I'll never go back to any other detection.

The NVR's role was a 24/7 dumb recorder on the high quality stream. Can I have Frigate assume this role, in addition to monitoring the low quality streams for motion/AI detection and saving the higher quality clips of that? (My Reolink cameras seem capable to allow more then 1 device using the high quality stream at a time).

Note It's possible I'm already achieving the above, I'm just not sure how to review the 24/7 high quality stream in the web browser?

Excerpts of what I think is relevant config, for 1 camera as a sample

  front:
    ffmpeg:
      input_args: preset-http-reolink
      inputs:
        - path: 
            https://192.168.1.202/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=
          roles:
            - detect
            - audio
#        - path: 
#            https://192.168.1.202/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=
#          roles:
#            - record

    motion:
      mask:
        - 1,0,1,0....
        - 1,1,0.91...
    zones:
      door:
        coordinates: 0.61,...
        inertia: 3
        loitering_time: 0
      CatDriveway:
        coordinates: 0,0.536,...
        loitering_time: 0
        objects: cat
    review:
      alerts:
        required_zones: door

...

record:
  enabled: true
  retain:
    days: 5
    mode: all
  detections:
    retain:
      days: 40
      mode: motion
    pre_capture: 15
    post_capture : 15
  alerts:
    retain:
      days: 40
    pre_capture: 15
    post_capture : 15
objects:
  track:
    - person
    - cat
    - raccoon
  filters:
    cat:
      # July 18 : 0.50 -> 0.45
      threshold: 0.45
    person:
      # July 18 - 0.65 -> 0.60
      threshold: 0.60
    raccoon:
      threshold: 0.2

lunar wadi
#

Digging deeper I see that my cameras (8K) probably won't work well with frigate for the high quality stream ๐Ÿ˜ฆ

queen briar
#

Presumably you're using a lower resolution sub-stream for detection?

Just provide Frigate with the higher quality stream for recording

Reolink cameras with >5MP resolution can be finnicky but there are configurations that seem to work as long as you have sufficient system resources

It's worth trying rather than just assuming it won't work

#

The URL looks like a Dahua one? So as long as your system can handle it then it's definitely worth trying

Just change _ext to _main to get the high resolution feed... looking at your code you should just be able to un-comment those 5 lines, they already have the correct feed

lunar wadi
#

Which I think is because it's >5K which means h265 and not h264?

#

Do I need a go2rtc section in my config? or can I just change my camera url to be rfsp://

#

Oh, my camera can do both RTMP and RTSP! Had to enable it. Found a 3 year old reddit thread that suggests RTMP was more stable, any thoughts/feedback?

queen briar
#

Either should be fine, try one and see if you're happy with the stability - if not, try the other ๐Ÿ™‚

lunar wadi
#

How do I look at the high quality recording stream in frigate? the overview shows the low quality streams.

#

And, it looks like recording is working, saving files in 10 meg chunks. Can I have it save in much larger chunks on disk? maybe 1gig?

lunar wadi
#

Looks like no. I'll ask for a feature on GH discussions.

Is there a good way to monitor RTSP to see how it's working? Since I use the low quality HTTP FLV stream, the high quality RTSP is only recorded, so it's a bit "behind the scenes". Monitor the logs for ffmpeg errors? anything in the dashboard I can view?

queen briar
#

The old school way: stick the same URL into VLC and watch it

lunar wadi
queen briar
#

More that you'll likely see an issue if you watch for a few minutes, I assume

queen briar
queen briar
lunar wadi
#

Yeah I prefer large hourly files because it's just easier to manipulate when I need to send something to the cops

#

It happens so rarely.

queen briar
#

If you need to send something to the police go into the UI > Review > Motion > The camera you want to export from

An Export button appears, you can enter a start and end time, and it'll export to your media/frigate/exports folder

#

Eg I have some much larger files here (500MB etc) that I've exported

It's a bit of a faff to get the correct timestamps etc especially if you want to do it with multiple cameras, but if it's something you do rarely it's no big deal

dapper pivot
#

you can also just use the choose from timeline option so you don't need to enter timestamps, just drag on the timeline

queen briar
dapper pivot
#

maybe, but at least when I have used it you watch a part of it and then decide you want to export, but generally you didn't stop watching at the exact moment that is optimal for exporting since you'd usually want to export the entire time the object is in the frame. Using the timeline option is best since it shows you a direct preview as you scrub of the start and end point so you know exactly where the export will start and stop

queen briar
#

Hmm, I was about to say the timeline option is pretty awkward on mobile but either it's been improved since I tried it, or I was just using it wrong originally. You're right, that's plenty good enough

dapper pivot
#

the timeline itself has been improved in each version (meaning like performance), but the behavior is the same as it has been

#

0.16 brings even more performance improvements to the timeline

queen briar
#

I'm looking forward to 0.16 a lot. Will try to avoid derailing this thread too much by listing why, but it looks great, thanks ๐Ÿ™‚

lunar wadi
#

ohhh

#

when you click Export

dapper pivot
lunar wadi
#

yeahhhhhhhhhhhhhhhhh that's pretty sick ๐Ÿ™‚

#

althouhg preview export is very slow....

#

Hmmm maybe broken?

lunar wadi
#

ok works better if i actually fix my streams ๐Ÿ™‚

#

RSTP glitch?

lunar wadi
#

Ok i flat out watched a 10 second clip, and people walking is jerky. I guess that's RTSP life.

I found an older (1yr) reddit thread that says by going via the NVR, it might help things.

lunar wadi
#

Did not help. I think I'm going back to the NVR unfortunately for the 24/7.

dapper pivot
#

that is usually a config issue, either using the wrong input args or something else

#

can also sometimes just be a camera issue, my reolinks did that back when I used to use reolinks

lunar wadi
#

VLC doesn't have many dropped/skipped frames on the clip

#

Can DM you a clip if you want, but I know you guys don't really want to spend time on broken RTSP.

dapper pivot
#

it is usually a stutter when the next i-frames come through

#

if you are restreaming need to make sure restream preset is used

#

and if you are using reolink make sure you are using the reocmmended reolink streaming settings

lunar wadi
#

go2rtc has no bearing on this right? I'm not using it.

#
  front:
    ffmpeg:
      inputs:
        - path: 
            https://192.168.1.202/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user={FRIGATE_REO_USERNAME}&password={FRIGATE_REO_PASSWORD}
          input_args: preset-http-reolink
          roles:
            - detect
            - audio
        - path: 
            rtsp://{FRIGATE_REO_USERNAME}:{FRIGATE_REO_PASSWORD}@192.168.1.202/Preview_01_main
          roles:
            - record
lunar wadi
#

and globally,

ffmpeg:
  hwaccel_args: preset-nvidia
#

(rtx3060)

#

I did set the i-frame interval on reolink to 1x i think as per the recommendations