From 0b0f0d65ef08c9e8831fa3d36be48238691b9072 Mon Sep 17 00:00:00 2001 From: wukko Date: Fri, 20 Jun 2025 17:32:53 +0600 Subject: [PATCH] web/queue: add subtitle codec args --- web/src/lib/task-manager/queue.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/web/src/lib/task-manager/queue.ts b/web/src/lib/task-manager/queue.ts index 15caee14..a803b3a0 100644 --- a/web/src/lib/task-manager/queue.ts +++ b/web/src/lib/task-manager/queue.ts @@ -68,6 +68,13 @@ const makeRemuxArgs = (info: CobaltLocalProcessingResponse) => { if (["merge", "remux"].includes(info.type)) { ffargs.push("-c:a", "copy"); + + if (info.tunnel.length === 3) { + ffargs.push( + "-c:s", + info.output.filename.endsWith(".mp4") ? "mov_text" : "webvtt" + ); + } } else if (info.type === "mute") { ffargs.push("-an"); }