fix: use -1 instead of -2 for video preview scaling

This commit is contained in:
sxyazi 2024-12-07 23:06:44 +08:00
parent f07e99d1b3
commit c85921e81e
No known key found for this signature in database

View file

@ -56,7 +56,7 @@ function M:preload(job)
"-i", tostring(job.file.url), "-i", tostring(job.file.url),
"-vframes", 1, "-vframes", 1,
"-q:v", qv, "-q:v", qv,
"-vf", string.format("scale='min(%d,iw)':-2:flags=fast_bilinear", PREVIEW.max_width), "-vf", string.format("scale='min(%d,iw)':-1:flags=fast_bilinear", PREVIEW.max_width),
"-f", "image2", "-f", "image2",
"-y", tostring(cache), "-y", tostring(cache),
}):status() }):status()