ffthumb

Crates.ioffthumb
lib.rsffthumb
version0.2.1
sourcesrc
created_at2023-01-27 01:18:31.147318
updated_at2023-04-10 19:54:39.284674
descriptionSafe libffmpegthumbnailer wrapper
homepagehttps://kirino.io
repositoryhttps://github.com/kirino-org/ffthumb
max_upload_size
id769324
size10,652
(lxrst)

documentation

README

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();
}
Commit count: 7

cargo fmt