ez-ffmpeg 0.12.1

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

fn main() {
    // Fetch and print all available video input devices (e.g., cameras)
    // These devices are typically used to capture video input from physical devices like webcams.
    get_input_video_devices()
        .unwrap()
        .iter()
        .for_each(|device| println!("camera: {device}"));

    // Fetch and print all available audio input devices (e.g., microphones)
    // These devices are typically used to capture audio input from physical devices like microphones.
    get_input_audio_devices()
        .unwrap()
        .iter()
        .for_each(|device| println!("microphone: {device}"));
}