@hyperframes/producer 0.9.31 → 0.9.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/distributed.js +61 -15
- package/dist/index.js +182 -40
- package/dist/public-server.js +203 -50
- package/dist/renderRequest.d.ts +1 -0
- package/dist/server.d.ts +1 -0
- package/dist/services/distributed/projectHash.d.ts +1 -1
- package/dist/services/render/captureImageFormat.d.ts +14 -3
- package/dist/services/render/chromaSubsampling.d.ts +18 -0
- package/dist/services/render/shared.d.ts +1 -1
- package/dist/services/renderOrchestrator.d.ts +6 -2
- package/package.json +7 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type CanvasResolution, type Fps, type FpsInput, type HfVfxCapture } from "@hyperframes/core";
|
|
2
|
-
import { type EngineConfig, type ExtractionPhaseBreakdown, type VideoFrameFormat, type CaptureOptions, type CaptureVideoMetadataHint, type CaptureSession, type BeforeCaptureHook, type ProresProfile, type ParallelProgress, type WorkerTask, type CapturePerfSummary, type CaptureWarning, type SubTimelineWaitOutcome, type WorkerSizing, type StaticVerificationOutcome, explainDrawElementDisabled, type CaptureFailureKind, displaySize, type MotionBlurOptions, type PageMotionBlurSummary } from "@hyperframes/engine";
|
|
2
|
+
import { type EngineConfig, type ExtractionPhaseBreakdown, type VideoFrameFormat, type CaptureOptions, type CaptureVideoMetadataHint, type CaptureSession, type BeforeCaptureHook, type ProresProfile, type ParallelProgress, type WorkerTask, type CapturePerfSummary, type CaptureWarning, type SubTimelineWaitOutcome, type WorkerSizing, type StaticVerificationOutcome, explainDrawElementDisabled, type CaptureFailureKind, displaySize, type ChromaSubsampling, type MotionBlurOptions, type PageMotionBlurSummary } from "@hyperframes/engine";
|
|
3
3
|
import { type ReferenceBackgroundResult } from "@hyperframes/engine";
|
|
4
4
|
import { type ProducerLogger } from "../logger.js";
|
|
5
5
|
import { type RenderOutputFormat } from "./render/renderFormat.js";
|
|
@@ -110,6 +110,8 @@ export interface RenderConfig {
|
|
|
110
110
|
maxBitrate?: string;
|
|
111
111
|
/** Rate-cap buffer; defaults to twice `maxBitrate`. */
|
|
112
112
|
bufferSize?: string;
|
|
113
|
+
/** MP4 chroma, default `"420"`. `"444"` captures PNG and encodes yuv444p (SDR, software). */
|
|
114
|
+
chromaSubsampling?: ChromaSubsampling;
|
|
113
115
|
/**
|
|
114
116
|
* Source-video frame extraction format. Defaults to `"auto"`, which preserves
|
|
115
117
|
* the historical behavior: alpha/alpha-capable sources extract as PNG, all
|
|
@@ -574,11 +576,13 @@ export declare function captureAttemptMadeProgress(attemptTargetFrameCount: numb
|
|
|
574
576
|
export declare function resetCaptureAttemptProgress(job: {
|
|
575
577
|
framesRendered?: number;
|
|
576
578
|
}): void;
|
|
579
|
+
/** Allowed wait for the first frame, given how long the probe's browser took to start; 0 or unknown keeps 300 s. */
|
|
580
|
+
export declare function firstFrameWindowMs(probeStartupMs: number | undefined): number;
|
|
577
581
|
/** The no-progress rule for capture stages that have no watchdog of their own: disk, HDR, chunk. Once
|
|
578
582
|
* `totalFrames` have landed the frame count can no longer change, so the stage is judged on the tail budget. */
|
|
579
583
|
export declare function frameStallRule(job: {
|
|
580
584
|
framesRendered?: number;
|
|
581
|
-
}, totalFrames: number): StageStallRule;
|
|
585
|
+
}, totalFrames: number, probeStartupMs: number | undefined): StageStallRule;
|
|
582
586
|
export declare function isRecoverableParallelCaptureError(error: unknown): boolean;
|
|
583
587
|
/**
|
|
584
588
|
* Turn a cryptic memory-exhaustion failure (V8 `Set maximum size exceeded`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/producer",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.32",
|
|
4
4
|
"description": "HTML-to-video rendering engine using Chrome's BeginFrame API",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"postcss": "^8.4.0",
|
|
36
36
|
"puppeteer": "~25.11.0",
|
|
37
37
|
"puppeteer-core": "^25.11.0",
|
|
38
|
-
"@hyperframes/engine": "0.9.
|
|
39
|
-
"@hyperframes/core": "0.9.
|
|
40
|
-
"@hyperframes/
|
|
41
|
-
"@hyperframes/
|
|
42
|
-
"@hyperframes/
|
|
38
|
+
"@hyperframes/engine": "0.9.32",
|
|
39
|
+
"@hyperframes/core": "0.9.32",
|
|
40
|
+
"@hyperframes/parsers": "0.9.32",
|
|
41
|
+
"@hyperframes/studio-server": "0.9.32",
|
|
42
|
+
"@hyperframes/lint": "0.9.32"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@types/node": "^25.0.10",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"tsx": "^4.21.0",
|
|
49
49
|
"typescript": "^5.7.2",
|
|
50
50
|
"vitest": "^4.1.11",
|
|
51
|
-
"@hyperframes/aws-lambda": "0.9.
|
|
51
|
+
"@hyperframes/aws-lambda": "0.9.32"
|
|
52
52
|
},
|
|
53
53
|
"engines": {
|
|
54
54
|
"node": ">=22"
|