Update extract.js

This commit is contained in:
Namhyeon Go 2023-07-05 01:39:08 +09:00 committed by GitHub
parent 8864f1f910
commit c27f948606
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ function extract(req,res,next) {
format = "png"
ffmpegParams.outputOptions=[];
switch (preset) {
case "preset-1":
case "1":
ffmpegParams.outputOptions.push(`-vf scale='min(400, iw):min(400, ih)':force_original_aspect_ratio=decrease`);
ffmpegParams.outputOptions.push(`-f image2`);
ffmpegParams.outputOptions.push(`-vframes 1`);