mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-28 01:18:27 +00:00
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:
parent
337edfc984
commit
254ad961d3
@ -69,7 +69,7 @@ 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) {
|
if (info.output.subtitles) {
|
||||||
ffargs.push(
|
ffargs.push(
|
||||||
"-c:s",
|
"-c:s",
|
||||||
info.output.filename.endsWith(".mp4") ? "mov_text" : "webvtt"
|
info.output.filename.endsWith(".mp4") ? "mov_text" : "webvtt"
|
||||||
|
@ -73,6 +73,7 @@ export type CobaltLocalProcessingResponse = {
|
|||||||
type: string, // mimetype
|
type: string, // mimetype
|
||||||
filename: string,
|
filename: string,
|
||||||
metadata?: CobaltFileMetadata,
|
metadata?: CobaltFileMetadata,
|
||||||
|
subtitles?: boolean,
|
||||||
},
|
},
|
||||||
|
|
||||||
audio?: {
|
audio?: {
|
||||||
|
Loading…
Reference in New Issue
Block a user