mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix: avoid upscaling for the video previewer
See also: - https://trac.ffmpeg.org/wiki/Scaling - https://superuser.com/questions/566998/how-can-i-fit-a-video-to-a-certain-size-but-dont-upscale-it-with-ffmpeg
This commit is contained in:
parent
adb1426539
commit
f07e99d1b3
1 changed files with 1 additions and 1 deletions
|
|
@ -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=%d:-2:flags=fast_bilinear", PREVIEW.max_width),
|
"-vf", string.format("scale='min(%d,iw)':-2:flags=fast_bilinear", PREVIEW.max_width),
|
||||||
"-f", "image2",
|
"-f", "image2",
|
||||||
"-y", tostring(cache),
|
"-y", tostring(cache),
|
||||||
}):status()
|
}):status()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue