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

Function videoDuration

e2e/scripts/pr-media.ts:88–94  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

86};
87
88const videoDuration = (file: string): number =>
89 Number(
90 run("ffprobe", [
91 ...["-v", "quiet", "-show_entries", "format=duration"],
92 ...["-of", "csv=p=0", file],
93 ]).trim(),
94 );
95
96const readTimeline = (artifact: Artifact): Timeline | null => {
97 if (!artifact.runDir) return null;

Callers 1

toGifFunction · 0.85

Calls 1

runFunction · 0.70

Tested by

no test coverage detected