Logo Capcut Export

Capcut Export

Cộng đồng
mrpaidsocial
capcut-export

Xuất bản dựng nhiều lớp hoàn chỉnh (cảnh quay + thẻ đồ họa + lớp phủ hiệu ứng alpha + phụ đề + SFX/nhạc/VO) thành bản nháp CapCut trên máy tính, trong đó MỌI thành phần vẫn chỉnh sửa được — các đoạn cảnh quay được chia tại ranh giới thu phóng, clip đồ họa riêng cho từng thẻ, lớp phủ hiệu ứng có alpha thực, phụ đề văn bản gốc, clip SFX cho từng điểm nhấn và các track nhạc/VO riêng biệt. Dùng khi ai đó nói “xuất sang CapCut”, “để tôi chỉnh sửa được trong CapCut”, “bản nháp CapCut”, “bàn giao bản dựng cho biên tập viên”, “mở bản render của tôi trong CapCut với các lớp” hoặc nhắc đến pyJianYingDraft / bản nháp JianYing / draft_content.json / draft_info.json / root_meta_info.json. Tạo bản nháp bằng pyJianYingDraft, sau đó áp dụng bản vá schema đang trong quá trình hoàn thiện cho CapCut hiện đại (~181.x) và đăng ký bản nháp. KHÔNG dùng để tự render video (đó là việc của kỹ năng dựng video) — kỹ năng này nhận bản dựng nhiều lớp đã hoàn tất và các lượt render tương ứng.

Add to TypingMind

Tổng quan

Nhà phát hànhmrpaidsocial
Kho mãmrpaidsocial-video-editor-agent
Tên kỹ năngcapcut-export
Sao
114
Bản fork
34
Tệp đi kèm
1
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 1 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được mrpaidsocial công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Capcut Export trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/mrpaidsocial/mrpaidsocial-video-editor-agent/tree/main/.claude/skills/capcut-export
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mrpaidsocial/mrpaidsocial-video-editor-agent.git /tmp/mrpaidsocial-video-editor-agent
mkdir -p .claude/skills
cp -r /tmp/mrpaidsocial-video-editor-agent/.claude/skills/capcut-export .claude/skills/capcut-export
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Capcut Export trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Capcut Export ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Capcut Export với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

CapCut Export

Turn a finished layered edit into a CapCut desktop draft where an editor can grab any element — nudge a caption, swap a card, mute one SFX hit — instead of receiving a baked MP4.

Honest status up front: the draft generation works and is well understood. The "modern CapCut opens it" step is a documented work-in-progress. pyJianYingDraft writes JianYing-era drafts; current CapCut desktop expects a newer schema. Before the patch described below, CapCut refused the draft with "Couldn't use project: unusual path". The patch is implemented in the script but has not been field-verified end to end on a current CapCut build. Treat the last mile as debugging work, not a guaranteed one-shot (see Debugging — the method is a diff against a native draft).

Prerequisites

  • macOS with CapCut desktop installed (drafts live in ~/Movies/CapCut/User Data/Projects/com.lveditor.draft/).
  • python3 with pyJianYingDraft in a venv (pip install pyJianYingDraft). Do not install globally; the library moves fast and its API varies between versions.
  • ffmpeg on PATH (or FFMPEG env var) — used to split the cards render pass and grab a cover thumbnail.
  • Optional: PIL (pip install pillow) if you want the procedural vignette PNG.
  • The finished edit's render passes (see next section). Rendering those is the edit skill's job, not this skill's.

Inputs — what the edit pipeline must hand you

InputWhat it is
Base footage file(s)The talking-head / footage video (already reframed to canvas aspect)
Cards-only passA render of the composition with only the graphic cards visible (opaque background is fine — cards are stacked as opaque clips)
Alpha fx passEverything that must composite over footage with transparency (progress bar, light leaks). Render with --format mov → true-alpha ProRes, yuva444p. An MP4 cannot carry alpha
Word-level transcriptJSON [{"text","start","end"},...] for native captions
VO / music / SFX filesThe exact audio used in the edit, one file per SFX hit name
The edit's timing dataZoom boundaries, card in/out times, SFX hit list, caption style beats — copied into the script's CONFIG block

Workflow

  1. Copy the template scripts/export-capcut-template.py into the edit's project folder and fill in the CONFIG block (durations, cards, hits, caption windows).
  2. Stage media to the local disk. The script does this automatically into ~/Movies/capcut-export-media (override with CAPCUT_MEDIA_DIR). This is not optional tidiness: media referenced by a draft from an external volume can trip macOS permission (TCC) prompts inside CapCut and break media resolution. Keep every referenced file on the boot disk.
  3. Build the draft: .venv/bin/python export-capcut-template.py — writes the draft to ~/Movies/capcut-draft-staging/<name>/.
  4. Patch the schema (see below): rerun with --skip-build --patch-native <path-to-a-native-draft-folder>.
  5. Quit CapCut completely (Cmd+Q), then --skip-build --install --register.
  6. Open CapCut. If the draft opens: verify tracks, done. If not: Debugging.

The schema gap (read this before blaming your CONFIG)

pyJianYingDraft targets the JianYing (Chinese CapCut) draft format:

  • writes draft_content.json with new_version: "110.0.0".

Current CapCut desktop (international) loads draft_info.json with new_version ≈ "181.0.0" and 8 extra top-level keys that the old schema lacks:

draft_type, function_assistant_info, is_drop_frame_timecode, lyrics_effects,
mixed_track_mode_on, path, smart_ads_info, uneven_animation_template_info

The fix implemented in --patch-native:

  1. On the target machine, create any throwaway project in CapCut natively (this gives you a draft written by that exact CapCut build).
  2. Clone those 8 keys from the native draft into the generated draft; copy the native new_version / version fields; set path to the draft's final installed folder.
  3. Write the result as BOTH filenames — draft_content.json and draft_info.json — so either loader path finds it.

Status, plainly: before this patch CapCut showed "Couldn't use project: unusual path"; the patched draft was not yet verified to open on the CapCut build that produced the error. Expect to iterate via the diff method below.

Draft installation and the registry

Copying the folder into com.lveditor.draft/ is not enough — CapCut only lists drafts that are registered in root_meta_info.json (top-level key all_draft_store).

Rules the script enforces / you must respect:

  • Back up root_meta_info.json first (script writes a timestamped .bak-*).
  • Only edit the registry while CapCut is fully quit — CapCut rewrites it on exit and will clobber (or crash on) concurrent edits. The script refuses to run --install/--register while a CapCut process exists.
  • New entries are made by cloning a native entry and fixing: draft_name, every path field containing the old name, a fresh uppercase-UUID draft_id, tm_duration (microseconds), timestamps, and draft_cover (the script grabs a frame with ffmpeg as draft_cover.jpg).

Track layout — mapping a layered edit onto CapCut tracks

Bottom → top:

TrackContentTechnique
footageBase videoSplit at every zoom boundary; each segment gets its own scale_x/scale_y in ClipSettings — that's how a punch-in stays editable
overlayPositioned second video (e.g. a head-card band during split-screen beats)ClipSettings(scale_x, scale_y, transform_y). Negative transform_y = down, positive = up (e.g. -0.5625 parks a 0.9556-scale band in the lower half of 9:16)
cardsOne opaque clip per graphic cardRender a cards-only pass of the composition, then ffmpeg-split it at card boundaries (-crf 16 -g 15 keeps cuts frame-accurate). Editors can retime/swap individual cards
fxONE alpha overlay for the whole timelineThe true-alpha ProRes .mov. Don't split it — it's a single ambient layer
image-NStatic PNGs (vignette etc.)PNG placed as image segments over specific windows
captionsNative TextSegmentsTextStyle(size, bold, italic, color), TextBorder(width, color), position via ClipSettings(transform_y=...). Fully editable text in CapCut
text-NCTAs / keyword popsSame as captions, on extra tracks
vo, music, sfx-NAudioOne clip per SFX hit so each hit is individually mutable/movable

Text-track hard rules

  • A track cannot hold overlapping segments. Two texts on screen at once must go on separate tracks — the script packs extra texts greedily onto text-1, text-2, …
  • Clamp caption windows strictly monotonic. Word-level timestamps from a transcriber routinely overlap; the script forces start ≥ prev_end + 2ms and end ≤ next_start − 40ms before creating segments. Skip this and add_segment throws (or worse, CapCut mis-renders).

pyJianYingDraft API gotchas

  • Clamp every segment duration to the material duration — d = min(d, material.duration/1e6 - source_start) — or the library throws. material.duration is in microseconds.
  • VideoSegment(material, target_timerange, source_timerange=…, volume=…, clip_settings=…) — source_timerange selects which slice of the file plays; omit it for stills/full clips.
  • TextStyle(italic=…) doesn't exist in every version — wrap in try/except TypeError and degrade to non-italic (the script does).
  • Time ranges are built with trange("12.5s", "0.8s") (start, duration).

Debugging

When CapCut refuses or mangles the draft, the method is a diff against a native draft made by that exact CapCut install:

  1. In CapCut, create a minimal native project: one video clip, one text, one audio. Quit CapCut.
  2. Pretty-print both drafts and diff: python3 -m json.tool <native>/draft_info.json > a.json (same for yours), then diff top-level keys first, then per-track/per-segment structure.
  3. Fix the highest-level differences first (missing keys, version strings, path), reinstall, retest. Iterate downward into track/material structure only if the draft opens but elements are broken.
  4. Registry problems look different from schema problems: a draft that never appears in the project list = registry; a draft that appears but errors on open = schema.
  5. If CapCut "repairs" your draft on open, immediately copy the repaired draft_info.json out and diff it against what you wrote — CapCut just told you the correct schema.

Scripts

  • scripts/export-capcut-template.py — the full exporter template. CONFIG block at top; --patch-native, --install, --register, --skip-build flags. Read its docstring before running.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Capcut Export làm được gì?

Xuất bản dựng nhiều lớp hoàn chỉnh (cảnh quay + thẻ đồ họa + lớp phủ hiệu ứng alpha + phụ đề + SFX/nhạc/VO) thành bản nháp CapCut trên máy tính, trong đó MỌI thành phần vẫn chỉnh sửa được — các đoạn cảnh quay được chia tại ranh giới thu phóng, clip đồ họa riêng cho từng thẻ, lớp phủ hiệu ứng có alpha thực, phụ đề văn bản gốc, clip SFX cho từng điểm nhấn và các track nhạc/VO riêng biệt. Dùng khi ai đó nói “xuất sang CapCut”, “để tôi chỉnh sửa được trong CapCut”, “bản nháp CapCut”, “bàn giao bản dựng cho biên tập viên”, “mở bản render của tôi trong CapCut với các lớp” hoặc nhắc đến pyJianYing...

Vì sao nên dùng Capcut Export trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Capcut Export là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Capcut Export trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/mrpaidsocial/mrpaidsocial-video-editor-agent/tree/main/.claude/skills/capcut-export. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Capcut Export?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Capcut Export với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Capcut Export với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Capcut Export có miễn phí không?

Kỹ năng này được mrpaidsocial phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇