mirror of
https://github.com/joshuaboniface/rffmpeg.git
synced 2026-01-23 02:24:03 +00:00
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:
parent
bd277855e8
commit
9bd28ea079
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue