From 09308040b03a70e52ffa9c302bdbd16220c1050a Mon Sep 17 00:00:00 2001 From: Maya Date: Mon, 28 Jul 2025 16:39:51 +0300 Subject: [PATCH] feat: new audio formats, language update --- messages/en.json | 2 +- src/lib/converters/ffmpeg.svelte.ts | 10 ++++++++++ src/lib/converters/magick-automated.ts | 1 - 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/messages/en.json b/messages/en.json index 5b70990..c201a6f 100644 --- a/messages/en.json +++ b/messages/en.json @@ -27,7 +27,7 @@ "documents": "Documents", "video": "Video", "video_server_processing": "Server supported", - "local_supported": "Local fully supported", + "local_supported": "Local supported", "status": { "text": "Status: {status}", "ready": "ready", diff --git a/src/lib/converters/ffmpeg.svelte.ts b/src/lib/converters/ffmpeg.svelte.ts index 8f64c41..6a44f91 100644 --- a/src/lib/converters/ffmpeg.svelte.ts +++ b/src/lib/converters/ffmpeg.svelte.ts @@ -6,6 +6,7 @@ import { error, log } from "$lib/logger"; import { addToast } from "$lib/store/ToastProvider"; import { m } from "$lib/paraglide/messages"; +// TODO: differentiate in UI? (not native formats) const videoFormats = [ "mkv", "mp4", @@ -28,6 +29,7 @@ export class FFmpegConverter extends Converter { new FormatInfo("wav", true, true), new FormatInfo("flac", true, true), new FormatInfo("ogg", true, true), + new FormatInfo("mogg", true, false), new FormatInfo("oga", true, true), new FormatInfo("opus", true, true), new FormatInfo("aac", true, true), @@ -38,6 +40,14 @@ export class FFmpegConverter extends Converter { new FormatInfo("alac", true, true), new FormatInfo("aiff", true, true), new FormatInfo("aif", true, true), + new FormatInfo("mp1", true, false), + new FormatInfo("mp2", true, true), + new FormatInfo("mpc", true, false), // unknown if it works, can't find sample file but ffmpeg should support i think? + new FormatInfo("raw", true, false), // usually pcm + new FormatInfo("dsd", true, false), // dsd + new FormatInfo("dsf", true, false), // dsd + new FormatInfo("dff", true, false), // dsd + new FormatInfo("mqa", true, false), ...videoFormats.map((f) => new FormatInfo(f, true, true, false)), ]; diff --git a/src/lib/converters/magick-automated.ts b/src/lib/converters/magick-automated.ts index c9a1078..fa79f7f 100644 --- a/src/lib/converters/magick-automated.ts +++ b/src/lib/converters/magick-automated.ts @@ -72,7 +72,6 @@ export const imageFormats = [ new FormatInfo("mng", true, true), new FormatInfo("mono", false, true), new FormatInfo("mpc", true, true), // not ideal (literally empty lol) - new FormatInfo("msvg", false, true), new FormatInfo("mtv", true, true), new FormatInfo("o", false, true), new FormatInfo("otb", true, true), // not ideal (completely black and white - maybe format is like that)