Function shepherd::run

source · []
pub fn run(
    input: impl AsRef<Path>,
    output: impl AsRef<Path>,
    args: &[&str],
    hosts: Vec<&str>,
    seconds: Option<&str>,
    tmp_dir: Option<&str>,
    keep: bool
) -> Result<()>
Expand description

Starts the whole operation and cleans up afterwards.

Arguments

  • input - The path to the input file.
  • output - The path to the output file.
  • args - Arguments to ffmpeg for chunk encoding.
  • hosts - Comma-separated list of hosts.
  • seconds - The video chunk length.
  • tmp_dir - The path to the local temporary directory.
  • keep - Whether to keep temporary files on hosts (no cleanup).