cd /news/developer-tools/torchcodec-0-14-hdr-video-decoding-f… · home topics developer-tools article
[ARTICLE · art-27322] src=github.com ↗ pub= topic=developer-tools verified=true sentiment=↑ positive

TorchCodec 0.14: HDR Video Decoding for CPU and CUDA, and Fast Wav Decoder

Meta's PyTorch team released TorchCodec 0.14, adding a fast WavDecoder that bypasses FFmpeg for direct WAV file reading and HDR video decoding support for CPU and CUDA with full float32 precision. The update also improves audio seeking speed and removes the NVIDIA NPP dependency for simpler CUDA decoding setup.

read1 min views36 publishedJun 10, 2026

TorchCodec 0.14 is out! It is compatible with torch >= 2.11

. It comes with two major additions: a fast audio WavDecoder, and support for

HDR video decoding!

Fast wav decoder #

TorchCodec now has a dedicated WavDecoder for decoding WAV files. It bypasses FFmpeg entirely and reads WAV data directly, resulting in significantly faster decoding. It supports multiple sample formats (int16, int32, float32, etc.), and can decode from files, bytes, or file-like objects.

from torchcodec.decoders import WavDecoder

decoder = WavDecoder("audio.wav")
samples = decoder.get_all_samples()  # AudioSamples with data and sample_rate

HDR Video Decoding #

VideoDecoder

now supports HDR (High Dynamic Range) video decoding without losing precision. When output_dtype=torch.float32

is specified, the decoder outputs RGB float32 frames in [0, 1]

, preserving the full HDR color range. This is supported for both CPU and CUDA!

import torch
from torchcodec.decoders import VideoDecoder

decoder = VideoDecoder("hdr_video.mp4", output_dtype=torch.float32)
frame = decoder[0]  # Full HDR precision in float32

Other Improvements #

Improved audio seeking:seeking is now much faster (AudioDecoder

#1449)Dropped NPP dependency:TorchCodec

no longer depends on NVIDIA's NPP library, which will simplify installing and using TorchCodec for CUDA decoding.

── more in #developer-tools 4 stories · sorted by recency
── more on @meta 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/torchcodec-0-14-hdr-…] indexed:0 read:1min 2026-06-10 ·