fix: don't fail on videos with embedded images (#2590)

This commit is contained in:
ze0987 2025-04-08 13:47:09 +02:00 committed by GitHub
parent 2e5f5ae5a6
commit 99ea3b74c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -58,7 +58,7 @@ function M:preload(job)
"-skip_frame", "nokey", "-ss", ss,
"-an", "-sn", "-dn",
"-i", tostring(job.file.url),
"-map", "0:v", "-vframes", 1,
"-vframes", 1,
"-q:v", qv,
"-vf", string.format("scale=-1:'min(%d,ih)':flags=fast_bilinear", rt.preview.max_height),
"-f", "image2",