---
title: "process"
sidebar_label: "process"
description: "Kotlin binding reference: process."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[VideoProcessor](index.md)/[process](process.md)

# process

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

Sample and preprocess decoded frames; [meta](process.md) carries the clip's timing for fps-based sampling.

[common]\
fun [process](process.md)(path: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), options: [VideoProcessOptions](../VideoProcessOptions/index.md)? = null, where: [Placement](../Placement/index.md)? = null): [Tensor](../Tensor/index.md)

Decode a video file and sample and preprocess its frames.

[common]\
fun [process](process.md)(bytes: [ByteArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html), options: [VideoProcessOptions](../VideoProcessOptions/index.md)? = null, where: [Placement](../Placement/index.md)? = null): [Tensor](../Tensor/index.md)

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