Datasource: File Stream

Use File Stream to replay existing media as datasource events.

This is ideal for deterministic testing, regression validation, and demos where live camera input is not required.


Best Use Cases

  • QA and repeatable model testing
  • Offline playback of captured incidents
  • Development without live camera dependencies

Configuration Fields

FieldRequiredTypeDefaultPurpose
sourceSelectorUI helpermedia-source-selector-Frontend selector for source media
sourceTypeHiddenstring-Internal source classification
bucketIdYesstring-Bucket containing media object
objectKeyYesstring-Path/key to selected media object
fpsNonumber5Frame rate (1-8)
resolutionNoselect640x480Output frame size
iterationsNonumber1Repeat count (-1 for infinite)
sleepBetweenIterationsSecNonumber0Delay between loops

How to Configure Correctly

  1. Select File Stream datasource type.
  2. Use media selector to choose bucket/object.
  3. Set FPS and resolution to match model input needs.
  4. Set iterations for test or continuous playback.
  5. Save and trigger workflow with datasource node.
  6. Validate reproducibility across repeated runs.

Example Config

{
  "bucketId": "1766071881123456",
  "objectKey": "media/test/scenario_a.mp4",
  "fps": 4,
  "resolution": "640x480",
  "iterations": 2,
  "sleepBetweenIterationsSec": 1
}

Practical Guidance

  • Use fixed clips as benchmark fixtures
  • Keep test clips versioned with known outcomes
  • Avoid infinite loops in shared environments unless explicitly required

Common Problems

  • No frames: incorrect bucket key or inaccessible media object
  • Inconsistent output: variable source files across test runs
  • Resource spikes: high FPS with large resolution and long iterations

Related Pages

  • Continue with Storage Buckets for media organization practices.
  • Continue with Workflows for regression and validation patterns.