mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2025-12-11 20:15:30 +01:00
* Complying with a pedantic Clippy * Solving duplicated directories events When creating a directory through MacOS's Finder, for some reason FSEvents receives 2 Create Folder events that we have to handle * Handling moving to trash bin and restoring on Mac Still missing the feature to restore a directory and its children * Now handling creation of empty files on MacOS * Enabling restore of directories and its children * Now working: moving a directory to another inside the same location * Now Indexer also remove file_paths not on fs * Enabling multiple file moves on location watcher * Fix Windows conditional compilation issues * Fixing cas_id generation and bumping some deps * Many Windows specific improvs and some refactors * Rust fmt * Using conditional compilation on extract inode function * Linux fixes and some MaterializedPath improvements * Rust fmt again * Introducing tick behavior on location watchers * Making LastFilePathIdManager more atomic * Some vscode launch configs for lldb debugger * Simplifying some lifetimes * Making all watchers more consistent
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
}