meta-pytorch/torchcodec
A Python library by Meta for decoding and encoding video and audio into PyTorch tensors using FFmpeg.

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.