From e4321187fc2c61af23c37107f73eeeade54bc5a5 Mon Sep 17 00:00:00 2001 From: JovannMC Date: Mon, 2 Jun 2025 18:29:45 +0300 Subject: [PATCH] fix: some audio -> video "incompatible" hardcoded moment --- src/lib/converters/ffmpeg.svelte.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/converters/ffmpeg.svelte.ts b/src/lib/converters/ffmpeg.svelte.ts index a4367cb..a752db5 100644 --- a/src/lib/converters/ffmpeg.svelte.ts +++ b/src/lib/converters/ffmpeg.svelte.ts @@ -5,7 +5,7 @@ import { browser } from "$app/environment"; import { error, log } from "$lib/logger"; import { addToast } from "$lib/store/ToastProvider"; -const videoFormats = ["mp4", "mkv", "avi", "mov", "webm"]; +const videoFormats = [".mkv", ".mp4", ".avi", ".mov", ".webm", ".ts", ".mts", ".m2ts", ".wmv"]; export class FFmpegConverter extends Converter { private ffmpeg: FFmpeg = null!; @@ -19,12 +19,12 @@ export class FFmpegConverter extends Converter { new FormatInfo("ogg", true, true), new FormatInfo("aac", true, true), new FormatInfo("m4a", true, true), - ...videoFormats.map((f) => new FormatInfo(f, true, true, false)), new FormatInfo("wma", true, true), new FormatInfo("amr", true, true), new FormatInfo("ac3", true, true), new FormatInfo("alac", true, true), new FormatInfo("aiff", true, true), + ...videoFormats.map((f) => new FormatInfo(f, true, true, false)), ]; public readonly reportsProgress = true;