mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-10 07:50:29 -07:00
24 lines
502 B
TypeScript
24 lines
502 B
TypeScript
import { getEncoder } from './hardwareUtils';
|
|
|
|
const run = async () => {
|
|
const encoderProperties = await getEncoder({
|
|
targetCodec: 'h264',
|
|
hardwareEncoding: true,
|
|
// @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();
|