redid ffmpeg
This commit is contained in:
parent
16c1460620
commit
ac8f44b4c1
3 changed files with 772 additions and 625 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue