limit video thumbnails to max 300s into a video file
(didn't realize the majority of the time is spent seeking!)feat/vaults
parent
4271107cbb
commit
0213b3c9c1
|
@ -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()?;
|
||||
|
|
Loading…
Reference in New Issue