pyJianYingDraft generates and exports JianYing (CapCut) draft files from Python for automated editing pipelines. It supports tracks, effects, subtitles, and template workflows with platform-specific limits.
Overview
pyJianYingDraft is a Python library for creating and exporting JianYing draft projects to build automated video cutting and remix pipelines. It offers a light, flexible way to script draft generation rather than manual timeline work.
Documented capabilities include local video and image segments with timing controls, audio with fades and effects, stickers, text styling, animations, filters, transitions, independent effect tracks, SRT subtitle import, and template loading from draftcontent.json with replacement of media and text. A feature matrix compares support between JianYing 5.9 and newer 10.8 releases.
Batch export that drives the JianYing app UI works on older JianYing versions on Windows; newer JianYing 7+ drops that automation path. Draft generation and template mode also run on Linux and macOS, but exported drafts still need Windows JianYing for final export.
Installation via pip is supported for Python 3.8 or 3.11 as tested by the authors.
Key features
- Programmatic JianYing draft files
- Video, audio, and image tracks
- Text, stickers, and subtitles
- Keyframes, masks, and transitions
- Template draft loading
- SRT subtitle import
- Automated export on older Windows
- CapCut version in development
Use cases
- Automating short-form video assembly
- Batching drafts from Python data
- Filling JianYing templates programmatically
- Building mixed-cut production pipelines