@aixlb/bcc
v0.3.4
Published
包拆拆 bcc —— 视频转剧本/分镜/风格指南的命令行(纯 Node,给 Agent/脚本对接)
Downloads
50
Maintainers
Readme
bcc · 包拆拆命令行
把视频转成剧本(docx/md/html)、分镜表(xlsx/html)或风格指南(md)的纯 Node 命令行。可独立使用,也便于其他大模型/Agent 脚本化对接。
安装
npm i -g @aixlb/bcc # 需 Node 20+;命令名为 bcc若你的 npm 用的是国内镜像、提示找不到包,直连官方源安装:
npm i -g @aixlb/bcc --registry https://registry.npmjs.org/
用法
bcc config set gemini.api_key sk-xxxx # 配置 API Key(申请: https://aistudio.google.com/apikey)
bcc config test # 测试连接
bcc script ./a.mp4 --out 剧本.docx # 拆剧本(--format docx,md,html)
bcc storyboard ./a.mp4 --out 分镜.xlsx # 拆分镜(--format xlsx,html)
bcc research a.mp4 b.mp4 --out 风格指南.md # 风格研究(或 --input-dir ./clips)
bcc --help对接约定(脚本/Agent)
- stdout 只输出产物绝对路径(每行一个),stderr 是进度,退出码 0 成功 / 1 失败。
- 加
--quiet让 stdout 只剩路径,便于管道捕获。 - 数据根用
--data-dir <dir>或BCC_DATA_DIR指定。
随附 ffmpeg-static / ffprobe-static,无需系统安装 ffmpeg。
