Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Copy-paste recipes for common CapCut / JianYing workflows. Every recipe is one s

| Recipe | Use case |
|---|---|
| [compile-local-clip.md](./compile-local-clip.md) | Build one CapCut draft from a local video with `capcut compile` |
| [cut-to-shorts.md](./cut-to-shorts.md) | Slice one long video into multiple shorts |
| [batch-fix-subtitles.md](./batch-fix-subtitles.md) | Fix typos and re-sync timing in one pass |
| [build-short-from-scratch.md](./build-short-from-scratch.md) | CLI-only: clip + VO + music + title → finished short |
Expand Down
13 changes: 13 additions & 0 deletions examples/compile-local-clip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Compile one local clip into a CapCut draft

This example creates a five-second vertical draft from a video already included in this repository. It does not download media or use an online service.

From the repository root, run:

```sh
capcut compile examples/local-clip-compile.json
```

The media path in the spec is relative to the spec file, so it works from any clone of this repository. The command places the new draft in CapCut's drafts folder. Open CapCut and look for **Local Clip Example**.

Verified by the contributor: the example draft opens in CapCut 9.8.0.4213 on Windows.
20 changes: 20 additions & 0 deletions examples/local-clip-compile.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "Local Clip Example",
"width": 1080,
"height": 1920,
"fps": 30,
"ratio": "9:16",
"tracks": [
{
"type": "video",
"name": "Video",
"items": [
{
"path": "../media/cleopatra-family-faces-short.mp4",
"start": 0,
"duration": 5
}
]
}
]
}
Loading