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]: recorded clips from older version after the update

See original GitHub issue

Describe the problem you are having

I updated Frigate today and I still have clips from the old version so I have 2 questions:

  1. Will they be removed based on the retention setting (with the changes in the new configuration)
  2. When I go to the media browser (clips), I can see the new clips created after the upgrade and some of the old clips created before the upgrade but there is a gap where videos don’t show up but I can see them on disk

Version

0.9.1-800f33e

Frigate config file

# frigate.yml
detectors:
  cpu1:
    type: cpu
mqtt:
  # Required: host name
  host: caha.duckdns.org
  # Optional: port (default: shown below)
  port: 1883
  # Optional: topic prefix (default: shown below)
  # WARNING: must be unique if you are running multiple instances
  topic_prefix: frigate
  # Optional: client id (default: shown below)
  # WARNING: must be unique if you are running multiple instances
  client_id: frigate
  # Optional: user
  user: frigate
  # Optional: password
  # NOTE: Environment variables that begin with 'FRIGATE_' may be referenced in {}.
  #       eg. password: '{FRIGATE_MQTT_PASSWORD}'
  password: ddddddd
  # Optional: interval in seconds for publishing stats (default: shown below)
  stats_interval: 60
cameras:
  driveway:
    objects:
      track:
        - person
#        - truck
#        - bicycle
#        - motorcycle
      filters:
        person:
          mask:
            - 95,38,317,64,640,130,640,0,0,0,0,42
          min_score: 0.49
          threshold: 0.54
    ffmpeg:
      inputs:
        - path: rtsp://192.168.6.140/2
          roles:
            - detect
        - path: rtsp://192.168.6.140/1
          roles:
            - record
    detect:    
      width: 640
      height: 352
      fps: 5  
    motion:
      mask:
        - 95,38,317,64,640,130,640,0,0,0,0,42         
    record:
      enabled: true
      retain_days: 0
      events:
        retain:
          default: 5

################################################        
  front_porch_camera:
    objects:
      track:
        - person
#        - car
#        - truck
#        - bicycle
#        - motorcycle

     # Optional: save clips configuration    

    ffmpeg:
      inputs:
        - path: http://admin:WdxSca67@192.168.6.19/video.cgi 
          roles:
            - detect
            - record

          input_args:
            - -avoid_negative_ts
            - make_zero
            - -fflags
            - nobuffer
            - -flags
            - low_delay
            - -strict
            - experimental
            - -fflags
            - +genpts+discardcorrupt
            - -use_wallclock_as_timestamps
            - "1"
      output_args:

         record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v libx264 -pix_fmt yuv420p -an 
    detect:
      width: 640
      height: 480
      fps: 5  

    record:
      enabled: true
      retain_days: 0
      events:
        retain:
          default: 7

Relevant log output

[2021-10-07 14:39:06] frigate.app                    INFO    : Starting Frigate (0.9.1-800f33e)
[2021-10-07 14:39:06] frigate.app                    INFO    : Creating directory: /tmp/cache
[2021-10-07 14:39:06] frigate.app                    WARNING : Camera driveway has rtmp enabled, but rtmp is not assigned to an input.
[2021-10-07 14:39:06] frigate.app                    WARNING : Camera front_porch_camera has rtmp enabled, but rtmp is not assigned to an input.
Starting migrations
[2021-10-07 14:39:06] peewee_migrate                 INFO    : Starting migrations
Migrate "003_create_recordings_table"
[2021-10-07 14:39:06] peewee_migrate                 INFO    : Migrate "003_create_recordings_table"
Done 003_create_recordings_table
[2021-10-07 14:39:06] peewee_migrate                 INFO    : Done 003_create_recordings_table
Migrate "004_add_bbox_region_area"
[2021-10-07 14:39:07] peewee_migrate                 INFO    : Migrate "004_add_bbox_region_area"
add_column ('event', 'region', <JSONField: Event.region>)
[2021-10-07 14:39:07] peewee_migrate                 INFO    : add_column ('event', 'region', <JSONField: Event.region>)
add_column ('event', 'box', <JSONField: Event.box>)
[2021-10-07 14:39:07] peewee_migrate                 INFO    : add_column ('event', 'box', <JSONField: Event.box>)
add_column ('event', 'area', <IntegerField: Event.area>)
[2021-10-07 14:39:07] peewee_migrate                 INFO    : add_column ('event', 'area', <IntegerField: Event.area>)
Done 004_add_bbox_region_area
[2021-10-07 14:39:07] peewee_migrate                 INFO    : Done 004_add_bbox_region_area
[2021-10-07 14:39:07] frigate.mqtt                   INFO    : MQTT connected
[2021-10-07 14:39:07] frigate.app                    INFO    : Output process started: 214
[2021-10-07 14:39:07] frigate.app                    INFO    : Camera processor started for driveway: 217
[2021-10-07 14:39:07] ws4py                          INFO    : Using epoll
[2021-10-07 14:39:07] frigate.app                    INFO    : Camera processor started for front_porch_camera: 220
[2021-10-07 14:39:07] frigate.app                    INFO    : Capture process started for driveway: 221
[2021-10-07 14:39:07] frigate.app                    INFO    : Capture process started for front_porch_camera: 223
[2021-10-07 14:39:08] ws4py                          INFO    : Using epoll
[2021-10-07 14:39:07] detector.cpu1                  INFO    : Starting detection process: 213
[2021-10-07 14:39:07] frigate.edgetpu                WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
[2021-10-07 14:39:20] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:52598]
[2021-10-07 14:39:31] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:47622]

FFprobe output from your camera

N/A

Frigate stats

No response

Operating system

HassOS

Install method

HassOS Addon

Coral version

CPU (no coral)

Network connection

Wired

Camera make and model

Not relevant

Any other information that may be helpful

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
blakeblackshearcommented, Oct 9, 2021

There is already an open feature request for that: https://github.com/blakeblackshear/frigate/issues/1885

1reaction
jaytea33commented, Oct 9, 2021

Is it possible to disable this constant recording with 5 minute retention behavior so that it ONLY records on event detection? Some of us are using SD cards and they don’t typically handle constant writes very well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Save to Previous Version of After Effects - RocketStock
Open your project in the version of After Effects that it was last saved in. Go to “File” then “Save As” then find...
Read more >
Version history – Help Center - Vimeo
Click into the video whose version you want to update, and click the Settings button in the right panel. Open the Collaboration tab...
Read more >
View and restore past versions of documents on Mac
Revert a document to the last opened version. On your Mac, open the document, choose File > Revert To, then choose Last Opened,...
Read more >
Manage your game clips | Xbox Support
Find and edit your game clips on your Xbox console. Press the Xbox button to open the guide, and then go to Capture...
Read more >
Restore a previous version of a file stored in OneDrive
With version history, you can see and restore older versions of your files stored in OneDrive or SharePoint. Version history works with all...
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