diff --git a/rffmpeg.py b/rffmpeg.py index fa53a43..bc6490c 100755 --- a/rffmpeg.py +++ b/rffmpeg.py @@ -259,8 +259,8 @@ def setup_remote_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): + # Match bad shell characters: * ' ( ) whitespace + if re.search("[*'()\s|\[\]]", arg): rffmpeg_ffmpeg_command.append('"{}"'.format(arg)) else: rffmpeg_ffmpeg_command.append("{}".format(arg))