Skip to content
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

Question: - Is there any way to download the ffmpeg from the python. #6

Open
SohamTilekar opened this issue Jan 28, 2024 · 7 comments

Comments

@SohamTilekar
Copy link

I want to install the ffmpeg from directly python code Instead of using the subprocess.
And also to Save the final binary in the other folder.

@tikuma-lsuhsc
Copy link
Contributor

tikuma-lsuhsc commented Jan 28, 2024

Yes, but you need to reverse-engineer from __main__.py to piece together various functions in this package for your needs.

It was a deliberate decision for this library to not expose/document its inner mechanism so that the host site maintainers are properly credited. However, the project being open source, you are free to use any portion of the code as you wish (under GPL v2).

@FlorianEagox
Copy link

I want to install the ffmpeg from directly python code Instead of using the subprocess. And also to Save the final binary in the other folder.

Also trying to do this, seems a bit of a silly requirement. Don't know why you can't just include in the license that the maintainers must be creditiedd in anything that uses this project. Kinda useless as just a standalone CLI thing

@tikuma-lsuhsc
Copy link
Contributor

@FlorianEagox - 🤷 At this point, it is what it is. Even if I change my mind, I don't have enough time to work on it. If you propose a compelling API and implement it as a PR, I'll consider it.

@FlorianEagox
Copy link

word

@tikuma-lsuhsc
Copy link
Contributor

One more thing. static-ffmpeg package has evolved since its inception and I believe it downloads the ffmpeg from these servers. So, you can check it out.

@FlorianEagox
Copy link

Ooh okay, I'll give it a look, thanks a bunch

@tikuma-lsuhsc
Copy link
Contributor

tikuma-lsuhsc commented Mar 19, 2024

For those who wish to download & install in Python, you can study the source code in src/qt/wizard.py

This is the easiest to understand how to use _backend submodule.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants