async-ffmpeg-sidecar 0.0.4

Wrap a standalone FFmpeg binary in an intiutive Stream interface.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use async_ffmpeg_sidecar::command::FfmpegCommand;
use futures_util::stream::StreamExt;

#[tokio::main]
async fn main() {
  let mut child = FfmpegCommand::new()
    .arg("-report")
    .testsrc()
    .rawvideo()
    .print_command()
    .spawn()
    .unwrap();
  let count = child.stream().unwrap().filter_progress().count().await;

  assert!(count <= 1);
}