mirror of
https://github.com/imputnet/cobalt.git
synced 2026-10-25 03:22:19 +00:00
web/queue: add subtitles independently from remux type
so that you can have a mute video with subtitles
This commit is contained in:
parent
a44bea6b50
commit
17ab8dd709
1 changed files with 7 additions and 7 deletions
|
|
@ -68,17 +68,17 @@ const makeRemuxArgs = (info: CobaltLocalProcessingResponse) => {
|
|||
|
||||
if (["merge", "remux"].includes(info.type)) {
|
||||
ffargs.push("-c:a", "copy");
|
||||
|
||||
if (info.output.subtitles) {
|
||||
ffargs.push(
|
||||
"-c:s",
|
||||
info.output.filename.endsWith(".mp4") ? "mov_text" : "webvtt"
|
||||
);
|
||||
}
|
||||
} else if (info.type === "mute") {
|
||||
ffargs.push("-an");
|
||||
}
|
||||
|
||||
if (info.output.subtitles) {
|
||||
ffargs.push(
|
||||
"-c:s",
|
||||
info.output.filename.endsWith(".mp4") ? "mov_text" : "webvtt"
|
||||
);
|
||||
}
|
||||
|
||||
ffargs.push(
|
||||
...(info.output.metadata ? ffmpegMetadataArgs(info.output.metadata) : [])
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue