FFmpeg and PyTorch problem after second run
Author: rdbuCreated Aug 27, 2026Updated Aug 27, 2026
A strange problem here: I installed FFmpeg 8.0 and then whisperx, which installs dependent packages, including a correct version of PyTorch. The firstt time I run whisperx nothing goes wrong. Only the second time the error below comes up, despite the fact that I did not change the install:
C:\Users\[NAME]\AppData\Roaming\Python\Python313\site-packages\pyannote\audio\core\io.py:48: UserWarning:
torchcodec is not installed correctly so built-in audio decoding will fail. Solutions are:
* use audio preloaded in-memory as a {'waveform': (channel, time) torch.Tensor, 'sample_rate': int} dictionary;
* fix torchcodec installation. Error message was:
Could not load libtorchcodec. Likely causes:
1. FFmpeg is not properly installed in your environment. We support
versions 4, 5, 6 and 7.
2. The PyTorch version (2.8.0+cpu) is not compatible with
this version of TorchCodec. Refer to the version compatibility
table:
https://github.com/pytorch/torchcodec?tab=readme-ov-file#installing-torchcodec.
3. Another runtime dependency; see exceptions below.
The following exceptions were raised as we tried to load libtorchcodec:
[start of libtorchcodec loading traceback]
FFmpeg version 7: Could not find module 'C:\Users\Rik De Busser\AppData\Roaming\Python\Python313\site-packages\torchcodec\libtorchcodec_core7.dll' (or one of its dependencies). Try using the full path with constructor syntax.
FFmpeg version 6: Could not find module 'C:\Users\Rik De Busser\AppData\Roaming\Python\Python313\site-packages\torchcodec\libtorchcodec_core6.dll' (or one of its dependencies). Try using the full path with constructor syntax.
FFmpeg version 5: Could not find module 'C:\Users\Rik De Busser\AppData\Roaming\Python\Python313\site-packages\torchcodec\libtorchcodec_core5.dll' (or one of its dependencies). Try using the full path with constructor syntax.
FFmpeg version 4: Could not find module 'C:\Users\Rik De Busser\AppData\Roaming\Python\Python313\site-packages\torchcodec\libtorchcodec_core4.dll' (or one of its dependencies). Try using the full path with constructor syntax.
[end of libtorchcodec loading traceback].What am I missing?
Source: m-bain/whisperX