Frigate, setting up recording

I’ve got a couple esp32cams and am hoping to use them as really basic security cameras.
After giving up on motioneye (as here), I’ve been trying to get Frigate up and running.

It’s installed and connected to a camera, but I’m really stuggling with configuring anything else using it’s yml.

Once a person’s detected, it’s taking a few still images OK, with a timestamp added.
Recording a video has me baffled though.

I currently get a video with no timestamp, of a period thats after the persons detected and left the frame.

Can anyone see what I’m doing wrong please?

mqtt:
  enabled: True
  host: 192.168.5.5
  user: mqtt
  password: mqtt

detectors:
  cpu0:
    type: cpu
  cpu1:
    type: cpu
  cpu2:
    type: cpu
  cpu3:
    type: cpu

cameras:
  ESPCamGarden:
    ffmpeg:
      input_args: ""
      inputs:
        - path: http://192.168.5.10:8080
          roles:
            - detect
            - record

record:
  enabled: True
  retain:
    days: 7
    mode: active_objects
  # timestamp: True
  events:
    pre_capture: 5
    post_capture: 5
    retain:
      default: 10
      mode: active_objects
      objects:
        person: 15
    # timestamp: True
detect:
  enabled: True
  width: 1920
  height: 1080
  fps: 5
  # timestamp: True
objects:
  track:
    - person
    - bird
    - cat
    - cup
snapshots:
  enabled: True
  clean_copy: False
  timestamp: True
  bounding_box: False
  crop: False
  retain:
    default: 7
    mode: active_objects
  quality: 100
motion:
  threshold: 30
  lightning_threshold: 0.8
  improve_contrast: True
  # timestamp: True
live:
  stream_name: camera_name
  height: 1080
  quality: 10
  # timestamp: True
timestamp_style:
  position: "tl"
  format: "%m/%d/%Y %H:%M:%S"
  color:
    red: 255
    green: 255
    blue: 255
  thickness: 2
  effect: shadow

Also, the video thats recorded doesn’t show within the event in Frigate, instead it shows The media could not be loaded, either because the server or network failed or because the format is not supported..
The video file has been stored and can be played with VLC OK.

Try this;

cameras:
  ESPCamGarden:
    ffmpeg:
      input_args: ""
      inputs:
        - path: http://192.168.5.10:8080
          roles:
            - detect
            - record
	record:
	  enabled: True
	  retain:
		days: 7
		mode: active_objects
	  # timestamp: True
	  events:
		pre_capture: 5
		post_capture: 5
		retain:
		  default: 10
		  mode: active_objects
		  objects:
			person: 15
		# timestamp: True
	detect:
	  enabled: True
	  width: 1920
	  height: 1080
	  fps: 5
	  # timestamp: True
	objects:
	  track:
		- person
		- bird
		- cat
		- cup
	snapshots:
	  enabled: True
	  clean_copy: False
	  timestamp: True
	  bounding_box: False
	  crop: False
	  retain:
		default: 7
		mode: active_objects
	  quality: 100
	motion:
	  threshold: 30
	  lightning_threshold: 0.8
	  improve_contrast: True
	  # timestamp: True
	live:
	  stream_name: camera_name
	  height: 1080
	  quality: 10
	  # timestamp: True
	timestamp_style:
	  position: "tl"
	  format: "%m/%d/%Y %H:%M:%S"
	  color:
red: 255
    green: 255
    blue: 255
  thickness: 2
  effect: shadow

This is a config of one of my camera’s.

cameras:
  frigate_cam1:
    ffmpeg:
      inputs:
      - path: rtsp://cam1/video
        roles:
        - detect
        - record
    detect:
      width: 1920
      height: 1080
      fps: 15
    zones:
      zone_0_cam1:
        coordinates: 470,1080,1428,977,1401,283,350,240
    objects:
      track:
      - person
      filters:
        person:
          min_area: 5000
          mask: 1920,0,1920,314,312,116,459,1080,0,1080,0,0
    motion:
      mask:
      - 0,56,569,54,557,0,0,0
      - 1920,0,1920,302,298,54,453,1080,0,1080,0,0
    record:
      enabled: true
      events:
        objects:
        - person
        required_zones:
        - zone_0_cam1
        retain:
          default: 5
          mode: active_objects
    snapshots:
      enabled: true
      clean_copy: false
      retain:
        default: 5

Thanks.
Which parts of those do you think would make the difference?
If I replace everything after the camera connection with yours, I end up with no still pictures and a video without a timestamp that misses the first few seconds of activity.