3 unstable releases

0.2.1 Apr 10, 2023
0.2.0 Apr 8, 2023
0.1.0 Jan 27, 2023

#11 in #thumbnail

24 downloads per month
Used in paferafileserver

WTFPL license

9KB
188 lines

ffthumb

Safe ffmpegthumbnailer wrapper for Rust

extern crate ffthumb;

use std::{
  fs::File,
  io::{stdout, Write},
};

use ffthumb::Thumbnailer;

fn main() {
  let mut th = Thumbnailer::builder().finalize();
  File::create("thumbnail.png")
    .unwrap()
    .write(
      th.generate("bad_apple.mkv", Some(25), None)
        .unwrap()
        .as_slice()
    )
    .unwrap();
}

Dependencies

~230KB