MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / presetArg

Function presetArg

packages/engine/src/services/chunkEncoder.test.ts:747–750  ·  view source on GitHub ↗
(args: string[])

Source from the content-addressed store, hash-verified

745 const inputArgs = ["-framerate", "30", "-i", "frames/%04d.png"];
746
747 function presetArg(args: string[]): string | undefined {
748 const idx = args.indexOf("-preset");
749 return idx === -1 ? undefined : args[idx + 1];
750 }
751
752 // Regression for the "draft quality + --gpu fails with code -22" bug:
753 // NVENC rejects the libx264 preset name `ultrafast` with AVERROR(EINVAL),

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected