Skip to content

best way to save what you love

web/queue: add subtitle codec args

wukko0b0f0d65ef08
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");
}