Add Custom Arguments

This commit is contained in:
HaveAGitGat 2023-10-03 11:32:22 +01:00
parent 0d2da16688
commit 251b0cf064
4 changed files with 69 additions and 8 deletions

View file

@ -74,7 +74,9 @@ const plugin = async (args: IpluginInputArgs): Promise<IpluginOutputArgs> => {
cliArgs.push('-i');
cliArgs.push(args.inputFileObj._id);
const inputArgs: string[] = [];
const inputArgs: string[] = [
...args.variables.ffmpegCommand.overallInputArguments,
];
let { shouldProcess, streams } = args.variables.ffmpegCommand;
streams = streams.filter((stream) => {
@ -123,6 +125,7 @@ const plugin = async (args: IpluginInputArgs): Promise<IpluginOutputArgs> => {
const idx = cliArgs.indexOf('-i');
cliArgs.splice(idx, 0, ...inputArgs);
cliArgs.push(...args.variables.ffmpegCommand.overallOuputArguments);
const outputFilePath = `${getPluginWorkDir(args)}/${getFileName(args.inputFileObj._id)}`
+ `.${args.variables.ffmpegCommand.container}`;