fix: cleanup formats and add opus, fixes #159

This commit is contained in:
C4illin 2024-09-30 15:51:11 +02:00
parent 6caa583c35
commit ae1dfafc9d
2 changed files with 28 additions and 0 deletions

View file

@ -1,5 +1,6 @@
import { exec } from "node:child_process"; import { exec } from "node:child_process";
// This could be done dynamically by running `ffmpeg -formats` and parsing the output // This could be done dynamically by running `ffmpeg -formats` and parsing the output
export const properties = { export const properties = {
from: { from: {
@ -80,6 +81,7 @@ export const properties = {
"bit", "bit",
"bitpacked", "bitpacked",
"bmv", "bmv",
"bmp",
"bonk", "bonk",
"boa", "boa",
"brender_pix", "brender_pix",
@ -206,7 +208,10 @@ export const properties = {
"jack", "jack",
"jacosub", "jacosub",
"jv", "jv",
"jpegls",
"jpeg",
"jxl", "jxl",
"kmsgrab",
"kux", "kux",
"kvag", "kvag",
"lavfi", "lavfi",
@ -287,17 +292,30 @@ export const properties = {
"okt", "okt",
"oma", "oma",
"omg", "omg",
"opus",
"openal", "openal",
"oss", "oss",
"osq", "osq",
"paf", "paf",
"pdv", "pdv",
"pam",
"pbm",
"pcx",
"pgmyuv",
"pgm",
"pgx",
"photocd",
"pictor",
"pjs", "pjs",
"plm", "plm",
"pmp", "pmp",
"png",
"ppm", "ppm",
"pp",
"psd",
"psm", "psm",
"psp", "psp",
"psxstr",
"pt36", "pt36",
"ptm", "ptm",
"pulse", "pulse",
@ -305,6 +323,7 @@ export const properties = {
"pvf", "pvf",
"qcif", "qcif",
"qcp", "qcp",
"qdraw",
"r3d", "r3d",
"rawvideo", "rawvideo",
"rco", "rco",
@ -347,6 +366,7 @@ export const properties = {
"sfx", "sfx",
"sfx2", "sfx2",
"sga", "sga",
"sgi",
"shn", "shn",
"siff", "siff",
"sln", "sln",
@ -372,6 +392,7 @@ export const properties = {
"sub", "sub",
"sup", "sup",
"svag", "svag",
"svg",
"svs", "svs",
"sw", "sw",
"swf", "swf",
@ -381,6 +402,8 @@ export const properties = {
"thd", "thd",
"thp", "thp",
"tiertexseq", "tiertexseq",
"tif",
"tiff",
"tmv", "tmv",
"truehd", "truehd",
"tta", "tta",
@ -431,6 +454,7 @@ export const properties = {
"way", "way",
"wc3movie", "wc3movie",
"webm", "webm",
"webp",
"webvtt", "webvtt",
"wow", "wow",
"wsaud", "wsaud",
@ -485,6 +509,7 @@ export const properties = {
"ast", "ast",
"au", "au",
"aud", "aud",
"av1",
"avi", "avi",
"avif", "avif",
"avs", "avs",

View file

@ -23,6 +23,9 @@ export const normalizeOutputFiletype = (filetype: string): string => {
return "jpg"; return "jpg";
case "latex": case "latex":
return "tex"; return "tex";
case "markdown_phpextra":
case "markdown_strict":
case "markdown_mmd":
case "markdown": case "markdown":
return "md"; return "md";
default: default: