web/queue: add subtitle args when output has subtitles

not when there are 3 tunnels, that was dumb of me, my bad
This commit is contained in:
wukko 2025-06-20 17:41:20 +06:00
parent 337edfc984
commit 254ad961d3
No known key found for this signature in database
GPG Key ID: 3E30B3F26C7B4AA2
2 changed files with 2 additions and 1 deletions

View File

@ -69,7 +69,7 @@ const makeRemuxArgs = (info: CobaltLocalProcessingResponse) => {
if (["merge", "remux"].includes(info.type)) {
ffargs.push("-c:a", "copy");
if (info.tunnel.length === 3) {
if (info.output.subtitles) {
ffargs.push(
"-c:s",
info.output.filename.endsWith(".mp4") ? "mov_text" : "webvtt"

View File

@ -73,6 +73,7 @@ export type CobaltLocalProcessingResponse = {
type: string, // mimetype
filename: string,
metadata?: CobaltFileMetadata,
subtitles?: boolean,
},
audio?: {