ez-ffmpeg 0.11.0

A safe and ergonomic Rust interface for FFmpeg integration, designed for ease of use.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use ez_ffmpeg::FfmpegContext;

fn main() {
    // Build the FFmpeg context with the input file
    FfmpegContext::builder()
        // Specify the input video file
        .input("test.mp4")
        // Apply the scale filter to change resolution
        // scale=1280:-1 keeps the aspect ratio by adjusting height automatically
        .filter_desc("scale=1280:-1")
        // Specify the output video file
        .output("output.mp4")
        // Build the context, start the process and wait for completion
        .build().unwrap()
        .start().unwrap()
        .wait().unwrap();
}