Rate this Page
★ ★ ★ ★ ★

Interactive examples#

Decoding#

Decoding a video with VideoDecoder

Decoding a video with VideoDecoder

Decoding images

Decoding images

Decoding audio streams with AudioDecoder

Decoding audio streams with AudioDecoder

Accelerated video decoding on GPUs with CUDA and NVDEC

Accelerated video decoding on GPUs with CUDA and NVDEC

Streaming data through file-like support

Streaming data through file-like support

Exact vs Approximate seek mode: Performance and accuracy comparison

Exact vs Approximate seek mode: Performance and accuracy comparison

How to sample video clips

How to sample video clips

Parallel video decoding: multi-processing and multi-threading

Parallel video decoding: multi-processing and multi-threading

TorchCodec Performance Tips and Best Practices

TorchCodec Performance Tips and Best Practices

Decoding with custom frame mappings

Decoding with custom frame mappings

Decoder Transforms: Applying transforms during decoding

Decoder Transforms: Applying transforms during decoding

Decoding HDR videos

Decoding HDR videos

Decoding: low-level APIs (beta)#

Build your own decoding pipeline

Build your own decoding pipeline

Multi-threaded decoding pipelines

Multi-threaded decoding pipelines

Raw frames and raw audio samples

Raw frames and raw audio samples

Low-level APIs and CUDA streams synchronization

Low-level APIs and CUDA streams synchronization

Encoding#

Encoding images

Encoding images

Encoding audio samples with AudioEncoder

Encoding audio samples with AudioEncoder

Encoding video with the Encoder

Encoding video with the Encoder

Encoding audio and video streams with the Encoder

Encoding audio and video streams with the Encoder

Migrating from torchvision#

Migrating from TorchVision to TorchCodec

Migrating from TorchVision to TorchCodec

Gallery generated by Sphinx-Gallery