Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Please add SW_HIDE to ffmpeg subprocess.Popen in windows, please #22627
Comments
|
We need this! |
|
Temporary solution: import subprocess
class ProxySubprocessPopen(subprocess.Popen):
if (sys.platform == "win32"):
# noinspection PyUnresolvedReferences
def _execute_child(self, args, executable, preexec_fn, close_fds,
cwd, env, universal_newlines,
startupinfo, *kwargs):
if startupinfo is None:
startupinfo = subprocess.STARTUPINFO()
startupinfo.dwFlags = 1
startupinfo.wShowWindow = 0
super(ProxySubprocessPopen, self)._execute_child(args, executable, preexec_fn, close_fds,
cwd, env, universal_newlines,
startupinfo, *kwargs)
subprocess.Popen = ProxySubprocessPopen |
If windows , please add (optionally):
pseudo code
https://github.com/ytdl-org/youtube-dl/blob/master/youtube_dl/postprocessor/ffmpeg.py#L230
for avoid console, if script started in NOT console :)