mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 23:48:15 -07:00
25 lines
528 B
TypeScript
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();
|