mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-20 11:49:11 +00:00
7e4ed2b547
* Normalize PATH and XDG envvars on Linux * Fix normalize_xdg_environment * Replace custom Desktop file parsers with Glib * Fix AppImage env influencing external apps - Normalize GStream plugin path * Fix macos pulling linux deps * Attempt to fix gnome apps failing to launch - Fix incorrect logic in `normalize_pathlist` * Ensure empty envvars are not set * Revert AppImage ovewritten GTK specific variables - `normalize_pathlist` now prefers entries with less priority when dealing with repeated entries, this is not compatible with the default behavior, but it is a more sane approach IMHO * Remove 32-bit libs from release CI build host * Remove 32-bit from github runner 2 attempt - Remove deprecated vscode config * Remove libc6-i386 * [ENG-916] Implement `Open With` logic compatible with macOS < 12 * Add some missing gstreamer deps in Linux * Replace opener with Glib API * Fix reveal opening file instead of dir - Improve Open With logic in Windows - Expose functions to test if app is in a flatpak, snap or appimage --------- Co-authored-by: Brendan Allan <brendonovich@outlook.com> |
||
---|---|---|
.. | ||
src | ||
.gitignore | ||
Cargo.toml | ||
README.md |
FFmpeg Thumbnailer RS
Rust implementation of a thumbnail generation for video files using FFmpeg. Based on https://github.com/dirkvdb/ffmpegthumbnailer
For now only implements the minimum API for Spacedrive needs. PRs are welcome
Usage
use ffmpegthumbnailer_rs::{to_thumbnail, ThumbnailerError};
#[tokio::main]
async fn main() -> Result<(), ThumbnailerError> {
to_thumbnail("input.mp4", "output.webp", 256, 100.0).await
}
Or you can use a builder to change the default options
use ffmpegthumbnailer_rs::{ThumbnailerBuilder, ThumbnailerError};
#[tokio::main]
async fn main() -> Result<(), ThumbnailerError> {
let thumbnailer = ThumbnailerBuilder::new()
.width_and_height(420, 315)
.seek_percentage(0.25)?
.with_film_strip(false)
.quality(80.0)?
.build();
thumbnailer.process("input.mp4", "output.webp").await
}