Tdarr_Plugins/FlowPluginsTs/FlowHelpers/1.0.0/hardwareUtils.test.ts
2023-10-02 07:52:51 +01:00

25 lines
528 B
TypeScript

import { getEncoder } from './hardwareUtils';
const run = async () => {
const encoderProperties = await getEncoder({
targetCodec: 'h264',
hardwareEncoding: true,
hardwareType: 'auto',
// @ts-expect-error type
args: {
workerType: 'transcodegpu',
ffmpegPath: 'ffmpeg',
jobLog: (t:string) => {
// eslint-disable-next-line no-console
console.log(t);
},
},
});
// eslint-disable-next-line no-console
console.log({
encoderProperties,
});
};
void run();