(file: string, args?: readonly string[])
| 86 | } |
| 87 | |
| 88 | async function execute(file: string, args?: readonly string[]) { |
| 89 | const { execa } = await import("execa"); |
| 90 | |
| 91 | logger.log(`execute: ${basename(file)}`, { args }); |
| 92 | const childProcess = await execa(file, args); |
| 93 | |
| 94 | if (childProcess.exitCode !== 0) { |
| 95 | logger.error("Non-zero exit code", { |
| 96 | stderr: childProcess.stderr, |
| 97 | stdout: childProcess.stdout, |
| 98 | }); |
| 99 | throw new Error("Non-zero exit code"); |
| 100 | } |
| 101 | |
| 102 | return childProcess; |
| 103 | } |
| 104 | |
| 105 | async function probeVideo() { |
| 106 | const ffprobe = await getFfprobe(); |
no test coverage detected
searching dependent graphs…