mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-27 17:08:28 +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)) {
|
||||
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"
|
||||
|
@ -73,6 +73,7 @@ export type CobaltLocalProcessingResponse = {
|
||||
type: string, // mimetype
|
||||
filename: string,
|
||||
metadata?: CobaltFileMetadata,
|
||||
subtitles?: boolean,
|
||||
},
|
||||
|
||||
audio?: {
|
||||
|
Loading…
Reference in New Issue
Block a user