Skip to main content

帮助剪映快速生成草稿的方案

Project description

JianYingDraft.PY

项目简介

项目来源于 https://github.com/xiaoyiv/JianYingProDraft 因为原始库旷日持久没有更新,所以自己动手丰衣足食,基于此项目进行二次开发。 虽说是二次开发,但跟原始项目相比早就“肝胆楚越也”,因此也就没有对原始项目进行fork。

说明

  1. 实现原理 : 剪映的草稿文件是 json 的形式存储的。我们只需要创建draft_content.json,draft_mate_info.json ,其他文件则会在打开剪映软件后会自动补全。
  2. 添加一个媒体到轨道顺序 草稿媒体库 -> 内容媒体库-> 轨道片段
  3. add_material 会识别媒体类型,加入到对应轨道。
  4. 当没有视频轨道时,创建音频轨道会先创建视频轨道。

使用前先修改配置文件_projectConfig.ini内,剪映草稿文件夹路径为你本地正确的路径。

drafts_root=Z:/jianying/Data/JianyingPro Drafts

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jianyingdraft_py-0.1.1.tar.gz (10.1 kB view hashes)

Uploaded Source

Built Distribution

jianyingdraft_py-0.1.1-py3-none-any.whl (15.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page