nemo_curator.stages.video.clipping.video_frame_extraction
nemo_curator.stages.video.clipping.video_frame_extraction
Module Contents
Classes
Functions
API
Dataclass
Bases: ProcessingStage[VideoTask, VideoTask]
Stage that extracts frames from videos into numpy arrays.
This stage handles video frame extraction using either FFmpeg (CPU/GPU) or PyNvCodec, converting video content into standardized frame arrays for downstream processing.
decoder_mode
name
output_hw
pyncv_batch_size
verbose
Setup method called once before processing begins. Override this method to perform any initialization that should happen once per worker. Args: worker_metadata (WorkerMetadata, optional): Information about the worker (provided by some backends)
Fetch resized frames for video.