@hyperframes/producer 0.9.71 → 0.9.72
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
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "@hyperframes/engine";
|
|
8
8
|
|
|
9
9
|
// src/services/renderOrchestrator.ts
|
|
10
|
-
import { audioFailureDiagnostics as audioFailureDiagnostics2,
|
|
10
|
+
import { audioFailureDiagnostics as audioFailureDiagnostics2, cpuBudget } from "@hyperframes/engine";
|
|
11
11
|
import {
|
|
12
12
|
existsSync as existsSync21,
|
|
13
13
|
mkdirSync as mkdirSync12,
|
|
@@ -16908,7 +16908,7 @@ async function executeRenderPipeline(input) {
|
|
|
16908
16908
|
audioFailed.abort(error);
|
|
16909
16909
|
});
|
|
16910
16910
|
const mixedAudio = () => audioWait.wait(audioReady);
|
|
16911
|
-
if (
|
|
16911
|
+
if (cpuBudget() < MIN_CPUS_TO_CAPTURE_DURING_MIX) await mixedAudio();
|
|
16912
16912
|
resetCaptureAttemptProgress(job);
|
|
16913
16913
|
if (capturePlan.kind === "hdr_layered") {
|
|
16914
16914
|
const layeredPlan = capturePlan;
|
|
@@ -17379,9 +17379,9 @@ async function executeRenderPipeline(input) {
|
|
|
17379
17379
|
assertNotAborted,
|
|
17380
17380
|
onProgress
|
|
17381
17381
|
};
|
|
17382
|
-
const overlap = !cfg.useDrawElement && workerSizing !== void 0 && canEncodeWhileCapturing(encodeInput, capturePlan.workerCount,
|
|
17382
|
+
const overlap = !cfg.useDrawElement && workerSizing !== void 0 && canEncodeWhileCapturing(encodeInput, capturePlan.workerCount, cpuBudget()) ? encodeWhileCapturing(encodeInput, totalFrames, {
|
|
17383
17383
|
workerCount: capturePlan.workerCount,
|
|
17384
|
-
cpuCount:
|
|
17384
|
+
cpuCount: cpuBudget()
|
|
17385
17385
|
}) : null;
|
|
17386
17386
|
const captureFrameStart = Date.now();
|
|
17387
17387
|
const invokeDiskCapture = (diskPlan) => observeRenderStage(
|
|
@@ -20443,7 +20443,7 @@ import {
|
|
|
20443
20443
|
probeBeginFrameLiveness as probeBeginFrameLiveness2,
|
|
20444
20444
|
readWebGlVendorInfoFromCanvas,
|
|
20445
20445
|
resolveConfig as resolveConfig4,
|
|
20446
|
-
|
|
20446
|
+
cpuBudget as cpuBudget2
|
|
20447
20447
|
} from "@hyperframes/engine";
|
|
20448
20448
|
|
|
20449
20449
|
// src/services/distributed/planV2.ts
|
|
@@ -21867,9 +21867,9 @@ async function renderChunk(planDir, chunkIndex, outputChunkPath, options) {
|
|
|
21867
21867
|
const captureSession = session;
|
|
21868
21868
|
session = null;
|
|
21869
21869
|
verifyStarted = Date.now();
|
|
21870
|
-
overlap.current = canEncodeWhileCapturing(encodeInput, chunkWorkerCount,
|
|
21870
|
+
overlap.current = canEncodeWhileCapturing(encodeInput, chunkWorkerCount, cpuBudget2()) ? encodeWhileCapturing(encodeInput, framesInChunk, {
|
|
21871
21871
|
workerCount: chunkWorkerCount,
|
|
21872
|
-
cpuCount:
|
|
21872
|
+
cpuCount: cpuBudget2()
|
|
21873
21873
|
}) : null;
|
|
21874
21874
|
await observeRenderStage(
|
|
21875
21875
|
new RenderObservabilityRecorder({ pipelineStartMs: start, log }),
|
package/dist/public-server.js
CHANGED
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
import { isSafePath as isSafePath4 } from "@hyperframes/core/safe-path";
|
|
43
43
|
|
|
44
44
|
// src/services/renderOrchestrator.ts
|
|
45
|
-
import { audioFailureDiagnostics as audioFailureDiagnostics2,
|
|
45
|
+
import { audioFailureDiagnostics as audioFailureDiagnostics2, cpuBudget } from "@hyperframes/engine";
|
|
46
46
|
import {
|
|
47
47
|
existsSync as existsSync21,
|
|
48
48
|
mkdirSync as mkdirSync12,
|
|
@@ -16883,7 +16883,7 @@ async function executeRenderPipeline(input) {
|
|
|
16883
16883
|
audioFailed.abort(error);
|
|
16884
16884
|
});
|
|
16885
16885
|
const mixedAudio = () => audioWait.wait(audioReady);
|
|
16886
|
-
if (
|
|
16886
|
+
if (cpuBudget() < MIN_CPUS_TO_CAPTURE_DURING_MIX) await mixedAudio();
|
|
16887
16887
|
resetCaptureAttemptProgress(job);
|
|
16888
16888
|
if (capturePlan.kind === "hdr_layered") {
|
|
16889
16889
|
const layeredPlan = capturePlan;
|
|
@@ -17354,9 +17354,9 @@ async function executeRenderPipeline(input) {
|
|
|
17354
17354
|
assertNotAborted,
|
|
17355
17355
|
onProgress
|
|
17356
17356
|
};
|
|
17357
|
-
const overlap = !cfg.useDrawElement && workerSizing !== void 0 && canEncodeWhileCapturing(encodeInput, capturePlan.workerCount,
|
|
17357
|
+
const overlap = !cfg.useDrawElement && workerSizing !== void 0 && canEncodeWhileCapturing(encodeInput, capturePlan.workerCount, cpuBudget()) ? encodeWhileCapturing(encodeInput, totalFrames, {
|
|
17358
17358
|
workerCount: capturePlan.workerCount,
|
|
17359
|
-
cpuCount:
|
|
17359
|
+
cpuCount: cpuBudget()
|
|
17360
17360
|
}) : null;
|
|
17361
17361
|
const captureFrameStart = Date.now();
|
|
17362
17362
|
const invokeDiskCapture = (diskPlan) => observeRenderStage(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/producer",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.72",
|
|
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.13.0",
|
|
37
37
|
"puppeteer-core": "^25.13.0",
|
|
38
|
-
"@hyperframes/
|
|
39
|
-
"@hyperframes/
|
|
40
|
-
"@hyperframes/
|
|
41
|
-
"@hyperframes/
|
|
42
|
-
"@hyperframes/
|
|
38
|
+
"@hyperframes/core": "0.9.72",
|
|
39
|
+
"@hyperframes/lint": "0.9.72",
|
|
40
|
+
"@hyperframes/studio-server": "0.9.72",
|
|
41
|
+
"@hyperframes/parsers": "0.9.72",
|
|
42
|
+
"@hyperframes/engine": "0.9.72"
|
|
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.12",
|
|
51
|
-
"@hyperframes/aws-lambda": "0.9.
|
|
51
|
+
"@hyperframes/aws-lambda": "0.9.72"
|
|
52
52
|
},
|
|
53
53
|
"engines": {
|
|
54
54
|
"node": ">=22"
|