diff --git a/examples/README.md b/examples/README.md index f2dff91..a053117 100644 --- a/examples/README.md +++ b/examples/README.md @@ -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 | diff --git a/examples/compile-local-clip.md b/examples/compile-local-clip.md new file mode 100644 index 0000000..32caa33 --- /dev/null +++ b/examples/compile-local-clip.md @@ -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. diff --git a/examples/local-clip-compile.json b/examples/local-clip-compile.json new file mode 100644 index 0000000..6190621 --- /dev/null +++ b/examples/local-clip-compile.json @@ -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 + } + ] + } + ] +}