Overview

The Playbook Video node processes video frames from an input URL or a default video input. It allows frame selection based on specific parameters, such as skipping initial frames, selecting every nth frame, and limiting the number of loaded frames.

🛠️ Node Configuration

Inputs

NameTypeRequiredDefaultDescription
idSTRING“Node ID”Unique identifier for the node.
labelSTRING“Node Label”Label for the node.
frame_load_capINT0Maximum number of frames to load (0 means no limit).
skip_first_framesINT0Number of initial frames to skip.
select_every_nthINT1Select every nth frame to include in processing.
default_valueIMAGENoneDefault image frames if no valid video is available.
default_urlSTRING""URL of the video to process.

Outputs

NameTypeDescription
imagesIMAGEProcessed frames from the video input.

⚙️ Functionality

  • If default_url is provided, the node attempts to download and process the video.
  • Frames are converted from BGR to RGB and normalized to the 0-1 range.
  • If no valid URL is provided, the node returns default_value if available.
  • Uses OpenCV (cv2) for frame extraction and PyTorch (torch) for tensor conversion.