-
-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Misleading undocumented use of env var FFMPEG_BIN #101
Comments
Thanks for reporting, it helps knowing about cases where this logic didn't help. However, there are specific cases where it makes sense not to let I think the best way forward is to split This way, both use cases are supported. |
Thanks for acknowledging the issue; however there is something I'm not understanding, probably because I don't have in mind the same use cases you are contemplating. I see The way you are putting it, sounds like you see I would disagree with the second way of seeing it, because it suddenly changes the whole principle of this library, from a simple single-purpose "FFmpeg binary downloader" to "FFmpeg binary provider through different means" (which as mentioned, I believe that it makes more sense that the app itself handles the different ways to obtain it, because a 3rd-party library won't ever be able to cover all scenarios; for example my app gets the FFmpeg binary either from a custom HTTP repository, or if none is available from the path in a var named But of course all this is just my point of view! This is OSS, you're the author, and it's your library :-) so actually thanks a lot for writing it. (But please, I'd request mentioning usage of |
Hi, thanks for maintaining this library, it helps a lot to bring FFmpeg where no system install is available!
A small "anti-feature" request, which might be seen as a bug, follows:
Use case
I wrote my code such that it will try to load an FFmpeg program if it was supplied by the user with the env var
FFMPEG_BIN
. The code checks in case the user made a mistake and provided a path that doesn't exist, or is not an executable file, then a fallback is obtained from"ffmpeg-static"
.Imagine my surprise when
"ffmpeg-static"
points to the same path than the one provided by the user.Then of course the mystery gets solved when checking the source code and this is found:
What's wrong
The bug report here that this is an unexpected behavior (and a totally undocumented one, too).
"ffmpeg-static"
has only one intended job and that is to bring a static build of Fmpeg; providing alternative builds or paths should be left for the application.What's expected
"ffmpeg-static"
promises to bring a working FFmpeg binary, and does it well. This is also what docs in README and NPM talk about, which is quite reasonable job to expect from this library. Hijacking other env vars to provide additional search paths is arguably out of scope for this lib, and has unexpected consequences for higher-level code that might have fallback mechanisms in place.Thanks and have a good day.
The text was updated successfully, but these errors were encountered: