mirror of
https://github.com/C4illin/ConvertX.git
synced 2025-10-23 04:52:18 +00:00
fix: cleanup formats and add opus, fixes #159
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { exec } from "node:child_process";
|
||||
|
||||
|
||||
// This could be done dynamically by running `ffmpeg -formats` and parsing the output
|
||||
export const properties = {
|
||||
from: {
|
||||
@@ -80,6 +81,7 @@ export const properties = {
|
||||
"bit",
|
||||
"bitpacked",
|
||||
"bmv",
|
||||
"bmp",
|
||||
"bonk",
|
||||
"boa",
|
||||
"brender_pix",
|
||||
@@ -206,7 +208,10 @@ export const properties = {
|
||||
"jack",
|
||||
"jacosub",
|
||||
"jv",
|
||||
"jpegls",
|
||||
"jpeg",
|
||||
"jxl",
|
||||
"kmsgrab",
|
||||
"kux",
|
||||
"kvag",
|
||||
"lavfi",
|
||||
@@ -287,17 +292,30 @@ export const properties = {
|
||||
"okt",
|
||||
"oma",
|
||||
"omg",
|
||||
"opus",
|
||||
"openal",
|
||||
"oss",
|
||||
"osq",
|
||||
"paf",
|
||||
"pdv",
|
||||
"pam",
|
||||
"pbm",
|
||||
"pcx",
|
||||
"pgmyuv",
|
||||
"pgm",
|
||||
"pgx",
|
||||
"photocd",
|
||||
"pictor",
|
||||
"pjs",
|
||||
"plm",
|
||||
"pmp",
|
||||
"png",
|
||||
"ppm",
|
||||
"pp",
|
||||
"psd",
|
||||
"psm",
|
||||
"psp",
|
||||
"psxstr",
|
||||
"pt36",
|
||||
"ptm",
|
||||
"pulse",
|
||||
@@ -305,6 +323,7 @@ export const properties = {
|
||||
"pvf",
|
||||
"qcif",
|
||||
"qcp",
|
||||
"qdraw",
|
||||
"r3d",
|
||||
"rawvideo",
|
||||
"rco",
|
||||
@@ -347,6 +366,7 @@ export const properties = {
|
||||
"sfx",
|
||||
"sfx2",
|
||||
"sga",
|
||||
"sgi",
|
||||
"shn",
|
||||
"siff",
|
||||
"sln",
|
||||
@@ -372,6 +392,7 @@ export const properties = {
|
||||
"sub",
|
||||
"sup",
|
||||
"svag",
|
||||
"svg",
|
||||
"svs",
|
||||
"sw",
|
||||
"swf",
|
||||
@@ -381,6 +402,8 @@ export const properties = {
|
||||
"thd",
|
||||
"thp",
|
||||
"tiertexseq",
|
||||
"tif",
|
||||
"tiff",
|
||||
"tmv",
|
||||
"truehd",
|
||||
"tta",
|
||||
@@ -431,6 +454,7 @@ export const properties = {
|
||||
"way",
|
||||
"wc3movie",
|
||||
"webm",
|
||||
"webp",
|
||||
"webvtt",
|
||||
"wow",
|
||||
"wsaud",
|
||||
@@ -485,6 +509,7 @@ export const properties = {
|
||||
"ast",
|
||||
"au",
|
||||
"aud",
|
||||
"av1",
|
||||
"avi",
|
||||
"avif",
|
||||
"avs",
|
||||
|
@@ -23,6 +23,9 @@ export const normalizeOutputFiletype = (filetype: string): string => {
|
||||
return "jpg";
|
||||
case "latex":
|
||||
return "tex";
|
||||
case "markdown_phpextra":
|
||||
case "markdown_strict":
|
||||
case "markdown_mmd":
|
||||
case "markdown":
|
||||
return "md";
|
||||
default:
|
||||
|
Reference in New Issue
Block a user