← all repositories

meta-pytorch/torchcodec

A Python library by Meta for decoding and encoding video and audio into PyTorch tensors using FFmpeg.

1.1k stars Python Data Tooling
torchcodec
Velocity · 7d
+1.5
★ / day
Trend
steady
star history

TorchCodec provides Pythonic APIs for video and audio decoding and encoding, returning data as PyTorch tensors ready for ML pipelines. It wraps FFmpeg for the underlying codec operations and supports both CPU and CUDA device placement. The library targets ML practitioners who need to efficiently load media data for model training or inference workloads.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.