limit video thumbnails to max 300s into a video file

(didn't realize the majority of the time is spent seeking!)
feat/vaults
Tomáš Mládek 2022-03-20 23:11:38 +01:00
parent 4271107cbb
commit 0213b3c9c1
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ impl<'a> Previewable for VideoPath<'a> {
vec![]
})
.args(["-vframes", "1"])
.args(["-ss", &(duration / 2.0).to_string()])
.args(["-ss", &(300f64.min(duration / 4.0)).to_string()])
.arg(&*outfile.path().to_string_lossy())
.arg("-y")
.output()?;