TorchCodec 1.0 released, becoming PyTorch's unified media entry point
Understand this story
PyTorch has released TorchCodec 1.0, positioning it as the unified entry point for all media decoding and encoding in PyTorch. The API is now stable, and the library is said to have been in production use for over two years. According to PyTorch, Hugging Face's datasets, transformers, and LeRobot, as well as vLLM and SGLang, all rely on it to decode audio, video, and images. For installation, pip install torchcodec supports Linux (x86 and aarch64), macOS, and Windows, with Linux wheels shipping with CUDA support; it uses the system's existing FFmpeg and supports major versions 4 through 9.
AI overview based on source reports · Updated 9 hr ago
Coverage timeline
Follow the coverage to explore different perspectives.
- PyTorch BlogTorchCodec 1.0: The Media Layer of PyTorch
TorchCodec 1.0 marks the stable release of PyTorch's media decoding and encoding library, which handles video, audio and images and is used in production by projects including Hugging Face libraries, vLLM and SGLang. The release highlights new low-level APIs that expose the demuxing, decoding and conversion stages separately, enabling multi-threaded pipelines, raw YUV access, multi-stream decoding and decoding without a demuxer. The post also describes an agent that auto-tuned a decoding pipeline to be 1.4-1.9x faster than a simple baseline and up to 1.36x faster than an equally tuned VideoDecoder.
Activity for this story
- Current comparable activity
- 8
- Peak comparable activity
- 10Dec 3 04:00
- Change in the past 24 hours
- –
Trends compare the same fully observed participants, which may cover fewer participants than current activity. Move the pointer or tap the chart to inspect hourly activity; use the left and right arrow keys with a keyboard.