MCPcopy Index your code
hub / github.com/CapSoftware/Cap / exportProject

Function exportProject

scripts/verify-recording-pipeline.mjs:461–495  ·  view source on GitHub ↗
(projectPath)

Source from the content-addressed store, hash-verified

459}
460
461async 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
497async function listMedia(dir) {
498 const result = [];

Callers 1

Calls 2

runCommandFunction · 0.85
parseJsonOutputFunction · 0.85

Tested by

no test coverage detected