(projectPath)
| 459 | } |
| 460 | |
| 461 | async function exportProject(projectPath) { |
| 462 | const output = path.join(runDir, `${path.basename(projectPath, ".cap")}.mp4`); |
| 463 | const result = await runCommand( |
| 464 | `export-${path.basename(projectPath, ".cap")}`, |
| 465 | capBin, |
| 466 | [ |
| 467 | "--log-level", |
| 468 | "debug", |
| 469 | "--json", |
| 470 | "export", |
| 471 | projectPath, |
| 472 | "--output", |
| 473 | output, |
| 474 | ], |
| 475 | ); |
| 476 | const probeResult = await runCommand( |
| 477 | `ffprobe-export-${path.basename(projectPath, ".cap")}`, |
| 478 | ffprobeBin, |
| 479 | [ |
| 480 | "-v", |
| 481 | "error", |
| 482 | "-show_format", |
| 483 | "-show_streams", |
| 484 | "-print_format", |
| 485 | "json", |
| 486 | output, |
| 487 | ], |
| 488 | ); |
| 489 | summary.exports.push({ |
| 490 | projectPath, |
| 491 | output, |
| 492 | result: parseJsonOutput(result.stdout), |
| 493 | probe: parseJsonOutput(probeResult.stdout), |
| 494 | }); |
| 495 | } |
| 496 | |
| 497 | async function listMedia(dir) { |
| 498 | const result = []; |
no test coverage detected