Skip to main content

Module batch_generation

Module batch_generation 

Source
Expand description

Example: Batch proxy generation.

use oximedia_proxy::{BatchProxyGenerator, ProxyGenerationSettings};

let settings = ProxyGenerationSettings::quarter_res_h264();
let batch_generator = BatchProxyGenerator::new(settings);

let inputs = vec![
    (std::path::PathBuf::from("clip1.mov"), std::path::PathBuf::from("proxy1.mp4")),
    (std::path::PathBuf::from("clip2.mov"), std::path::PathBuf::from("proxy2.mp4")),
];

let results = batch_generator.generate_batch(&inputs).await?;

Functionsยง

batch_generate
Generate proxies for multiple files in parallel.
batch_generate_with_progress
Generate proxies with progress reporting.