@hyperframes/producer 0.10.4 → 0.10.7
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 +8 -0
- package/dist/compileWorker.js +11 -13
- package/dist/distributed.js +74 -45
- package/dist/healthWorkerThread.js +11 -5
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +66 -66
- package/dist/index.js +155 -60
- package/dist/public-server.js +152 -54
- package/dist/services/healthWorker.d.ts +8 -11
- package/dist/services/healthWorkerThread.d.ts +1 -1
- package/dist/services/render/captureCost.d.ts +4 -0
- package/dist/services/render/captureStageError.d.ts +1 -0
- package/dist/services/render/stages/captureEncoder.d.ts +3 -0
- package/dist/services/render/stages/captureSegmentedStage.d.ts +3 -2
- package/dist/services/render/stages/captureStreamingStage.d.ts +4 -3
- package/dist/services/render/stages/encodeStage.d.ts +1 -26
- package/dist/services/renderOrchestrator.d.ts +2 -0
- package/package.json +8 -8
|
@@ -32,7 +32,6 @@
|
|
|
32
32
|
* stage's encode if it fails.
|
|
33
33
|
*/
|
|
34
34
|
import { getEncoderPreset, type EngineConfig, type LandedFrame } from "@hyperframes/engine";
|
|
35
|
-
import { type Fps } from "@hyperframes/core";
|
|
36
35
|
import type { ProducerLogger } from "../../../logger.js";
|
|
37
36
|
import type { ProgressCallback, RenderJob } from "../../renderOrchestrator.js";
|
|
38
37
|
export interface EncodeStageInput {
|
|
@@ -105,27 +104,6 @@ export interface EncodeStageResult {
|
|
|
105
104
|
/** Wall-clock ms for the encode (or png-copy) phase. */
|
|
106
105
|
encodeMs: number;
|
|
107
106
|
}
|
|
108
|
-
export declare function overlapEncoderThreads(workerCount: number, cpuCount: number): number;
|
|
109
|
-
export declare function videoEncoderOptions(input: VideoEncodeInput, engineCfg: Pick<EngineConfig, "vp9CpuUsed">, softwareEncoderThreads?: number): {
|
|
110
|
-
fps: Fps;
|
|
111
|
-
width: number;
|
|
112
|
-
height: number;
|
|
113
|
-
codec: "h264" | "vp9" | "h265" | "prores";
|
|
114
|
-
preset: string;
|
|
115
|
-
quality: number;
|
|
116
|
-
bitrate: string | undefined;
|
|
117
|
-
maxBitrate: string | undefined;
|
|
118
|
-
bufferSize: string | undefined;
|
|
119
|
-
pixelFormat: string;
|
|
120
|
-
vp9CpuUsed: number;
|
|
121
|
-
useGpu: boolean | undefined;
|
|
122
|
-
hdr: {
|
|
123
|
-
transfer: import("@hyperframes/engine").HdrTransfer;
|
|
124
|
-
} | undefined;
|
|
125
|
-
lockGopForChunkConcat: boolean;
|
|
126
|
-
gopSize: number | undefined;
|
|
127
|
-
softwareEncoderThreads: number | undefined;
|
|
128
|
-
};
|
|
129
107
|
/**
|
|
130
108
|
* h264 from JPEG only, software or GPU: the streaming encoder then runs the disk encoder's
|
|
131
109
|
* arguments. Needs a core the capture workers leave free.
|
|
@@ -145,8 +123,5 @@ export interface EncodeWhileCapturing {
|
|
|
145
123
|
* Feeds frames 0, 1, 2… to the encoder as each lands; capture never waits on it.
|
|
146
124
|
* On failure `finish` re-runs `runEncodeStage` on the same frames.
|
|
147
125
|
*/
|
|
148
|
-
export declare function encodeWhileCapturing(input: VideoEncodeInput, totalFrames: number
|
|
149
|
-
workerCount: number;
|
|
150
|
-
cpuCount: number;
|
|
151
|
-
}): EncodeWhileCapturing;
|
|
126
|
+
export declare function encodeWhileCapturing(input: VideoEncodeInput, totalFrames: number): EncodeWhileCapturing;
|
|
152
127
|
export declare function runEncodeStage(input: EncodeStageInput): Promise<EncodeStageResult>;
|
|
@@ -486,6 +486,8 @@ export interface RenderJob extends Partial<ReferenceBackgroundResult> {
|
|
|
486
486
|
export type ProgressCallback = (job: RenderJob, message: string) => void | Promise<void>;
|
|
487
487
|
export declare class RenderQualityError extends Error {
|
|
488
488
|
readonly warnings: readonly RenderWarning[];
|
|
489
|
+
/** Set only when the composition's own script threw: rendering it again fails the same way. */
|
|
490
|
+
readonly code?: "COMPOSITION_SCRIPT_FAILED";
|
|
489
491
|
constructor(warnings: readonly RenderWarning[]);
|
|
490
492
|
}
|
|
491
493
|
export declare function applyRenderWarningPolicy(job: RenderJob, captureWarnings: readonly CaptureWarning[], log?: ProducerLogger): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/producer",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.7",
|
|
4
4
|
"description": "HTML-to-video rendering engine using Chrome's BeginFrame API",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"postcss": "^8.4.0",
|
|
36
36
|
"puppeteer": "~25.13.0",
|
|
37
37
|
"puppeteer-core": "^25.13.0",
|
|
38
|
-
"@hyperframes/core": "0.10.
|
|
39
|
-
"@hyperframes/engine": "0.10.
|
|
40
|
-
"@hyperframes/
|
|
41
|
-
"@hyperframes/
|
|
42
|
-
"@hyperframes/share": "0.10.
|
|
43
|
-
"@hyperframes/studio-server": "0.10.
|
|
38
|
+
"@hyperframes/core": "0.10.7",
|
|
39
|
+
"@hyperframes/engine": "0.10.7",
|
|
40
|
+
"@hyperframes/lint": "0.10.7",
|
|
41
|
+
"@hyperframes/parsers": "0.10.7",
|
|
42
|
+
"@hyperframes/share": "0.10.7",
|
|
43
|
+
"@hyperframes/studio-server": "0.10.7"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/node": "^25.0.10",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"tsx": "^4.21.0",
|
|
50
50
|
"typescript": "^5.7.2",
|
|
51
51
|
"vitest": "^4.1.12",
|
|
52
|
-
"@hyperframes/aws-lambda": "0.10.
|
|
52
|
+
"@hyperframes/aws-lambda": "0.10.7"
|
|
53
53
|
},
|
|
54
54
|
"engines": {
|
|
55
55
|
"node": ">=22.19.0"
|