diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6c42e98f2..a33aa5025 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -30,7 +30,7 @@ Start by installing the **nightly** build of PyTorch following the Then, the easiest way to install the rest of the dependencies is to run: ```bash -conda install cmake pkg-config pybind11 "ffmpeg<8" -c conda-forge +conda install cmake pkg-config pybind11 "ffmpeg" -c conda-forge ``` ### Clone and build diff --git a/README.md b/README.md index 6c1721036..595ebb5c2 100644 --- a/README.md +++ b/README.md @@ -107,16 +107,16 @@ ffmpeg -f lavfi -i \ `torch` and `torchcodec`. 2. Install FFmpeg, if it's not already installed. Linux distributions usually - come with FFmpeg pre-installed. TorchCodec supports major FFmpeg versions - in [4, 7] on all platforms, and FFmpeg version 8 is supported on Mac and Linux. + come with FFmpeg pre-installed. TorchCodec supports supports all major FFmpeg versions + in [4, 8]. If FFmpeg is not already installed, or you need a more recent version, an easy way to install it is to use `conda`: ```bash - conda install "ffmpeg<8" + conda install "ffmpeg" # or - conda install "ffmpeg<8" -c conda-forge + conda install "ffmpeg" -c conda-forge ``` 3. Install TorchCodec: @@ -148,16 +148,15 @@ format you want. Refer to Nvidia's GPU support matrix for more details [here](https://developer.nvidia.com/video-encode-and-decode-gpu-support-matrix-new). 1. Install FFmpeg with NVDEC support. - TorchCodec with CUDA should work with FFmpeg versions in [4, 7] on all platforms, - and FFmpeg version 8 is supported on Linux. + TorchCodec with CUDA should work with FFmpeg versions in [4, 8]. If FFmpeg is not already installed, or you need a more recent version, an easy way to install it is to use `conda`: ```bash - conda install "ffmpeg<8" + conda install "ffmpeg" # or - conda install "ffmpeg<8" -c conda-forge + conda install "ffmpeg" -c conda-forge ``` After installing FFmpeg make sure it has NVDEC support when you list the supported diff --git a/src/torchcodec/_core/ops.py b/src/torchcodec/_core/ops.py index 32995c964..43641e9b1 100644 --- a/src/torchcodec/_core/ops.py +++ b/src/torchcodec/_core/ops.py @@ -69,7 +69,7 @@ def load_torchcodec_shared_libraries(): raise RuntimeError( f"""Could not load libtorchcodec. Likely causes: 1. FFmpeg is not properly installed in your environment. We support - versions 4, 5, 6, and 7 on all platforms, and 8 on Mac and Linux. + versions 4, 5, 6, 7, and 8. 2. The PyTorch version ({torch.__version__}) is not compatible with this version of TorchCodec. Refer to the version compatibility table: