Tonight
This commit is contained in:
parent
28323f145e
commit
94f9c0d594
76 changed files with 3238 additions and 1230 deletions
|
|
@ -7,16 +7,15 @@ export const OUTPUT_DIR = 'output';
|
|||
const aspect = process.env.ASPECT ?? '16x9';
|
||||
export const VIEWPORT =
|
||||
aspect === '9x16' ? { width: 1080, height: 1920 } : { width: 1920, height: 1080 };
|
||||
export const CAPTURE_SCALE = Math.max(1, Number(process.env.CAPTURE_SCALE ?? 1.5));
|
||||
export const CAPTURE_SCALE = Math.max(1, Number(process.env.CAPTURE_SCALE ?? 1));
|
||||
export const VIDEO_SIZE = {
|
||||
width: VIEWPORT.width,
|
||||
height: VIEWPORT.height,
|
||||
};
|
||||
export const WEBM_BITRATE = process.env.WEBM_BITRATE ?? (CAPTURE_SCALE > 1 ? '18M' : '8M');
|
||||
|
||||
// Cold-open prompt. Punchy version of the user's intent — short enough that
|
||||
// the typing animation fits in the AI scene without throttling pushing past
|
||||
// the trim window. Each char costs ~80ms wall under boot CPU load.
|
||||
// Cold-open prompt. Punchy version of the user's intent, short enough to type
|
||||
// on camera without making the opening scene drag.
|
||||
export const PROMPT_TEXT =
|
||||
process.env.PROMPT_TEXT ?? 'Flats or terraces <£450k, 35 min to Manchester, low crime';
|
||||
|
||||
|
|
@ -66,16 +65,11 @@ export const INITIAL_MAP_VIEW = {
|
|||
zoom: 11.5,
|
||||
};
|
||||
|
||||
// Verification guard only. The renderer no longer uses this as an editing cap:
|
||||
// Verification guard only. The renderer does not use this as an editing cap:
|
||||
// if the storyboard needs more than 15 seconds to avoid jumps, keep the frames.
|
||||
export const MAX_DURATION_S = Number(process.env.MAX_DURATION_S ?? 45);
|
||||
export const MIN_DURATION_S = Number(process.env.MIN_DURATION_S ?? 10);
|
||||
|
||||
// Slow down all interactions while recording, then speed the output back up in
|
||||
// ffmpeg. A higher scale makes rendering take longer, but gives the 25fps raw
|
||||
// recorder enough unique frames for a smooth 50fps final without shortcut cuts.
|
||||
export const RECORD_SCALE = Math.max(1, Number(process.env.RECORD_SCALE ?? 3.5));
|
||||
|
||||
// Target fps of the FINAL output.
|
||||
export const OUTPUT_FPS = Number(process.env.OUTPUT_FPS ?? 50);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue