@@ -2,21 +2,25 @@ Welcome to the TorchCodec documentation!
22========================================
33
44TorchCodec is a Python library for decoding video and audio data into PyTorch
5- tensors, on CPU and CUDA GPU. It aims to be fast, easy to use, and well
6- integrated into the PyTorch ecosystem. If you want to use PyTorch to train ML
7- models on videos and audio, TorchCodec is how you turn these into data.
5+ tensors, on CPU and CUDA GPU. It also supports audio encoding, and video encoding will come soon!
6+ It aims to be fast, easy to use, and well integrated into the PyTorch ecosystem.
7+ If you want to use PyTorch to train ML models on videos and audio, TorchCodec is
8+ how you turn these into data.
89
910We achieve these capabilities through:
1011
1112* Pythonic APIs that mirror Python and PyTorch conventions.
12- * Relying on `FFmpeg <https://www.ffmpeg.org/ >`_ to do the decoding. TorchCodec
13- uses the version of FFmpeg you already have installed. FMPEG is a mature
14- library with broad coverage available on most systems. It is, however, not
15- easy to use. TorchCodec abstracts FFmpeg's complexity to ensure it is used
16- correctly and efficiently.
13+ * Relying on `FFmpeg <https://www.ffmpeg.org/ >`_ to do the decoding / encoding.
14+ TorchCodec uses the version of FFmpeg you already have installed. FMPEG is a
15+ mature library with broad coverage available on most systems. It is, however,
16+ not easy to use. TorchCodec abstracts FFmpeg's complexity to ensure it is
17+ used correctly and efficiently.
1718* Returning data as PyTorch tensors, ready to be fed into PyTorch transforms
1819 or used directly to train models.
1920
21+ Installation instructions
22+ ^^^^^^^^^^^^^^^^^^^^^^^^^
23+
2024.. grid :: 3
2125
2226 .. grid-item-card :: :octicon:`file-code;1em`
@@ -27,46 +31,64 @@ We achieve these capabilities through:
2731
2832 How to install TorchCodec
2933
34+ Decoding
35+ ^^^^^^^^
36+
37+ .. grid :: 3
38+
3039 .. grid-item-card :: :octicon:`file-code;1em`
3140 Getting Started with TorchCodec
3241 :img-top: _static/img/card-background.svg
33- :link: generated_examples/basic_example.html
42+ :link: generated_examples/decoding/ basic_example.html
3443 :link-type: url
3544
3645 A simple video decoding example
3746
3847 .. grid-item-card :: :octicon:`file-code;1em`
3948 Audio Decoding
4049 :img-top: _static/img/card-background.svg
41- :link: generated_examples/audio_decoding.html
50+ :link: generated_examples/decoding/ audio_decoding.html
4251 :link-type: url
4352
4453 A simple audio decoding example
4554
4655 .. grid-item-card :: :octicon:`file-code;1em`
4756 GPU decoding
4857 :img-top: _static/img/card-background.svg
49- :link: generated_examples/basic_cuda_example.html
58+ :link: generated_examples/decoding/ basic_cuda_example.html
5059 :link-type: url
5160
5261 A simple example demonstrating CUDA GPU decoding
5362
5463 .. grid-item-card :: :octicon:`file-code;1em`
5564 Streaming video
5665 :img-top: _static/img/card-background.svg
57- :link: generated_examples/file_like.html
66+ :link: generated_examples/decoding/ file_like.html
5867 :link-type: url
5968
6069 How to efficiently decode videos from the cloud
6170
6271 .. grid-item-card :: :octicon:`file-code;1em`
6372 Clip sampling
6473 :img-top: _static/img/card-background.svg
65- :link: generated_examples/sampling.html
74+ :link: generated_examples/decoding/ sampling.html
6675 :link-type: url
6776
6877 How to sample regular and random clips from a video
6978
79+ Encoding
80+ ^^^^^^^^
81+
82+ .. grid :: 3
83+
84+ .. grid-item-card :: :octicon:`file-code;1em`
85+ Audio Encoding
86+ :img-top: _static/img/card-background.svg
87+ :link: generated_examples/encoding/audio_encoding.html
88+ :link-type: url
89+
90+ How encode audio samples
91+
7092.. toctree ::
7193 :maxdepth: 1
7294 :caption: TorchCodec documentation
@@ -92,4 +114,5 @@ We achieve these capabilities through:
92114
93115 api_ref_torchcodec
94116 api_ref_decoders
117+ api_ref_encoders
95118 api_ref_samplers
0 commit comments