Download scripts/export-beat.sh from build-small-hackathon/microfactory-lab: direct link, hf CLI and curl.
- Browser
- Download file 626 Bytes
-
https://huggingface.co/spaces/build-small-hackathon/microfactory-lab/resolve/main/scripts/export-beat.sh
- Command line
-
hf download hf://spaces/build-small-hackathon/microfactory-lab/scripts/export-beat.sh
-
curl -L -o export-beat.sh https://huggingface.co/spaces/build-small-hackathon/microfactory-lab/resolve/main/scripts/export-beat.sh
626 Bytes
| # Export a Cap Studio .cap project to an MP4 ready for assembly. | |
| # | |
| # Usage: | |
| # ./scripts/export-beat.sh path/to/beat.cap beat.mp4 | |
| # | |
| # Defaults match the live Space recording settings (1707x1067, 60fps, maximum quality). | |
| set -euo pipefail | |
| SOURCE="${1:?Usage: $0 <project.cap> <output.mp4>}" | |
| DEST="${2:?Usage: $0 <project.cap> <output.mp4>}" | |
| source ~/projects/cap-cli-skill/setup.sh 2>/dev/null || true | |
| echo "Exporting $(basename "$SOURCE") -> $(basename "$DEST")..." | |
| cap export "$SOURCE" "$DEST" \ | |
| --resolution 1707x1067 \ | |
| --fps 60 \ | |
| --quality maximum \ | |
| --format mp4 | |
| echo "✓ Exported $DEST" | |