Can't Play Frigate Clips

I have just setup frigate and have managed to get snapshots of events working. Have also setup clips but I can’t get any of these to play. I have tried playing from the media folder and also directly through frigate but am getting errors. I am only using snapshot and clips, I am not using frigate to record.

I have tried playing from Android device and also windows pc.


Frigate log shows this error

[2022-08-15 21:03:19] frigate.http ERROR : Event does not have recordings: 1660590035.168057-x266qz
[2022-08-15 21:18:39] ws4py INFO : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:60752]
[2022-08-15 21:18:54] ws4py INFO : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:60778]
[2022-08-15 21:18:55] ws4py INFO : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:60778]
[2022-08-15 21:19:10] frigate.http ERROR : No recordings found for the requested time range
[2022-08-15 21:19:16] ws4py INFO : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:60752]

Has anyone else experienced this and manage to sort it, or any suggestions.

Thanks

I am not using frigate to record.

Please share you config, as this is a bit confusing (clips are recordings).

Also, is your camera h265? h265 is not supported in most browsers / HA mobile app and that is a common issue.

ERROR : No recordings found for the requested time range is an interesting error but not able to know much about it without seeing your config.

Thank you for the reply. I am trying to use frigate for snapshots and clips only, I don’t want 24/7 recording as I have a hikvision NVR. I just want to setup notifications with frigate. Is this even possible? I seen it set up like this in an online tutorial.

I have added detect and clips to the roles, I have not added record.

The no recordings error may be because I toggled the recording on from the UI to see if it would help with playing the clips.

I’m not sure if the camera is h265, I will need to check when I get home.

Here is my config

cameras:
  front_door:
    ffmpeg:
      inputs:
        - path: rtsp://xxxx:[email protected]/Streaming/Channels/502
          roles:
            - detect
            - clips
    detect:
      width: 640
      height: 480
    objects:
      track:
        - person
        - car
    snapshots:
      enabled: true
      timestamp: false

Thanks again

Edit:
So I added and enabled record to the config and clips are playing now. Does anyone know if it is possible to have clips working without 24/7 recording?

yes you set record> retain > days to 0 but maintain your event config under record > events

clips is not a valid role and I definitely recommend referencing the actual docs instead of old tutorials as they are very outdated.

As another user said, you just set record -> retain -> days to 0 and set record -> events -> retain -> default to however long you want to keep event clips stored

I was actually going over the docs earlier today and came across the part that shows this but I didn’t really understand it.

Reading it as you have laid it out it just clicked for me so I will change this.

Thanks again

On a side note, I just added a motion mask and it seems to have stopped the recording functionality but clips are still working. I have removed and readded the mask to confirm that this is the case and it does appear that the recording stops when I add the mask.
I don’t get any log errors and the mask appears correctly in debug view so not sure what is going on there.

Here is the code with mask added at the end

cameras:
  front_door:
    ffmpeg:
      inputs:
        - path: rtsp://xxxx:[email protected]/Streaming/Channels/502
          roles:
            - detect
            - clips
            - record
    detect:
      width: 640
      height: 480
    objects:
      track:
        - person
        - car
    snapshots:
      enabled: true
      timestamp: false
    record:
      enabled: true
    motion:
      mask:
        - 640,217,640,0,334,0

I don’t have any issue with storage for the recordings, I just thought it would reduce cpu load. Would recording add significant cpu load or is it more so with object detection?

Please remove - clips from roles, that is not valid anymore

You’ll have to clarify what this means. That config has 24/7 recording disabled so I have no idea what you mean by clips works and recording doesn’t

No, recordings are very light on CPU as they are literally just streaming the camera stream directly into a .mp4 file with no decoding. Video decode, motion detection, and object detection are what use considerable CPU (object detection being the most).

Before adding the mask at the end, 24/7 recording and clips were working, after adding the mask the clips are still working but not recording. If I remove the mask code recording works again.

Not an issue as I will update the code to proper format, I just didn’t get how that happened.

I realise that clips is no longer valid. I will change this.

Thanks for the advice re cpu. I may just have it record 24/7. I have 7 cameras, would this still be minimal load on the cpu.

1 Like

Yes, it would be minimal load

The reason why i suspect recording on or off doesn’t actually make much difference to cpu is because it’s recording constantly anyway. It needs to record constantly in order to be able to extract the event including the pre_capture buffer before the detection occurs.

1 Like

Hi @Imygaf
I want to do the same. I have hikvision NVR already which record 24/7.
I want to use Forigate for AI and detection notification only.
would you please explain how you did it.

Note: I have HA in Raspberry PI

Thanks