Skip to main content
Ctrl+K
TorchCodec
TorchCodec
  • Installation 
  • Interactive examples
    • Decoding
    • Encoding
  • API Reference
    • torchcodec
    • torchcodec.decoders
    • torchcodec.encoders
    • torchcodec.samplers
    • torchcodec.transforms
  • Glossary
Go to pytorch.org
Ctrl+K
  • X
  • GitHub
  • Discourse
  • PyPi
  • Installation 
  • Interactive examples
    • Decoding
    • Encoding
  • API Reference
    • torchcodec
    • torchcodec.decoders
    • torchcodec.encoders
    • torchcodec.samplers
    • torchcodec.transforms
  • Glossary
Go to pytorch.org
Ctrl+K
  • X
  • GitHub
  • Discourse
  • PyPi

Section Navigation

  • torchcodec
    • Frame
    • FrameBatch
    • AudioSamples
  • torchcodec.decoders
    • VideoDecoder
    • AudioDecoder
    • VideoStreamMetadata
    • AudioStreamMetadata
    • set_cuda_backend
    • set_nvdec_cache_capacity
    • get_nvdec_cache_capacity
    • CpuFallbackStatus
  • torchcodec.encoders
    • Encoder
    • VideoStream
    • AudioStream
    • VideoEncoder
    • AudioEncoder
  • torchcodec.samplers
    • clips_at_regular_indices
    • clips_at_random_indices
    • clips_at_regular_timestamps
    • clips_at_random_timestamps
  • torchcodec.transforms
    • DecoderTransform
    • CenterCrop
    • RandomCrop
    • Resize
  • API Reference
Rate this Page
★ ★ ★ ★ ★

API Reference#

  • torchcodec
  • torchcodec.decoders
  • torchcodec.encoders
  • torchcodec.samplers
  • torchcodec.transforms
Rate this Page
★ ★ ★ ★ ★

previous

Encoding audio and video streams with the Encoder

next

torchcodec

Built with the PyData Sphinx Theme 0.15.4.

previous

Encoding audio and video streams with the Encoder

next

torchcodec

Edit on GitHub
Show Source

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources

Stay in touch for updates, event info, and the latest news

By submitting this form, I consent to receive marketing emails from the LF and its projects regarding their events, training, research, developments, and related announcements. I understand that I can unsubscribe at any time using the links in the footers of the emails I receive. Privacy Policy.

© PyTorch. Copyright © The Linux Foundation®. All rights reserved. The Linux Foundation has registered trademarks and uses trademarks. For more information, including terms of use, privacy policy, and trademark usage, please see our Policies page. Trademark Usage. Privacy Policy.

To analyze traffic and optimize your experience, we serve cookies on this site. By clicking or navigating, you agree to allow our usage of cookies. As the current maintainers of this site, Facebook’s Cookies Policy applies. Learn more, including about available controls: Cookies Policy.

© Copyright 2023-present, TorchCodec Contributors.

Created using Sphinx 7.2.6.

Built with the PyData Sphinx Theme 0.15.4.