remove useless -r and make container format mp4
This commit is contained in:
parent
c4cc7f72cc
commit
44962316bf
1 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ class vidshittifierCommand extends Command {
|
||||||
}
|
}
|
||||||
|
|
||||||
async exec(message, args) {
|
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 output = `${os.tmpdir()}/Shittifyed${message.id}.mp4`;
|
||||||
let compression;
|
let compression;
|
||||||
if (args.compression == 1) {
|
if (args.compression == 1) {
|
||||||
|
@ -67,7 +67,7 @@ class vidshittifierCommand extends Command {
|
||||||
}
|
}
|
||||||
|
|
||||||
function shittifie() {
|
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(() => {
|
.then(() => {
|
||||||
loadingmsg.delete();
|
loadingmsg.delete();
|
||||||
message.delete();
|
message.delete();
|
||||||
|
|
Loading…
Reference in a new issue