@hyperframes/producer 0.8.222 → 0.8.223
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/dist/index.js
CHANGED
|
@@ -11361,6 +11361,7 @@ async function runCaptureHdrStage(input) {
|
|
|
11361
11361
|
let lastBrowserConsole = [];
|
|
11362
11362
|
let captureDurationMs = 0;
|
|
11363
11363
|
let encodeMs = 0;
|
|
11364
|
+
let encoderDrainWaitMs;
|
|
11364
11365
|
const nativeHdrIds = /* @__PURE__ */ new Set([...nativeHdrVideoIds, ...nativeHdrImageIds]);
|
|
11365
11366
|
log.info(
|
|
11366
11367
|
hasHdrContent ? "[Render] HDR layered composite: z-ordered DOM + native HDR video/image layers" : "[Render] Shader transition composite: z-ordered SDR DOM layers"
|
|
@@ -11598,6 +11599,7 @@ async function runCaptureHdrStage(input) {
|
|
|
11598
11599
|
reportEncodeProgress(job, totalFrames, totalFrames, onProgress, encodeFrom);
|
|
11599
11600
|
captureDurationMs = Date.now() - stageStart;
|
|
11600
11601
|
encodeMs = hdrEncodeResult.durationMs;
|
|
11602
|
+
encoderDrainWaitMs = hdrEncodeResult.drainWaitMs;
|
|
11601
11603
|
} catch (error) {
|
|
11602
11604
|
lastBrowserConsole = domSession.browserConsoleBuffer;
|
|
11603
11605
|
throw wrapCaptureStageError(error, lastBrowserConsole);
|
|
@@ -11630,6 +11632,7 @@ async function runCaptureHdrStage(input) {
|
|
|
11630
11632
|
hdrPerf,
|
|
11631
11633
|
captureDurationMs,
|
|
11632
11634
|
encodeMs,
|
|
11635
|
+
encoderDrainWaitMs,
|
|
11633
11636
|
warnings: cloneCaptureWarnings2(domSession.warnings)
|
|
11634
11637
|
};
|
|
11635
11638
|
}
|
|
@@ -14343,6 +14346,7 @@ async function executeRenderPipeline(input) {
|
|
|
14343
14346
|
perfStages.captureFrameMs = hdrRes.captureDurationMs;
|
|
14344
14347
|
perfStages.captureSetupMs = Math.max(0, Date.now() - stage4Start - hdrRes.captureDurationMs);
|
|
14345
14348
|
perfStages.encodeMs = hdrRes.encodeMs;
|
|
14349
|
+
perfStages.encoderDrainWaitMs = hdrRes.encoderDrainWaitMs ?? 0;
|
|
14346
14350
|
} else {
|
|
14347
14351
|
let streamingHandled = false;
|
|
14348
14352
|
if (capturePlan.kind === "sdr_segmented") {
|
package/dist/public-server.js
CHANGED
|
@@ -11341,6 +11341,7 @@ async function runCaptureHdrStage(input) {
|
|
|
11341
11341
|
let lastBrowserConsole = [];
|
|
11342
11342
|
let captureDurationMs = 0;
|
|
11343
11343
|
let encodeMs = 0;
|
|
11344
|
+
let encoderDrainWaitMs;
|
|
11344
11345
|
const nativeHdrIds = /* @__PURE__ */ new Set([...nativeHdrVideoIds, ...nativeHdrImageIds]);
|
|
11345
11346
|
log.info(
|
|
11346
11347
|
hasHdrContent ? "[Render] HDR layered composite: z-ordered DOM + native HDR video/image layers" : "[Render] Shader transition composite: z-ordered SDR DOM layers"
|
|
@@ -11578,6 +11579,7 @@ async function runCaptureHdrStage(input) {
|
|
|
11578
11579
|
reportEncodeProgress(job, totalFrames, totalFrames, onProgress, encodeFrom);
|
|
11579
11580
|
captureDurationMs = Date.now() - stageStart;
|
|
11580
11581
|
encodeMs = hdrEncodeResult.durationMs;
|
|
11582
|
+
encoderDrainWaitMs = hdrEncodeResult.drainWaitMs;
|
|
11581
11583
|
} catch (error) {
|
|
11582
11584
|
lastBrowserConsole = domSession.browserConsoleBuffer;
|
|
11583
11585
|
throw wrapCaptureStageError(error, lastBrowserConsole);
|
|
@@ -11610,6 +11612,7 @@ async function runCaptureHdrStage(input) {
|
|
|
11610
11612
|
hdrPerf,
|
|
11611
11613
|
captureDurationMs,
|
|
11612
11614
|
encodeMs,
|
|
11615
|
+
encoderDrainWaitMs,
|
|
11613
11616
|
warnings: cloneCaptureWarnings2(domSession.warnings)
|
|
11614
11617
|
};
|
|
11615
11618
|
}
|
|
@@ -14323,6 +14326,7 @@ async function executeRenderPipeline(input) {
|
|
|
14323
14326
|
perfStages.captureFrameMs = hdrRes.captureDurationMs;
|
|
14324
14327
|
perfStages.captureSetupMs = Math.max(0, Date.now() - stage4Start - hdrRes.captureDurationMs);
|
|
14325
14328
|
perfStages.encodeMs = hdrRes.encodeMs;
|
|
14329
|
+
perfStages.encoderDrainWaitMs = hdrRes.encoderDrainWaitMs ?? 0;
|
|
14326
14330
|
} else {
|
|
14327
14331
|
let streamingHandled = false;
|
|
14328
14332
|
if (capturePlan.kind === "sdr_segmented") {
|
|
@@ -84,6 +84,7 @@ export interface CaptureHdrStageResult {
|
|
|
84
84
|
captureDurationMs: number;
|
|
85
85
|
/** ffmpeg-reported encode duration; overlapped with capture. */
|
|
86
86
|
encodeMs: number;
|
|
87
|
+
encoderDrainWaitMs?: number;
|
|
87
88
|
warnings: CaptureWarning[];
|
|
88
89
|
}
|
|
89
90
|
export declare function runCaptureHdrStage(input: CaptureHdrStageInput): Promise<CaptureHdrStageResult>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/producer",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.223",
|
|
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/
|
|
39
|
-
"@hyperframes/
|
|
40
|
-
"@hyperframes/
|
|
41
|
-
"@hyperframes/
|
|
42
|
-
"@hyperframes/
|
|
38
|
+
"@hyperframes/core": "0.8.223",
|
|
39
|
+
"@hyperframes/engine": "0.8.223",
|
|
40
|
+
"@hyperframes/lint": "0.8.223",
|
|
41
|
+
"@hyperframes/parsers": "0.8.223",
|
|
42
|
+
"@hyperframes/studio-server": "0.8.223"
|
|
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.8.
|
|
51
|
+
"@hyperframes/aws-lambda": "0.8.223"
|
|
52
52
|
},
|
|
53
53
|
"engines": {
|
|
54
54
|
"node": ">=22"
|