Save GIF

Saves a GIF when a specific condition is met.

Overview

The Save GIF node allows for saving a GIF when a specific condition is met. This functionality is useful for applications requiring dynamic media capture based on real-time data or events.

Inputs & Outputs

  • Input media: Raw Video.
  • Output media: Raw Video.
  • Output metadata: None.

Pipeline usage

Place metadata-producing nodes before Save GIF so capture_trigger and end_trigger can evaluate their outputs. The pre-trigger buffer retains recent frames before capture begins, while max_duration guarantees eventual completion when no end trigger fires. capture_interval controls how often source frames are sampled; playback_interval controls how long each sampled frame is shown, so they need not match. Cloud files appear in Lumeo outputs; local files remain on the gateway and are limited by max_edge_files.

Properties

PropertyDescriptionTypeDefaultRequired
save_locationSave location. Options: Lumeo Cloud (cloud): Access files via Lumeo API or the output files tab of the deployment; Local disk (local): Access from the specified folder of the gateway.enumcloudYes
max_edge_filesMax. number of files. Conditional on save_location being local.number5Yes
capture_triggerStart capturing and add a frame to the GIF when this condition evaluates to true.trigger-conditionnullYes
end_triggerSave the GIF when this condition evaluates to true or max. duration is reached.trigger-conditionnullNo
max_durationMax. GIF duration. Unit: seconds.float5Yes
pre_trigger_durationCapture duration before the Capture trigger evalutes to true. Unit: seconds.float0Yes
capture_intervalCapture frames at this interval. Unit: seconds/frame.float2Yes
playback_intervalPlayback frames at this interval. Unit: seconds/frame.float2Yes
resolutionResolution. Options: Default (stream resolution) (default); 1280x720 (1280x720); 640x360 (640x360); 320x180 (320x180).enumdefaultYes

Output Metadata

Node does not insert any output metadata; upstream metadata continues through the pipeline


Did this page help you?