@@ -60,28 +60,26 @@ The producer uses a two-step API: create a render job configuration, then execut
6060import { createRenderJob , executeRenderJob } from ' @hyperframes/producer' ;
6161
6262const job = createRenderJob ({
63- input: ' ./my-video/index.html' ,
64- output: ' ./output.mp4' ,
6563 fps: 30 ,
6664 quality: ' standard' ,
6765});
6866
69- const result = await executeRenderJob (job );
67+ await executeRenderJob (job , ' ./my-video ' , ' ./output.mp4 ' );
7068```
7169
7270### Render Configuration
7371
7472``` typescript
75- import type { RenderConfig } from ' @hyperframes/producer' ;
73+ import { createRenderJob } from ' @hyperframes/producer' ;
7674
77- const config : RenderConfig = {
78- fps: 30 , // 24, 30, or 60
75+ const job = createRenderJob ( {
76+ fps: 30 , // integer, or { num: 30000, den: 1001 } for NTSC
7977 quality: ' standard' , // 'draft', 'standard', or 'high'
80- format: ' mp4' , // 'mp4' or 'webm' (WebM renders with transparency)
78+ format: ' mp4' , // 'mp4', 'webm', 'mov', or 'png-sequence'
8179 workers: 4 , // Parallel render workers (1-8)
8280 useGpu: false , // GPU-accelerated encoding
8381 debug: false , // Debug logging
84- };
82+ }) ;
8583```
8684
8785#### WebM with Transparency
0 commit comments