pipixia-drama-producer

皮皮虾职场短剧全流程制作技能。用于为「皮皮虾」(机械龙虾AI-bot)职场短剧生成镜头视频、剪辑成片、配音配乐并发布到飞书群。完整流程:图生视频(I2V) → ffmpeg规范化+剪辑 → TTS配音 → BGM混音 → 飞书媒体消息发送。当用户提到制作皮皮虾短剧、生成新镜头、剪辑视频、配音配乐、或将视频/音频发送到飞书群时激活。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "pipixia-drama-producer" with this command: npx skills add kylinr/pipixia-drama-producer

皮皮虾短剧制作技能

完整的职场动物短剧制作流程,从剧本到飞书发布。

环境变量配置

使用前请设置以下环境变量:

变量名必填说明
FEISHU_APP_ID飞书应用 App ID(发送消息用)
FEISHU_APP_SECRET飞书应用 App Secret
FFMPEG可选ffmpeg 路径(默认从 PATH 查找)
FFPROBE可选ffprobe 路径(默认从 PATH 查找)
EDGE_TTS可选edge-tts 路径(默认从 PATH 查找 node-edge-tts

飞书应用权限要求im:message:sendim:fileim:image

角色与剧本参考

详见 references/drama-reference.md,包含:

  • 角色设定与prompt模板
  • ffmpeg关键命令速查
  • TTS音色对照表
  • 飞书API速查

核心工作流

第一步:生成镜头(I2V图生视频)

# 必须用 reference_type="first_frame",不要用 "subject"
gen_videos([{
    "image_file": "/workspace/lobster_robot.png",
    "output_file": "/workspace/shot.mp4",
    "prompt": "cute orange lobster robot [动作], ...",
    "reference_type": "first_frame"
}])

第二步:规范化 + 砍首秒

每个图生视频第一秒是原图静帧,必须裁掉:

python3 scripts/normalize_and_trim.py input.mp4 output_trim.mp4 --trim 1

第三步:剪辑合并

# 写concat列表,用Python避免shell语法问题
python3 -c "
clips = ['clip1_trim.mp4', 'clip2_trim.mp4', ...]
with open('/tmp/concat.txt', 'w') as f:
    for c in clips: f.write(f\"file '{c}'\n\")
"
ffmpeg -y -f concat -safe 0 -i /tmp/concat.txt -c copy output.mp4

剪辑技巧

  • 在关键台词后插入1.5s反应镜头(增加喜剧节奏)
  • 砍掉所有图生视频开头静帧(-ss 1)

第四步:TTS配音

node-edge-tts -t "台词内容" -f output.mp3 -v zh-CN-YunxiaNeural -l zh-CN

⚠️ TTS台词时长不能超过对应视频片段时长,过长需用 atempo=1.1~1.2 加速:

ffmpeg -y -i input.mp3 -filter:a "atempo=1.15" output.mp3

第五步:混音(配音+配乐)

使用 mix_audio.py 将多条TTS台词按时间轴叠加,并加入BGM:

python3 scripts/mix_audio.py \
  --video drama_cut.mp4 \
  --bgm bgm_sneaky.mp3 \
  --bgm-volume 0.25 \
  --output drama_dubbed.mp4 \
  --lines "0.3:tts_line1.mp3" "5.1:tts_line2.mp3" "12.0:tts_line3.mp3"

BGM推荐下载地址(Kevin MacLeod CC BY 3.0):

curl -sL "https://incompetech.com/music/royalty-free/mp3-royaltyfree/Sneaky%20Snitch.mp3" -o bgm.mp3

第六步:发送到飞书

# 提取封面
ffmpeg -y -i video.mp4 -ss 00:00:00.5 -frames:v 1 -update 1 cover.jpg

# 发送视频(媒体气泡),chat_id 为目标群组 ID
bash scripts/send_video.sh video.mp4 cover.jpg <chat_id>

# 发送音频语音消息
bash scripts/send_audio.sh "要播报的文字" <chat_id> "zh-CN-YunxiaNeural"

依赖工具

工具环境变量默认值
ffmpegFFMPEGffmpeg(PATH)
ffprobeFFPROBEffprobe(PATH)
edge-ttsEDGE_TTSnode-edge-tts(PATH)
飞书凭证FEISHU_APP_ID / FEISHU_APP_SECRET无(必填)

版本管理惯例

每次重要修改用v2/v3...命名输出文件,保留历史版本方便回退:

  • drama_ep1_v1.mp4drama_ep1_v2.mp4 → ...
  • 在工作目录记录每个版本的剪辑结构

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

一键收藏抖音B站视频到你的飞书多维表格

抖音/B站视频收藏入库——接收视频链接,自动抓取信息、生成总结、分类、入库飞书多维表格。触发词:视频入库 / 收藏视频 / 帮我整理这个视频。

Registry SourceRecently Updated
470Profile unavailable
General

Fanqie Novel AI Video Drama Batch Generator

Batch generates complete AI video dramas from multi-chapter novels with covers, titles, tags, and outputs for TikTok serialization.

Registry SourceRecently Updated
1170Profile unavailable
Automation

TikTok Viral Editor

Scenario-focused Sparki skill for TikTok-native pacing and viral-style edits while using the latest official Sparki setup, API-key, and upload workflow guida...

Registry SourceRecently Updated
2880Profile unavailable
Automation

Faceless Video

Scenario-focused Sparki skill for faceless or no-camera-presence outputs while using the latest official Sparki setup, API-key, and upload workflow guidance.

Registry SourceRecently Updated
3700Profile unavailable