simple-ffmpeg 1.0.0

Simple zero-dependency single-file Rust crate for generating videos with ffmpeg
Documentation
  • Coverage
  • 94.12%
    16 out of 17 items documented1 out of 12 items with examples
  • Size
  • Source code size: 8.71 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.69 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 12s Average build duration of successful builds.
  • all releases: 12s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • angelcaru

simple-ffmpeg

Simple zero-dependency single-file Rust crate for generating videos with ffmpeg In fact, this crate can even be used without cargo. Just download lib.rs and add it to your source tree as a module.

Basic Usage

use simple_ffmpeg as ffmpeg;

let mut ffmpeg = ffmpeg::start("out.mp4", WIDTH, HEIGHT, FPS)?;

let mut pixels = [0u32; WIDTH * HEIGHT]
for _ in 0..(DURATION * FPS) {
    // <draw frame into pixels array>

    ffmpeg.send_frame(&pixels)?;
}

ffmpeg.finalize()?;