Update extract.js

This commit is contained in:
Namhyeon Go 2023-07-05 02:09:42 +09:00 committed by GitHub
parent a058ff073c
commit e24b3cbbda
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=[]; ffmpegParams.outputOptions=[];
switch (preset) { switch (preset) {
case "1": case "1":
ffmpegParams.outputOptions.push(`-vf fps=${fps}`); ffmpegParams.outputOptions.push(`-vf scale=720:400:force_original_aspect_ratio=decrease`);
ffmpegParams.outputOptions.push(`-f image2`); ffmpegParams.outputOptions.push(`-f image2`);
break; break;
default: default: