redid ffmpeg

This commit is contained in:
C4illin 2024-05-25 00:42:54 +02:00
parent 16c1460620
commit ac8f44b4c1
3 changed files with 772 additions and 625 deletions

View file

@ -9,4 +9,17 @@ export const normalizeFiletype = (filetype: string): string => {
default:
return lowercaseFiletype;
}
}
export const normalizeOutputFiletype = (filetype: string): string => {
const lowercaseFiletype = filetype.toLowerCase();
switch (lowercaseFiletype) {
case "jpeg":
return "jpg";
case "mpeg4":
return "mp4";
default:
return lowercaseFiletype;
}
}