mirror of
https://github.com/joshuaboniface/rffmpeg.git
synced 2026-01-23 02:24:03 +00:00
Add connection timeout to SSH command
This commit is contained in:
parent
809e900588
commit
28b72c922a
1 changed files with 7 additions and 0 deletions
|
|
@ -147,6 +147,13 @@ rffmpeg_command = list()
|
|||
# Add SSH component
|
||||
rffmpeg_command.append('ssh')
|
||||
rffmpeg_command.append('-q')
|
||||
|
||||
# Set our connection timeouts, in case one of several remote machines is offline
|
||||
rffmpeg_command.append('-o')
|
||||
rffmpeg_command.append('ConnectTimeout=1')
|
||||
rffmpeg_command.append('-o')
|
||||
rffmpeg_command.append('ConnectionAttempts=1')
|
||||
|
||||
for arg in config['remote_args']:
|
||||
if arg:
|
||||
rffmpeg_command.append(arg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue