From 44962316bf5985440e09236232aaf95479a26360 Mon Sep 17 00:00:00 2001
From: loicbersier <loic.bersier1@gmail.com>
Date: Sat, 12 Oct 2019 17:59:21 +0200
Subject: [PATCH] remove useless -r and make container format mp4

---
 commands/fun/vidshittifier.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/commands/fun/vidshittifier.js b/commands/fun/vidshittifier.js
index 3dc5d94..0712e1c 100644
--- a/commands/fun/vidshittifier.js
+++ b/commands/fun/vidshittifier.js
@@ -39,7 +39,7 @@ class vidshittifierCommand extends Command {
 	}
 
 	async exec(message, args) {
-		let input = `${os.tmpdir()}/${message.id}.mp4`;
+		let input = `${os.tmpdir()}/${message.id}`;
 		let output = `${os.tmpdir()}/Shittifyed${message.id}.mp4`;
 		let compression;
 		if (args.compression == 1) {
@@ -67,7 +67,7 @@ class vidshittifierCommand extends Command {
 		}
 
 		function shittifie() {
-			exec(`ffmpeg -i ${input} ${option} -vcodec libx264 -r 5 -r 15 ${output}`)
+			exec(`ffmpeg -i ${input} ${option} -vcodec libx264 -r 15 -f mp4 ${output}`)
 				.then(() => {
 					loadingmsg.delete();
 					message.delete();