(args: string[])
| 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), |