From 8e4f55ebfab5427a50de0125aca4009a997cca0e Mon Sep 17 00:00:00 2001 From: Dan-Flores Date: Tue, 28 Oct 2025 09:22:44 -0400 Subject: [PATCH 1/3] Update err msg to say 8 without caveat --- src/torchcodec/_core/ops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: From c6d1190520e566b6fc19da2b8535193445ad642c Mon Sep 17 00:00:00 2001 From: Dan-Flores Date: Tue, 28 Oct 2025 09:23:27 -0400 Subject: [PATCH 2/3] commands installl ffmpeg<9 --- CONTRIBUTING.md | 2 +- README.md | 15 +++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6c42e98f2..869e9f243 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<9" -c conda-forge ``` ### Clone and build diff --git a/README.md b/README.md index 6c1721036..32954db46 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<9" # or - conda install "ffmpeg<8" -c conda-forge + conda install "ffmpeg<9" -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<9" # or - conda install "ffmpeg<8" -c conda-forge + conda install "ffmpeg<9" -c conda-forge ``` After installing FFmpeg make sure it has NVDEC support when you list the supported From f8046727a06b0951f2130a8f1fe6144fc19b8506 Mon Sep 17 00:00:00 2001 From: Dan-Flores Date: Tue, 28 Oct 2025 09:38:54 -0400 Subject: [PATCH 3/3] remove <9 --- CONTRIBUTING.md | 2 +- README.md | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 869e9f243..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<9" -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 32954db46..595ebb5c2 100644 --- a/README.md +++ b/README.md @@ -114,9 +114,9 @@ ffmpeg -f lavfi -i \ easy way to install it is to use `conda`: ```bash - conda install "ffmpeg<9" + conda install "ffmpeg" # or - conda install "ffmpeg<9" -c conda-forge + conda install "ffmpeg" -c conda-forge ``` 3. Install TorchCodec: @@ -154,9 +154,9 @@ format you want. Refer to Nvidia's GPU support matrix for more details easy way to install it is to use `conda`: ```bash - conda install "ffmpeg<9" + conda install "ffmpeg" # or - conda install "ffmpeg<9" -c conda-forge + conda install "ffmpeg" -c conda-forge ``` After installing FFmpeg make sure it has NVDEC support when you list the supported