(file: string)
| 30 | |
| 31 | const run = (cmd: string, args: string[]) => execFileSync(cmd, args, { stdio: "pipe" }); |
| 32 | const 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. |
no test coverage detected