Shortcuts

FrameBatch

class torchcodec.decoders.FrameBatch(data: Tensor, pts_seconds: Tensor, duration_seconds: Tensor)[source]

Multiple video frames with associated metadata.

Examples using FrameBatch:

Decoding a video with SimpleVideoDecoder

Decoding a video with SimpleVideoDecoder
data: Tensor

The frames data as (4-D torch.Tensor).

duration_seconds: Tensor

The duration of the frame, in seconds (1-D torch.Tensor of floats).

pts_seconds: Tensor

The pts of the frame, in seconds (1-D torch.Tensor of floats).

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources