Fix ffmpeg error in Linux

This commit is contained in:
Deniz Şafak
2025-05-10 01:12:37 +03:00
parent 7fff2f154c
commit f415c0d4d3
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -118,8 +118,10 @@ def create_process(cmd, stdin=None, text=True):
root.addHandler(handler)
root.setLevel(logging.INFO)
# Determine shell usage: use shell only for string commands
use_shell = isinstance(cmd, str)
kwargs = {
"shell": True,
"shell": use_shell,
"stdout": subprocess.PIPE,
"stderr": subprocess.STDOUT,
"bufsize": 1, # Line buffered