Menu

Release TorchCodec 0.14: HDR Video Decoding for CPU & CUDA, and Fast Wav Decoder · meta-pytorch/torchcodec
📰

Release TorchCodec 0.14: HDR Video Decoding for CPU & CUDA, and Fast Wav Decoder · meta-pytorch/torchcodec

Hacker News·5 months ago
#hXmeSSO8
#github#decoding#decoder#torchcodec#float32
Reading 0:00
15s threshold

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.

<div data-snippet-clipboard-copy-content="from torchcodec.decoders import WavDecoder

decoder = WavDecoder("audio.wav") samples = decoder.get_all_samples() # AudioSamples with data and sample_rate"> from torchcodec . decoders import WavDecoder

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

Read more in our docs .

HDR Video Decoding

VideoDecoder now supports HDR (High Dynamic Range) video decoding without losing precision.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.