Skip to content

armgit / 67.js

Public Imported from GitHub
0

3D engine that AI agents drive

Film the camera-lock test as a video job after the stills rework (#1089)

Nguyen Xuan Anbdd8303e460f
diff --git a/tests/physics-film.test.js b/tests/physics-film.test.js
index 10a2f1bd..65348393 100644
--- a/tests/physics-film.test.js
+++ b/tests/physics-film.test.js
@@ -172,7 +172,7 @@ function markerCentroid(frame, width, height) {
return { x: sumX / count, y: sumY / count, count };
}
-test('a fixed camera stays locked while a fractured wall flies apart', async () => {
+test('a fixed camera stays locked while a fractured wall flies apart', { skip: !hasFfmpeg && 'ffmpeg is not installed' }, async () => {
const width = 320;
const height = 180;
const recipe = sceneWithGround([
@@ -189,7 +189,7 @@ test('a fixed camera stays locked while a fractured wall flies apart', async ()
] } },
{ type: 'fracture-node', node: 'wall', seed: 7, cells: 64, strength: 1, impact: [0, 0, 0.2], impactRadius: 0.8 },
] });
- const result = await submitVideo(sessionId, { width, height, fps: 6, motion: { start: 0 } });
+ const result = await submitJob(sessionId, 'video', { width, height, fps: 6, motion: { start: 0 } });
const frames = decodedFrames(result.artifacts[0].path, width, height);
const first = markerCentroid(frames[0], width, height);
const last = markerCentroid(frames[frames.length - 1], width, height);