fix(producer): preserve runtime audio variables in distributed plans (#2725)

* fix(producer): preserve runtime audio variables in distributed plans

* fix(producer): prefer runtime duration for volume sampling
This commit is contained in:
James Russo
2026-07-21 19:49:39 -04:00
committed by GitHub
parent 63539a0cde
commit 465c9e7641
9 changed files with 66 additions and 10 deletions
@@ -81,6 +81,25 @@ describe("distributed warning policy", () => {
});
});
describe("distributed synthetic render job", () => {
it("threads render variables into the plan browser probe job", () => {
const variables = {
voiceoverSrc: "assets/voiceover.wav",
narrationDurationSeconds: 56.738,
};
const job = buildSyntheticRenderJob({
fps: { num: 30, den: 1 },
format: "mp4",
quality: "high",
hdrMode: "force-sdr",
entryFile: "index.html",
variables,
});
expect(job.config.variables).toEqual(variables);
});
});
describe("resolveChunkPlan", () => {
it("returns 1 chunk when totalFrames fits in configChunkSize", () => {
const result = resolveChunkPlan(60, 240, 16);