mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-25 16:37:32 +00:00
test(engine): the frame-tag checks get the time a real encode needs (#8415)
They run ffmpeg and ffprobe like the raw SDR colour check, which already allows 30 s; at vitest's 5 s default a busy Windows runner timed one out.
This commit is contained in:
@@ -1296,17 +1296,22 @@ describe.skipIf(spawnSync("ffmpeg", ["-version"]).status !== 0)(
|
||||
}
|
||||
};
|
||||
const tiny = { width: 64, height: 16 };
|
||||
const REAL_ENCODE_TIMEOUT_MS = 30_000;
|
||||
|
||||
it.each([
|
||||
["captured frames", {}],
|
||||
["raw RGB frames", { rawInputFormat: "rgb48le" as const }],
|
||||
])("tags BT.709 on %s, so an encoder that reads only them tags the stream", (_, extra) => {
|
||||
const args = buildStreamingArgs({ ...baseSdr, ...tiny, ...extra }, "o.mp4");
|
||||
])(
|
||||
"tags BT.709 on %s, so an encoder that reads only them tags the stream",
|
||||
(_, extra) => {
|
||||
const args = buildStreamingArgs({ ...baseSdr, ...tiny, ...extra }, "o.mp4");
|
||||
|
||||
expect(streamTagsThrough(args, ["-c:v", "libx264", "-preset", "ultrafast"])).toBe(
|
||||
"bt709,bt709,bt709",
|
||||
);
|
||||
});
|
||||
expect(streamTagsThrough(args, ["-c:v", "libx264", "-preset", "ultrafast"])).toBe(
|
||||
"bt709,bt709,bt709",
|
||||
);
|
||||
},
|
||||
REAL_ENCODE_TIMEOUT_MS,
|
||||
);
|
||||
|
||||
it.each([
|
||||
[baseHdrPq, "smpte2084", null],
|
||||
@@ -1327,6 +1332,7 @@ describe.skipIf(spawnSync("ffmpeg", ["-version"]).status !== 0)(
|
||||
|
||||
expect(streamTagsThrough(args, x265)).toBe(`bt2020nc,${trc},bt2020`);
|
||||
},
|
||||
REAL_ENCODE_TIMEOUT_MS,
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user