mirror of
https://github.com/joshuaboniface/rffmpeg.git
synced 2026-01-23 10:25:33 +00:00
Add support for full SSH paths
For cases where the SSH command on the $PATH might not be ideal, allow the user to override this with a full path in the config. Addresses #10
This commit is contained in:
parent
107092d539
commit
1a0e9f0d2f
2 changed files with 6 additions and 1 deletions
|
|
@ -74,6 +74,7 @@ try:
|
|||
"remote_hosts": o_config["rffmpeg"]["remote"]["hosts"],
|
||||
"remote_user": o_config["rffmpeg"]["remote"]["user"],
|
||||
"remote_args": o_config["rffmpeg"]["remote"]["args"],
|
||||
"ssh_command": o_config["rffmpeg"]["commands"]["ssh"],
|
||||
"pre_commands": o_config["rffmpeg"]["commands"]["pre"],
|
||||
"ffmpeg_command": o_config["rffmpeg"]["commands"]["ffmpeg"],
|
||||
"ffprobe_command": o_config["rffmpeg"]["commands"]["ffprobe"],
|
||||
|
|
@ -208,7 +209,7 @@ def setup_remote_command(target_host):
|
|||
rffmpeg_ffmpeg_command = list()
|
||||
|
||||
# Add SSH component
|
||||
rffmpeg_ssh_command.append("ssh")
|
||||
rffmpeg_ssh_command.append(config["ssh_command"])
|
||||
rffmpeg_ssh_command.append("-q")
|
||||
|
||||
# Set our connection timeouts, in case one of several remote machines is offline
|
||||
|
|
|
|||
|
|
@ -43,6 +43,10 @@ rffmpeg:
|
|||
|
||||
# Remote command configuration
|
||||
commands:
|
||||
# By default rffmpeg uses $PATH to find the "ssh" program; use this option to set a full path
|
||||
# to an SSH binary if you want to override the default.
|
||||
ssh: "ssh"
|
||||
|
||||
# A YAML list of prefixes to the ffmpeg command (e.g. sudo, nice, etc.),
|
||||
# one line per space-separated command element.
|
||||
pre:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue