Skip to main content

//clika-runtime/io.clika.runtime/VideoProcessor/process

process

[common]
fun process(frames: Tensor, meta: VideoMetadata = VideoMetadata(), options: VideoProcessOptions? = null, where: Placement? = null): Tensor

Sample and preprocess decoded frames; meta carries the clip's timing for fps-based sampling.

[common]
fun process(path: String, options: VideoProcessOptions? = null, where: Placement? = null): Tensor

Decode a video file and sample and preprocess its frames.

[common]
fun process(bytes: ByteArray, options: VideoProcessOptions? = null, where: Placement? = null): Tensor

Decode an encoded video payload and sample and preprocess its frames.