CMD list handled differently when shell=True

This commit is contained in:
2026-03-05 23:03:59 +01:00
parent 1dc3be801b
commit 15e19fa056
4 changed files with 121 additions and 107 deletions

View File

@@ -43,15 +43,18 @@ def _interpolate(
cmd = [
"vspipe",
"-c", "y4m",
vapoursynth_file,
f'"{vapoursynth_file}"',
"-", "|",
"ffmpeg", "-v", "quiet", "-stats",
"-i", "-",
"-c:v", "hevc_nvenc",
"-qp", "5",
interpolate_output
f'"{interpolate_output}"'
]
if sys.platform == 'linux':
cmd = ' '.join(cmd)
try:
subprocess.run(cmd, shell=True, check=True)
except subprocess.CalledProcessError as e: