* Build the serializable render config from CLI flags. `variables` is resolved * separately (it differs per batch entry). Mirrors the local `hyperframes * render` flag surface so the two stay consistent.
( args: Record<string, unknown>, fps: number, width: number, height: number, variables: Record<string, unknown> | undefined, )
| 772 | * render` flag surface so the two stay consistent. |
| 773 | */ |
| 774 | function buildRenderConfig( |
| 775 | args: Record<string, unknown>, |
| 776 | fps: number, |
| 777 | width: number, |
| 778 | height: number, |
| 779 | variables: Record<string, unknown> | undefined, |
| 780 | ): Record<string, unknown> { |
| 781 | return stripUndefined({ |
| 782 | fps, |
| 783 | width, |
| 784 | height, |
| 785 | format: parseFormat(args.format), |
| 786 | codec: parseCodec(args.codec), |
| 787 | quality: parseQuality(args.quality), |
| 788 | chunkSize: parsePositiveInt(args["chunk-size"], "--chunk-size"), |
| 789 | maxParallelChunks: parsePositiveInt(args["max-parallel-chunks"], "--max-parallel-chunks"), |
| 790 | targetChunkFrames: parsePositiveInt(args["target-chunk-frames"], "--target-chunk-frames"), |
| 791 | outputResolution: parseOutputResolution(args["output-resolution"]), |
| 792 | variables, |
| 793 | }); |
| 794 | } |
| 795 | |
| 796 | /** |
| 797 | * Resolve --variables / --variables-file via the shared CLI parser (the same |
no test coverage detected