Crates.io | ffthumb |
lib.rs | ffthumb |
version | 0.2.1 |
source | src |
created_at | 2023-01-27 01:18:31.147318 |
updated_at | 2023-04-10 19:54:39.284674 |
description | Safe libffmpegthumbnailer wrapper |
homepage | https://kirino.io |
repository | https://github.com/kirino-org/ffthumb |
max_upload_size | |
id | 769324 |
size | 10,652 |
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();
}