You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
502 B
25 lines
502 B
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();
|