MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / probeSeconds

Function probeSeconds

e2e/scripts/film.ts:32–40  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

30
31const run = (cmd: string, args: string[]) => execFileSync(cmd, args, { stdio: "pipe" });
32const probeSeconds = (file: string): number =>
33 Number(
34 execFileSync("ffprobe", [
35 ...["-v", "quiet", "-show_entries", "format=duration"],
36 ...["-of", "csv=p=0", file],
37 ])
38 .toString()
39 .trim(),
40 );
41
42// ---------------------------------------------------------------------------
43// Build the cut list: acts of { source, from, to } in each source's clock.

Callers 2

actsFromTimelineFunction · 0.85
actsFromHeuristicFunction · 0.85

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected