pub async fn chunked_encode(
job: EncodeJob,
chunk_seconds: f64,
parallel: usize,
) -> Result<EncodeResult>Expand description
Encode a source in chunks and concatenate the results.
Splits the source into chunk_seconds-long segments, encodes each segment
independently using job as a template (overriding its input with the
original source and injecting -ss/-t for each chunk), then concatenates
the encoded chunks into job.output.
parallel controls the maximum number of concurrent chunk encodes.