mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-10 07:50:29 -07:00
Add checkFfmpegCommandInit(() to ffmpeg command plugins
This commit is contained in:
parent
0ba6ceb182
commit
69afa93e70
15 changed files with 45 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
/* eslint no-plusplus: ["error", { "allowForLoopAfterthoughts": true }] */
|
||||
|
||||
import { getEncoder } from '../../../../FlowHelpers/1.0.0/hardwareUtils';
|
||||
import { checkFfmpegCommandInit } from '../../../../FlowHelpers/1.0.0/interfaces/flowUtils';
|
||||
import {
|
||||
IpluginDetails,
|
||||
IpluginInputArgs,
|
||||
|
|
@ -181,6 +182,8 @@ const plugin = async (args: IpluginInputArgs): Promise<IpluginOutputArgs> => {
|
|||
// eslint-disable-next-line @typescript-eslint/no-unused-vars,no-param-reassign
|
||||
args.inputs = lib.loadDefaultValues(args.inputs, details);
|
||||
|
||||
checkFfmpegCommandInit(args);
|
||||
|
||||
const hardwareDecoding = args.inputs.hardwareDecoding === true;
|
||||
const hardwareType = String(args.inputs.hardwareType);
|
||||
args.variables.ffmpegCommand.hardwareDecoding = hardwareDecoding;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue