Skip to content

Commit

Permalink
set CREATE_NO_WINDOW flag for subprocess
Browse files Browse the repository at this point in the history
  • Loading branch information
kennedy0 committed Feb 1, 2021
1 parent 40119ad commit 335f8d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion windows/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,9 @@ def on_record_clicked(self):
log_file = self.create_log_file(video_file_path=file_name)
self.ffmpeg_process = subprocess.Popen(
ffmpeg_cmd,
creationflags=subprocess.CREATE_NO_WINDOW,
stdout=log_file,
stderr=subprocess.STDOUT,
stderr=log_file,
stdin=subprocess.PIPE,
)

Expand Down

0 comments on commit 335f8d1

Please sign in to comment.