Frigate, how to record videos?

Frigate NVR 3.1.
Why Frigate crashes if I change “record: enabled: True” and un-comment the bottom? It only stores jpg.

mqtt:
  host: 192.168.1.23
  user: xxx
  password: xxx

birdseye:
  enabled: True
  mode: continuous

cameras:
  talli:
    ffmpeg:
      inputs:
        - path: rtsp://192.168.1.123:554/ucast/11
          roles:
            - detect
            - clips
    detect:
      width: 1920
      height: 1080
      fps: 5
    zones:  
      tallilahella:
        coordinates: 298,0,0,1080,1920,1080,1920,576
    objects:
      track:
        - person
        - car
        - motorcycle
      filters:
        person:
          min_score: 0.8
          threshold: 0.8
        car:
          min_score: 0.8
          threshold: 0.8
        motorcycle:
          min_score: 0.8
          threshold: 0.8
    snapshots:
      enabled: true
      timestamp: true
      retain:
        default: 30
    motion:
      mask:
        - 1920,0,1920,521,485,0
    record:
      enabled: false
      #retain_days: 30
      #events:
      #  pre_capture: 5
      #  post_capture: 5
      #  objects:
      #    - person
      #  retain:
      #    default: 30
      #  mode: motion

Your mode is not correct, it should be

    record:
      enabled: false
      retain_days: 30
      events:
        pre_capture: 5
        post_capture: 5
        objects:
          - person
        retain:
          default: 30
          mode: motion