Milestone v1 (v2.0.0): Mokosh — Session Capture #1
@@ -55,13 +55,18 @@ import { tmpdir } from 'node:os';
|
|||||||
import type { VideoSegment } from '../../src/shared/types';
|
import type { VideoSegment } from '../../src/shared/types';
|
||||||
|
|
||||||
const here = dirname(fileURLToPath(import.meta.url));
|
const here = dirname(fileURLToPath(import.meta.url));
|
||||||
const FIXTURE_PATH = resolve(here, '..', '..', 'tests', 'fixtures', 'last_30sec.webm');
|
// Plan 01-08 Task 5 closeout note (2026-05-17): `tests/fixtures/last_30sec.webm`
|
||||||
|
// is now the post-remux OUTPUT (single-EBML, validated by webm-playback.test.ts).
|
||||||
|
// These unit tests need the pre-remux INPUT shape (3-EBML concat), so they
|
||||||
|
// read from the preserved raw fixture instead.
|
||||||
|
const FIXTURE_PATH = resolve(here, '..', '..', 'tests', 'fixtures', 'raw-3ebml-concat.webm');
|
||||||
const FFPROBE_BIN = '/usr/bin/ffprobe';
|
const FFPROBE_BIN = '/usr/bin/ffprobe';
|
||||||
|
|
||||||
// Byte offsets of each EBML header in `tests/fixtures/last_30sec.webm`,
|
// Byte offsets of each EBML header in `tests/fixtures/raw-3ebml-concat.webm`,
|
||||||
// per the d13 debug session probe (Evidence/H4 byte-level EBML probe).
|
// per the d13 debug session probe (Evidence/H4 byte-level EBML probe).
|
||||||
// Verified at Plan 01-08 Task 2 land time against the committed
|
// Verified at Plan 01-08 Task 2 land time against the original committed
|
||||||
// fixture: offsets [0, 509038, 970967]; total 1_633_459 bytes.
|
// fixture (now preserved as raw-3ebml-concat.webm): offsets [0, 509038, 970967];
|
||||||
|
// total 1_633_459 bytes.
|
||||||
const SEG1_START = 0;
|
const SEG1_START = 0;
|
||||||
const SEG2_START = 509038;
|
const SEG2_START = 509038;
|
||||||
const SEG3_START = 970967;
|
const SEG3_START = 970967;
|
||||||
|
|||||||
BIN
tests/fixtures/last_30sec.webm
vendored
BIN
tests/fixtures/last_30sec.webm
vendored
Binary file not shown.
BIN
tests/fixtures/raw-3ebml-concat.webm
vendored
Normal file
BIN
tests/fixtures/raw-3ebml-concat.webm
vendored
Normal file
Binary file not shown.
Reference in New Issue
Block a user