(file: string)
| 86 | }; |
| 87 | |
| 88 | const 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 | |
| 96 | const readTimeline = (artifact: Artifact): Timeline | null => { |
| 97 | if (!artifact.runDir) return null; |