Record Video
This function block saves incoming frames into a video file. It supports multiple trigger modes (keyboard or signal), selectable output quality, and automatic file naming to avoid overwriting existing recordings. Use this block when you want to capture and store a sequence of images as a video.
π₯ Inputs
Frameβ Image frames to be recorded into the video.Recordβ Boolean signal to control recording (behaviour depends on selected trigger mode).Folder Pathβ Destination folder where the video file will be saved.File Name (no extension)β Optional file name; if left empty a timestamp-based name will be created.
π€ Outputs
This function block does not provide outputs.
πΉοΈ Controls
Video Qualityβ Choose output quality. Options typically includeCompressedandHigh Quality.Trigger Modeβ Choose how recording is started/stopped. Options typically includeSpacebar,Continuous, andOnce.Recordingβ LED-style indicator showing whether a recording is currently active.
Note: In Spacebar trigger mode press the actual Spacebar to start/stop recording. In Continuous and Once modes the behaviour follows the boolean Record input.
π¨ Features
Automatic unique filename creation when a name already exists in the selected folder.
Two quality modes that save in different container/codec formats (common compressed and high-quality options).
Visual LED indicator for recording state.
Supports starting/stopping via keyboard or boolean signals so it fits both manual and automated workflows.
Converts single-channel frames to color before writing when needed (ensures consistent video format).
βοΈ Running mechanism
Choose a
Trigger Mode:Spacebarβ press Spacebar to toggle start/stop.Continuousβ providing TRUE starts recording; providing FALSE stops and finalizes the file.Onceβ toggling theRecordinput triggers a single start/stop action.
When recording starts the block creates a new file in the selected folder using the chosen quality. If a file with the requested name already exists the block appends a unique suffix.
While active the block writes each received
Frameinto the file. When stopping, the file is finalized and closed.The saved file may not be viewable while recording; wait until recording finishes to open the file.
π Usage instructions
Provide a source of frames to
Frame(for example fromCamera USB,Camera IP (ONVIF),Stream Reader, orVideo).Select a destination folder via
Folder Path.Optionally set
File Name (no extension)or leave empty to use a timestamp.Choose
Video QualityandTrigger Mode.Use the chosen trigger (press Spacebar or toggle the
Recordinput) to start and stop recording.
π‘ Tips and Tricks
To preview what will be recorded, connect the same frame source also to
Show Imageso you can see a live preview while recording.If input frames are larger than needed, add
Image Resizerbefore this block to reduce resolution and lower output file size.If you prefer saving individual frames instead of a video, use
Image LoggerorMulti Image Writein parallel.Use
Date-TimeorDate-Time Listto build human-friendly file names (feed the resulting text intoFile Name (no extension)).Use
File/Folder Operationsto prepare or validate the target folder before starting a recording.If you need to stop the whole scenario while recording, combine this block with
Stopto ensure a clean finish.
π οΈ Troubleshooting
Recording does not start:
Check the selected
Trigger Modeand ensure the appropriate action (Spacebar press or boolean signal) is being used.Verify that
Folder Pathis valid and writable.
No frames in saved video or corrupted output:
Ensure the frame source actually supplies frames (try previewing with
Show Image).Make sure frame size is consistent; resizing the frames before recording can help.
File name collisions or unexpected suffixes:
The block automatically generates unique names when duplicates exist. Use a custom
File Name (no extension)and include date/time if you want predictable names.
Cannot open video while recording:
This is expected. Wait until recording stops and the file is finalized before opening it.
If problems persist, try recording a short test clip with a simple source like Video or Load Image (looped) to isolate whether the issue is with the source feed or the saving process.
Last updated
Was this helpful?