Videos
This commit is contained in:
parent
b98f0e3904
commit
a8165249a4
24 changed files with 1486 additions and 105 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import { execFileSync } from 'node:child_process';
|
||||
import { existsSync, statSync } from 'node:fs';
|
||||
import { OUTPUT_DIR } from './config.js';
|
||||
import { viewportFor, type Storyboard } from './script.js';
|
||||
import { recordedSizeFor, type Storyboard } from './script.js';
|
||||
import { getStoryboard } from './storyboard.js';
|
||||
|
||||
interface Probe {
|
||||
|
|
@ -58,7 +58,7 @@ function verifyVideo(path: string, storyboard: Storyboard) {
|
|||
const stream = data.streams?.[0];
|
||||
if (!stream) fail(`${path} has no video stream`);
|
||||
|
||||
const expectedSize = viewportFor(storyboard.video);
|
||||
const expectedSize = recordedSizeFor(storyboard.video);
|
||||
const { minDurationS, maxDurationS, outputFps } = storyboard.video;
|
||||
|
||||
const duration = Number(data.format?.duration ?? 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue