File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,17 @@ def handle_quoted_arguments(command_args):
75
75
rffmpeg_command .append (arg )
76
76
rffmpeg_command .append (filter_complex_arg )
77
77
i += 2 # Skip the next argument as it's part of -filter_complex
78
-
78
+ elif arg == '-vf' and i + 1 < len (command_args ):
79
+ vf_arg = command_args [i + 1 ]
80
+
81
+ # Quote the filter complex string if it contains spaces, commas, or colons
82
+ if ' ' in vf_arg or ',' in vf_arg or ':' in vf_arg :
83
+ vf_arg = f'"{ vf_arg } "'
84
+
85
+ # Reassemble the -filter_complex argument
86
+ rffmpeg_command .append (arg )
87
+ rffmpeg_command .append (vf_arg )
88
+ i += 2 # Skip the next argument as it's part of -vf
79
89
# Append any other arguments as is
80
90
else :
81
91
rffmpeg_command .append (arg )
You can’t perform that action at this time.
0 commit comments