Skip to content

fix: draft is not shown from "projects" from CapCut #32

Closed

Description

@jjangga0214

Hi!

I've followed the command, but I cannot see the new project from CapCut GUI (even after the restart).
A new folder is created in ~/Movies/CapCut/User\ Data/Projects/com.lveditor.draft, but CapCut does not recognize it.

Image

Thanks for this project!
Sincerely,

Activity

  1. renezander030 commented on Jun 9, 2026

    @renezander030
    Owner

    Hi, thanks for the clear report and the screenshot. You found a real bug.

    CapCut's GUI doesn't scan the Projects folder; it lists drafts from a central root_meta_info.json index at the root of com.lveditor.draft/. init was creating the folder but never registering it there, so the draft stayed invisible.

    Fix is up in #33: init now adds the draft to root_meta_info.json (and writes the per-folder draft_meta_info.json sidecar). Restart CapCut once after creating and it should appear. It clones the shape of an existing entry to match your CapCut version and backs the index up to .bak before writing.

    If you can try the branch, I'd love to confirm it works on your setup before merging.

    Rene

  2. YacAttack commented on Jun 15, 2026

    @YacAttack

    Confirming this on CapCut 8.7 (Windows) — CLI-built drafts are invisible to the app

    Repro on Windows 10, CapCut 8.7.0.3685, capcut-cli 0.9.0 (npm):

    1. init a draft (had to pass --template explicitly — the default ../CapCutAPI/template isn't shipped in the npm package), then add-video / add-audio / import-srt. capcut-cli info shows the timeline correctly (3 tracks: video + audio + 23 caption objects).
    2. Open the project in CapCut → it loads the old/empty sample, not the CLI-built timeline.

    Root cause looks like a canonical-file mismatch: the CLI reads/writes draft_content.json, but CapCut 8.7 appears to drive the timeline from template-2.tmp and draft_meta_info.json (both still referenced the original sample example.mp4; my draft_content.json edits were intact on disk but ignored by the app). Editing the draft while CapCut is running also gets clobbered on exit.

    Two extra data points:

    • add-video mis-detected a 1080×1920 portrait file as 1920×1080.
    • Externally-init'd drafts don't appear in CapCut's Projects list at all (not registered in root_meta_info.json) — I had to overwrite an app-created project just to open one.

    Happy to share the full draft JSON if useful. Thanks for the tool!

  3. added a commit that references this issue on Jun 15, 2026
  4. added a commit that references this issue on Jun 15, 2026
  5. renezander030 commented on Jun 15, 2026

    @renezander030
    Owner

    Hi @YacAttack, this is an excellent report. You actually found three separate things, so let me split them out and say where each one landed.

    1. Drafts not appearing in the Projects list. This is the original #32 bug. Fixed and merged in #33: init now registers the draft in root_meta_info.json and writes the per-folder draft_meta_info.json sidecar, so you should no longer have to overwrite an app-created project to open one. Restart CapCut once after init.

    2. Portrait detected as landscape. Fixed and merged in #34. It wasn't really misdetection: add-video did no probing at all and defaulted to 1920x1080. It now auto-detects dimensions with ffprobe and respects the rotation / Display Matrix side data, so portrait sources come out upright. If ffprobe isn't on the host it falls back to 1920x1080 and warns you to pass --width/--height, which now also exist as explicit overrides.

    3. Timeline edits ignored (the big one). This is separate from #33 and more serious, so I split it into #35. The CLI reads and writes draft_content.json, and every edit lands there correctly (your capcut info confirms it). If CapCut 8.7 on Windows is driving the timeline from template-2.tmp plus draft_meta_info.json instead, then the edits are right on disk but the app never looks at them. To confirm and fix it on the right file (behind a version check so older CapCut isn't broken), could you zip and share a full affected draft folder, specifically:

    draft_content.json, draft_meta_info.json, and template-2.tmp

    Separately: editing a draft while CapCut is open will always get clobbered, since CapCut holds the project in memory and flushes on exit. Edit with the app closed, then open it.

    One more thing you hit: the default ../CapCutAPI/template not shipping is already fixed in v0.10 — there's now a bundled template, so --template is optional. If you were on 0.9.0 that's why you had to pass it; please upgrade.

    Yes, the full draft JSON would be very useful for #35. Thanks again for the detail here.

    Rene

  6. added a commit that references this issue on Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions