From ce50dee3df01faf6e04c54f922bf88d76be9d589 Mon Sep 17 00:00:00 2001 From: supositware Date: Sun, 18 Apr 2021 21:22:35 +0200 Subject: [PATCH] Made it not look like trash --- commands/utility/vid2gif.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/utility/vid2gif.js b/commands/utility/vid2gif.js index 7a91d88f..472299a4 100644 --- a/commands/utility/vid2gif.js +++ b/commands/utility/vid2gif.js @@ -53,6 +53,7 @@ class vid2gifCommand extends Command { if (args.scale) ffmpegCommand.videoFilters('scale=iw/2:ih/2'); ffmpegCommand.fps(args.fps ? args.fps : 15); + ffmpegCommand.videoFilters('fps=10,scale=320:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse'); ffmpegCommand.output(`${os.tmpdir()}/${message.id}v2g.gif`); ffmpegCommand.run(); ffmpegCommand.on('error', (err, stdout, stderr) => {