Skip to content

Cannot find FFmpeg DLLs by default #1108

@aboood40091

Description

@aboood40091

🐛 Describe the bug

Continuing from #912 as the underlying issue has not been fixed.
The issue is that torchcodec is not able to find FFmpeg DLLs, even if the FFmpeg bin folder is added to PATH.

Sample of the error:

[start of libtorchcodec loading traceback]
FFmpeg version 7: Could not find module 'C:\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:\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:\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:\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].

Currently, one fix, as recommended in this French comment, is to directly copy the DLLs into the torchcodec site-packages folder.

Versions

Using torch 2.8+cu128, torchcodec 0.7, and Python 3.13.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions