#๐ How do i hide the ffmpeg console?
42 messages ยท Page 1 of 1 (latest)
@dreamy canyon
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Use CREATE_NO_WINDOW flag
Eg
subprocess.run(command, check=True, creationflags=subprocess.CREATE_NO_WINDOW)
Should do the job
lemme see
You know there's a ffmpeg wrapper lib for python btw, yes?
what
It'll make your life a tab easier
wdym
idk i dont even know what that means
A better way to use ffmpeg instead of subprocess.run
Although at core I guess they are doing the same thing, but for you as a user it gives you a mroe pythonic interface
doesnt matter
K
i guess
idk
all i know is that it surely works this way
since this has gui and stuff
and i made an installer for it
i just want the final product to work without the ffmpeg console
it seems to work now
Possibly just doing STDOUT=DEVNULL,STDERR=DEVNULL would work
If you compile it with pyinstaller or nuitka you can disable console
it's actually weird to me that a console can ever pop up... must be a windows thing.
but those use like idk how to say it
Bundle with pyinstaller or compile with nuitka*
the thing is
i include ffmpeg with the installer
cause the other modules just wont work
You can do it with nuitka and pyinstaller as well, bundle whatever you like
they can never find ffmpeg
Make distribution easier, and also kind of make getting the source code harder
(or much harder if you go nuitka way)
idk this is too complicated for me ๐
anyways thanks it seems to work like that
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.