(projectPath)
| 438 | } |
| 439 | |
| 440 | async function probeMedia(projectPath) { |
| 441 | const mediaFiles = await listMedia(projectPath); |
| 442 | for (const mediaPath of mediaFiles) { |
| 443 | const name = `ffprobe-${path.basename(projectPath, ".cap")}-${path.basename(mediaPath).replaceAll(".", "-")}`; |
| 444 | const result = await runCommand(name, ffprobeBin, [ |
| 445 | "-v", |
| 446 | "error", |
| 447 | "-show_format", |
| 448 | "-show_streams", |
| 449 | "-print_format", |
| 450 | "json", |
| 451 | mediaPath, |
| 452 | ]); |
| 453 | summary.media.push({ |
| 454 | projectPath, |
| 455 | mediaPath, |
| 456 | probe: parseJsonOutput(result.stdout), |
| 457 | }); |
| 458 | } |
| 459 | } |
| 460 | |
| 461 | async function exportProject(projectPath) { |
| 462 | const output = path.join(runDir, `${path.basename(projectPath, ".cap")}.mp4`); |
no test coverage detected