PyTorch Blog· Nicolas Hug, Scott Schneider, Daniel Flores, Molly Xu, Ahmad Sharif·· 10 hr agoAI score46
TorchCodec 1.0: The Media Layer of PyTorch
TorchCodec 1.0: The Media Layer of PyTorch
AI summary
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.
Source: PyTorch Blog · pytorch.org