web/queue: add subtitle codec args

This commit is contained in:
wukko 2025-06-20 17:32:53 +06:00
parent 96a02d554f
commit 0b0f0d65ef
No known key found for this signature in database
GPG Key ID: 3E30B3F26C7B4AA2

View File

@ -68,6 +68,13 @@ const makeRemuxArgs = (info: CobaltLocalProcessingResponse) => {
if (["merge", "remux"].includes(info.type)) { if (["merge", "remux"].includes(info.type)) {
ffargs.push("-c:a", "copy"); 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") { } else if (info.type === "mute") {
ffargs.push("-an"); ffargs.push("-an");
} }