forked from Supositware/Haha-Yes
reencode av1 since discord don't support embed with it yet
This commit is contained in:
parent
9855987cbc
commit
19855f82f0
1 changed files with 2 additions and 5 deletions
|
@ -193,9 +193,8 @@ async function download(url, interaction, originalInteraction, format = undefine
|
|||
}
|
||||
|
||||
// If the video format is not one compatible with Discord, reencode it unless autocrop is choosen in which case it gets reencoded anyway.
|
||||
/* Update: Discord now support hevc
|
||||
if (!interaction.doAutocrop) {
|
||||
const bannedFormats = ['hevc'];
|
||||
const bannedFormats = ['av1'];
|
||||
const codec = await utils.getVideoCodec(output);
|
||||
|
||||
if (bannedFormats.includes(codec)) {
|
||||
|
@ -204,9 +203,7 @@ async function download(url, interaction, originalInteraction, format = undefine
|
|||
await utils.ffmpeg(['-i', oldOutput, '-vcodec', 'libx264', '-acodec', 'aac', output]);
|
||||
}
|
||||
}
|
||||
else
|
||||
*/
|
||||
if (interaction.doAutocrop && !compressInteraction.doCompress) {
|
||||
else if (interaction.doAutocrop && !compressInteraction.doCompress) {
|
||||
const oldOutput = output;
|
||||
output = `${os.tmpdir()}/autocrop${file}`;
|
||||
await utils.autoCrop(oldOutput, output);
|
||||
|
|
Loading…
Reference in a new issue