@@ -81,38 +81,45 @@ ffmpeg -f lavfi -i \
81
81
82
82
## Installing TorchCodec
83
83
84
- Note: if you're on MacOS, you'll need to [ build from source] ( ./CONTRIBUTING.md ) .
85
- Instructions below assume you're on Linux.
86
-
87
- First install the latest stable version of PyTorch following the [ official
84
+ We'll be providing wheels in the coming days so that you can just install
85
+ torchcodec using ` pip ` . For now, you can just build from source. You will need
86
+ the following dependencies:
87
+
88
+ - A C++ compiler+linker. This is typically available on a baseline Linux
89
+ installation already.
90
+ - cmake
91
+ - pkg-config
92
+ - FFmpeg
93
+ - PyTorch nightly
94
+
95
+ Start by installing PyTorch following the [ official
88
96
instructions] ( https://pytorch.org/get-started/locally/ ) .
89
97
90
- Then:
98
+ Then, the easiest way to install the rest of the dependencies is to run :
91
99
92
100
``` bash
93
- pip install torchcodec
101
+ conda install cmake pkg-config ffmpeg -c conda-forge
94
102
```
95
- You will also need FFmpeg installed on your system, and TorchCodec decoding
96
- capabilities are determined by your underlying FFmpeg installation. There are
97
- different options to install FFmpeg e.g.:
103
+
104
+ To clone and install the repo, run:
98
105
99
106
``` bash
100
- conda install ffmpeg
101
- # or
102
- conda install ffmpeg -c conda-forge
107
+ git clone
[email protected] :pytorch/torchcodec.git
108
+ # Or, using https instead of ssh: git clone https://github.com/pytorch/torchcodec.git
109
+ cd torchcodec
110
+
111
+ pip install -e " .[dev]" --no-build-isolation -vv
103
112
```
104
113
105
- Your Linux distribution probably comes with FFmpeg pre-installed as well.
106
114
TorchCodec supports all major FFmpeg version in [ 4, 7] .
107
115
108
-
109
116
## Planned future work
110
117
111
118
We are actively working on the following features:
112
119
120
+ - Ship wheels for Linux, so that Linux users can ` pip install torchcodec ` .
113
121
- [ Ship wheels for MacOS] ( https://github.com/pytorch/torchcodec/issues/111 ) , so
114
- that MacOS users can ` pip install torchcodec ` . For now this is only supported
115
- on Linux, but MacOS users can [ build from source] ( ./CONTRIBUTING.md ) .
122
+ that MacOS users can ` pip install torchcodec ` .
116
123
- [ GPU decoding] ( https://github.com/pytorch/torchcodec/pull/58 )
117
124
- [ Audio decoding] ( https://github.com/pytorch/torchcodec/issues/85 )
118
125
0 commit comments