change video preview format to webp

feat/vaults
Tomáš Mládek 2022-02-03 16:54:11 +01:00
parent ba02f20dc2
commit 6b70d706fa
No known key found for this signature in database
GPG Key ID: ED21612889E75EC5
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ impl<'a> Previewable for VideoPath<'a> {
let duration = String::from_utf8_lossy(&duration_cmd.stdout)
.trim()
.parse::<f64>()?;
let outfile = tempfile::Builder::new().suffix(".png").tempfile()?;
let outfile = tempfile::Builder::new().suffix(".webp").tempfile()?;
let thumbnail_cmd = Command::new("ffmpeg")
.args(["-i", &self.0.to_string_lossy()])
.args(["-vframes", "1"])