fix: some audio -> video "incompatible"

hardcoded moment
This commit is contained in:
JovannMC 2025-06-02 18:29:45 +03:00
parent 332cd24dfc
commit e4321187fc
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -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;