diff --git a/rffmpeg.py b/rffmpeg.py index 238a2cc..e2bd7b7 100755 --- a/rffmpeg.py +++ b/rffmpeg.py @@ -269,7 +269,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))