@@ -5,27 +5,27 @@ Installation Instructions
5
5
TorchCodec is only available on Linux for now. We plan to support other
6
6
platforms in the future.
7
7
8
- Installing torchcodec should be as simple as :
8
+ There are three steps to installing TorchCodec :
9
9
10
- .. code :: bash
10
+ 1. Install the latest stable version of PyTorch following the
11
+ `official instructions <https://pytorch.org/get-started/locally/ >`_. TorchCodec
12
+ requires `PyTorch 2.4 <https://pytorch.org/docs/2.4/ >`_.
11
13
12
- pip install torchcodec
14
+ 2. Install FFmpeg, if it's not already installed. Your Linux distribution probably
15
+ comes with FFmpeg pre-installed. TorchCodec supports all major FFmpeg versions
16
+ in [4, 7]. If FFmpeg is not already installed, or you need a later version, install
17
+ it with:
13
18
14
- You will need a working PyTorch installation, which you can install following
15
- the `official instructions <https://pytorch.org/get-started/locally/ >`_.
19
+ .. code :: bash
16
20
17
- You will also need FFmpeg installed on your system, and TorchCodec decoding
18
- capabilities are determined by your underlying FFmpeg installation. There are
19
- different options to install FFmpeg e.g.:
21
+ conda install ffmpeg
22
+ # or
23
+ conda install ffmpeg -c conda-forge
24
+ 3. Install TorchCodec:
20
25
21
- .. code :: bash
26
+ .. code :: bash
22
27
23
- conda install ffmpeg
24
- # or
25
- conda install ffmpeg -c conda-forge
26
-
27
- Your Linux distribution probably comes with FFmpeg pre-installed as well.
28
- TorchCodec supports all major FFmpeg version in [4, 7].
28
+ pip install torchcodec
29
29
30
30
Note that installation instructions may slightly change over time. The most
31
31
up-to-date instructions should be available from the `README
0 commit comments