帮助剪映快速生成草稿的方案
Project description
JianYingDraft.PY
项目简介
项目来源于 https://github.com/xiaoyiv/JianYingProDraft
因为原始库旷日持久没有更新,所以自己动手丰衣足食,基于此项目进行二次开发。
虽说是二次开发,但跟原始项目相比早就“肝胆楚越也”,因此也就没有对原始项目进行fork。
▌参考资料: 剪映草稿文件的说明,另外可以参考文章:https://blog.csdn.net/a820206256/article/details/134428639
剪映的草稿原理说明
- 实现原理 : 剪映的草稿文件是
json的形式存储的。我们只需要创建draft_content.json和draft_mate_info.json(其他文件则会在打开剪映软件后会自动补全)。两个文件内都记录了素材信息,其中:draft_mate_info.json内的素材信息会出现在剪映左侧的素材库中;draft_content.json的素材信息会出现在剪映下侧的时间线上。 - 添加一个媒体素材到剪映软件,剪映会将其数据记录进入“草稿元数据库” 和 “草稿内容库”(包括素材部分和轨道部分)
本软件的实现原理说明
add_media会识别媒体类型,加入到对应轨道。- 当没有视频轨道时,创建音频轨道会先创建视频轨道。
使用步骤与说明
- 使用前先修改配置文件
_projectConfig.ini内,剪映草稿文件夹路径为你本地正确的路径。drafts_root=Z:/jianying/Data/JianyingPro Drafts
- 根据自己的需求修改
main.py内的代码。运行main.py。
Project details
Release history Release notifications | RSS feed
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-1.0.1.tar.gz
(16.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jianyingdraft_py-1.0.1.tar.gz.
File metadata
- Download URL: jianyingdraft_py-1.0.1.tar.gz
- Upload date:
- Size: 16.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.2 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc681078357dd2db8c57b465305210d47dddc692f272146ba3beb65f4ffa0fba
|
|
| MD5 |
06ff23d263ef6f06a64b6992a37b11cb
|
|
| BLAKE2b-256 |
82b8cdb310b0c9a9f52618cd1476cda2795b72b4d3db1838e9d84d9e0ce536cf
|
File details
Details for the file jianyingdraft_py-1.0.1-py3-none-any.whl.
File metadata
- Download URL: jianyingdraft_py-1.0.1-py3-none-any.whl
- Upload date:
- Size: 24.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.2 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c79a3962e97e62cd0b5940a53291637559237df70068af090e8fc69ac09141e
|
|
| MD5 |
1a36fdc8e58b73e87633238cb7963248
|
|
| BLAKE2b-256 |
5eec495db4562100688dec98cfe411ceed1bb10803984eb078dadb16d982cb1a
|