Release TorchCodec 0.14: HDR Video Decoding for CPU & CUDA, and Fast Wav Decoder · meta-pytorch/torchcodec · GitHub
//releases/show" data-turbo-transient="true" />
= 2.11. It comes with two major additions: a fast audio WavDecoder, and support for HDR video decoding!<br>Fast wav decoder<br>TorchCodec now has a de..." />= 2.11. It comes with two major additions: a fast audio WavDecoder, and support for HDR video decoding!<br>Fast wav decoder<br>TorchCodec now has a de..." />
Skip to content
Search or jump to...
Search code, repositories, users, issues, pull requests...
-->
Search
Clear
Search syntax tips
Provide feedback
--><br>We read every piece of feedback, and take your input very seriously.
Include my email address so I can be contacted
Cancel
Submit feedback
Saved searches
Use saved searches to filter your results more quickly
-->
Name
Query
To see all available qualifiers, see our documentation.
Cancel
Create saved search
Sign in
//releases/show;ref_cta:Sign up;ref_loc:header logged out"}"<br>Sign up
Appearance settings
Resetting focus
You signed in with another tab or window. Reload to refresh your session.<br>You signed out in another tab or window. Reload to refresh your session.<br>You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
{{ message }}
meta-pytorch
torchcodec
Public
Notifications<br>You must be signed in to change notification settings
Fork<br>106
Star<br>1.1k
TorchCodec 0.14: HDR Video Decoding for CPU & CUDA, and Fast Wav Decoder
Latest
Latest
Compare
Choose a tag to compare
Sorry, something went wrong.
Filter
Loading
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
No results found
View all tags
NicolasHug
released this
03 Jun 13:02
·
8 commits
to main<br>since this release
v0.14.0
9f9ed92
This commit was created on GitHub.com and signed with GitHub’s verified signature .
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.
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")<br>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. 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<br>from torchcodec.decoders import VideoDecoder
decoder = VideoDecoder("hdr_video.mp4", output_dtype=torch.float32)<br>frame = decoder[0] # Full HDR precision in float32
Read more in our docs.
⚠️ This feature is in beta stage, so behavior may slightly change depending on user feedback. Let us know if you encounter any issue!
Other Improvements
Improved audio seeking : AudioDecoder seeking is now much faster (#1449)
Dropped NPP dependency : TorchCodec no longer depends on NVIDIA's NPP library, which will simplify installing and using TorchCodec for CUDA decoding.
Bug Fixes
Fix a rare crash scenario during process teardown with the CUDA decoder (#1441)
Fix CUDA decoding of videos with odd dimensions(#1462)
Assets
Loading
Uh oh!
There was an error while loading. Please reload this page.
-->
🎉<br>sh202603, mollyxu, zduanmu-netflix, and scotts reacted with hooray emoji
All reactions
🎉<br>4 reactions
4 people reacted
You can’t perform that action at this time.