@@ -94,29 +94,40 @@ ffmpeg -f lavfi -i \
94
94
95
95
## Installing TorchCodec
96
96
97
- Note: if you're on MacOS, you'll need to [ build from source] ( ./CONTRIBUTING.md ) .
98
- The instructions below assume you're on Linux.
97
+ 1 . Install the latest stable version of PyTorch following the
98
+ [ official instructions] ( https://pytorch.org/get-started/locally/ ) . For other
99
+ versions, refer to the table below for compatibility between versions of
100
+ ` torch ` and ` torchcodec ` .
99
101
100
- 1 . Install the latest stable version of PyTorch following the
101
- [ official instructions ] ( https://pytorch.org/get-started/locally/ ) . TorchCodec
102
- requires [ PyTorch 2.4 ] ( https://pytorch.org/docs/2.4/ ) .
102
+ 2 . Install FFmpeg, if it's not already installed. Linux distributions usually
103
+ come with FFmpeg pre-installed . TorchCodec supports all major FFmpeg versions
104
+ in [ 4, 7 ] .
103
105
104
- 2 . Install FFmpeg, if it's not already installed. Your Linux distribution probably
105
- comes with FFmpeg pre-installed. TorchCodec supports all major FFmpeg versions
106
- in [ 4, 7] .
106
+ If FFmpeg is not already installed, or you need a more recent version, an
107
+ easy way to install it is to use ` conda ` :
107
108
108
- If FFmpeg is not already installed, or you need a later version, install it with:
109
+ ``` bash
110
+ conda install ffmpeg
111
+ # or
112
+ conda install ffmpeg -c conda-forge
113
+ ```
109
114
110
- ``` bash
111
- conda install ffmpeg
112
- # or
113
- conda install ffmpeg -c conda-forge
114
- ```
115
- 3. Install TorchCodec:
115
+ 3 . Install TorchCodec:
116
116
117
- ` ` ` bash
118
- pip install torchcodec
119
- ` ` `
117
+ ``` bash
118
+ pip install torchcodec
119
+ ```
120
+
121
+ The following table indicates the compatibility between versions of
122
+ ` torchcodec ` , ` torch ` and Python.
123
+
124
+ | ` torchcodec ` | ` torch ` | Python |
125
+ | ------------------ | ------------------ | ------------------- |
126
+ | ` main ` / ` nightly ` | ` main ` / ` nightly ` | ` >=3.9 ` , ` <=3.12 ` |
127
+ | not yet supported | ` 2.5 ` | ` >=3.9 ` , ` <=3.12 ` |
128
+ | ` 0.0.3 ` | ` 2.4 ` | ` >=3.8 ` , ` <=3.12 ` |
129
+
130
+ <details >
120
131
121
132
## Benchmark Results
122
133
@@ -134,10 +145,6 @@ encoded with libx264 and yuv420p pixel format.
134
145
135
146
We are actively working on the following features:
136
147
137
- - [Ship wheels for MacOS](https://github.com/pytorch/torchcodec/issues/111), so
138
- that MacOS users can ` pip install torchcodec` . For now this is only supported
139
- on Linux, but MacOS users can [build from source](./CONTRIBUTING.md).
140
- - [GPU decoding](https://github.com/pytorch/torchcodec/pull/58)
141
148
- [ Audio decoding] ( https://github.com/pytorch/torchcodec/issues/85 )
142
149
143
150
Let us know if you have any feature requests by [ opening an
0 commit comments