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 toffmpeg
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).