Fix a bug where pipe symbols break execution

When a pipe symbol is introduced in any ffmpeg flag bash tries to pipe
the output to the second half of the command instead of passing it to
ffmpeg. Therefore it is necessary to escape
This commit is contained in:
52462 2020-07-11 01:42:24 +02:00
parent bd277855e8
commit 9bd28ea079

View file

@ -266,7 +266,7 @@ def setup_command(target_host):
# Parse and re-quote any problematic arguments
for arg in cli_ffmpeg_args:
# Match bad shell characters: * ( ) whitespace
if re.search('[*()\s]', arg):
if re.search('[*()\s|]', arg):
rffmpeg_command.append('"{}"'.format(arg))
else:
rffmpeg_command.append('{}'.format(arg))