Update extract.js
This commit is contained in:
parent
c27f948606
commit
d63bb584be
|
@ -49,10 +49,9 @@ function extract(req,res,next) {
|
||||||
ffmpegParams.outputOptions=[];
|
ffmpegParams.outputOptions=[];
|
||||||
switch (preset) {
|
switch (preset) {
|
||||||
case "1":
|
case "1":
|
||||||
ffmpegParams.outputOptions.push(`-vf scale='min(400, iw):min(400, ih)':force_original_aspect_ratio=decrease`);
|
ffmpegParams.outputOptions.push(`-vf fps=${fps}`);
|
||||||
ffmpegParams.outputOptions.push(`-f image2`);
|
ffmpegParams.outputOptions.push(`-f image2`);
|
||||||
ffmpegParams.outputOptions.push(`-vframes 1`);
|
ffmpegParams.outputOptions.push(`-vframes 1`);
|
||||||
ffmpegParams.outputOptions.push(`-y`);
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ffmpegParams.outputOptions.push(`-vf fps=${fps}`);
|
ffmpegParams.outputOptions.push(`-vf fps=${fps}`);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user