mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-29 09:58:27 +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
@ -68,6 +68,9 @@ 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");
|
||||||
|
} else if (info.type === "mute") {
|
||||||
|
ffargs.push("-an");
|
||||||
|
}
|
||||||
|
|
||||||
if (info.output.subtitles) {
|
if (info.output.subtitles) {
|
||||||
ffargs.push(
|
ffargs.push(
|
||||||
@ -75,9 +78,6 @@ const makeRemuxArgs = (info: CobaltLocalProcessingResponse) => {
|
|||||||
info.output.filename.endsWith(".mp4") ? "mov_text" : "webvtt"
|
info.output.filename.endsWith(".mp4") ? "mov_text" : "webvtt"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} else if (info.type === "mute") {
|
|
||||||
ffargs.push("-an");
|
|
||||||
}
|
|
||||||
|
|
||||||
ffargs.push(
|
ffargs.push(
|
||||||
...(info.output.metadata ? ffmpegMetadataArgs(info.output.metadata) : [])
|
...(info.output.metadata ? ffmpegMetadataArgs(info.output.metadata) : [])
|
||||||
|
Loading…
Reference in New Issue
Block a user