Update extract.js

This commit is contained in:
Namhyeon Go 2023-07-05 02:10:58 +09:00 committed by GitHub
parent e24b3cbbda
commit 3059c07b88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,7 @@ function extract(req,res,next) {
ffmpegParams.outputOptions=[];
switch (preset) {
case "1":
ffmpegParams.outputOptions.push(`-vf scale=720:400:force_original_aspect_ratio=decrease`);
ffmpegParams.outputOptions.push(`-vf fps=${fps},scale=720:400:force_original_aspect_ratio=decrease`);
ffmpegParams.outputOptions.push(`-f image2`);
break;
default: