MCPcopy
hub / github.com/midrender/revideo / getDuration

Method getDuration

packages/2d/src/lib/utils/video/parser/parser.ts:216–221  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

214 }
215
216 public getDuration() {
217 return this.edits.reduce(
218 (acc, edit) => acc + this.getSecondDurationOfSegment(edit),
219 0,
220 );
221 }
222
223 private getTimeSubtractingFrames(frames: number) {
224 const durationOfPastSegmentsInSeconds = this.edits

Callers 6

getNextFrameMethod · 0.95
completionFunction · 0.80
clampTimeFunction · 0.80
ffmpegSeekedVideoMethod · 0.80
getFrameFunction · 0.80
getMediaAssetsMethod · 0.80

Calls 1

Tested by

no test coverage detected