pytorch / torchcodec

PyTorch video decoding
BSD 3-Clause "New" or "Revised" License
81 stars 9 forks source link

Allow to specify a path for ffmpeg binary #265

Open gdippolito opened 1 month ago

gdippolito commented 1 month ago

🚀 The feature

Hello! Thanks for the project.

It would be nice to be able to specify a different path for the ffmpeg binary that will be loaded by torchcodec. If a different binary is provided we could perhaps avoid some system checks to libavutil to also allow users to use static builds of ffmpeg.

Motivation, pitch

I think this feature will provide the following benefit:

ahmadsharif1 commented 1 month ago

There are multiple .so files that libtorchcodec.so needs. avutil, avcodec, etc. are all libraries that libtorchcodec.so needs.

You could probably try LD_PRELOAD= python Githubissues.

  • Githubissues is a development platform for aggregating issues.