mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-28 01:18:27 +00:00
web/queue: add subtitle codec args
This commit is contained in:
parent
96a02d554f
commit
0b0f0d65ef
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user