fix(transcode): restore official cliUtils and fix transcode progress and log flooding

This commit is contained in:
PickleRick committed 2026-09-30 23:56:53 +02:00
1 parent 88ecf9a847
commit 2daa75df60
6 files changed
+99 -23

No files matched your search

@@ -74,10 +74,13 @@ const plugin = async (args) => {
'-c:a', 'copy',
outFile,
],
spawnOpts: { cwd: workDir },
WorkDir: workDir,
jobLog,
outputFilePath: outFile,
inputFileObj,
updateWorker,
logFullCliOutput: args.logFullCliOutput || false,
args,
});
@@ -97,12 +97,14 @@ const getMkvExtract = (args) => {
const runCLI = async (cliBin, spawnArgs, args) => {
const { CLI } = require('../../../../FlowHelpers/1.0.0/cliUtils');
const cli = new CLI({
cli: cliBin,
cli: cliBin,
spawnArgs,
WorkDir: args.workDir,
jobLog: args.jobLog,
inputFileObj: args.inputFileObj,
updateWorker: args.updateWorker,
spawnOpts: { cwd: args.workDir },
WorkDir: args.workDir,
jobLog: args.jobLog,
inputFileObj: args.inputFileObj,
updateWorker: args.updateWorker,
logFullCliOutput: args.logFullCliOutput || false,
args,
});
return cli.runCli();
@@ -50,10 +50,12 @@ const plugin = async (args) => {
const cli = new CLI({
cli: mkvExtract,
spawnArgs: [inputFile, 'chapters', xmlPath],
spawnOpts: { cwd: workDir },
WorkDir: workDir,
jobLog,
inputFileObj,
updateWorker,
logFullCliOutput: args.logFullCliOutput || false,
args,
});
@@ -266,10 +266,13 @@ const plugin = async (args) => {
'-sn',
outFile,
],
spawnOpts: { cwd: workDir },
WorkDir: workDir,
jobLog,
outputFilePath: outFile,
inputFileObj,
updateWorker,
logFullCliOutput: args.logFullCliOutput || false,
args,
});
@@ -310,10 +313,12 @@ const plugin = async (args) => {
'-f', 'null',
nullDev,
],
spawnOpts: { cwd: workDir },
WorkDir: workDir,
jobLog,
inputFileObj,
updateWorker,
logFullCliOutput: args.logFullCliOutput || false,
args,
});
@@ -345,10 +350,13 @@ const plugin = async (args) => {
'-sn',
outFile,
],
spawnOpts: { cwd: workDir },
WorkDir: workDir,
jobLog,
outputFilePath: outFile,
inputFileObj,
updateWorker,
logFullCliOutput: args.logFullCliOutput || false,
args,
});