Generates condensed album highlights based on specified keywords or targets. It extracts specific target segments from long videos and compiles them into an exciting summary. | 时光相册自定义浓缩分析技能,基于指定关键词/目标生成时光相册浓缩集锦,从长视频中提取特定目标片段,整理生成精彩汇总
This capability supports the automatic extraction of relevant clips from long-form videos based on specified keywords or target subjects, generating a condensed "Time Album" highlight reel. Users can set tags for specific people, pets, scenes, or events. Through advanced visual and semantic analysis, the system rapidly locates and edits together the most exciting moments while filtering out redundant content. Ideal for home videos, travel logs, and event recaps, it helps efficiently organize massive amounts of footage and automatically outputs emotionally rich, narratively coherent summary videos.
本技能支持基于指定的关键词或目标对象,从长时视频中自动提取相关片段,生成浓缩版时光相册集锦。用户可设定人物、宠物、场景或事件标签,系统通过视觉与语义分析快速定位并剪辑精彩瞬间,剔除冗余内容。适用于家庭录像、旅行记录、赛事回顾等场景,帮助高效整理海量素材,自动输出情感丰富、叙事连贯的汇总视频。
本技能明确约定:
memory/YYYY-MM-DD.md、MEMORY.md 等本地文件python -m scripts.custom_timelapse --list --open-id 参数调用 API
查询云端的历史报告数据requests>=2.28.0
在执行时光相册浓缩分析前,必须按以下优先级顺序获取 open-id:
第 1 步:【最高优先级】检查技能所在目录的配置文件(优先)
路径:skills/smyx_common/scripts/config.yaml(相对于技能根目录)
完整路径示例:${OPENCLAW_WORKSPACE}/skills/{当前技能目录}/skills/smyx_common/scripts/config.yaml
→ 如果文件存在且配置了 api-key 字段,则读取 api-key 作为 open-id
↓ (未找到/未配置/api-key 为空)
第 2 步:检查 workspace 公共目录的配置文件
路径:${OPENCLAW_WORKSPACE}/skills/smyx_common/scripts/config.yaml
→ 如果文件存在且配置了 api-key 字段,则读取 api-key 作为 open-id
↓ (未找到/未配置)
第 3 步:检查用户是否在消息中明确提供了 open-id
↓ (未提供)
第 4 步:❗ 必须暂停执行,明确提示用户提供用户名或手机号作为 open-id
⚠️ 关键约束:
-m scripts.custom_timelapse 处理视频(必须在技能根目录下运行脚本)--input: 本地视频文件路径(使用 multipart/form-data 方式上传)--url: 网络视频 URL 地址(API 服务自动下载)--text: 自定义提取目标/关键词描述--open-id: 当前用户的 open-id(必填,按上述流程获取)--list: 显示历史时光相册浓缩分析报告列表清单(可以输入起始日期参数过滤数据范围)--api-key: API 访问密钥(可选)--api-url: API 服务地址(可选,使用默认值)--detail: 输出详细程度(basic/standard/json,默认 json)--output: 结果输出文件路径(可选)时光相册浓缩分析报告-{记录id}
形式拼接, "点击查看"列使用
[🔗 查看报告](reportImageUrl)
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。| 报告名称 | 自定义目标 | 分析时间 | 提取片段数 | 点击查看 |
|---|---|---|---|---|
| 时光相册浓缩分析报告 -20260328221000001 | 所有出现猫的镜头 | 2026-03-28 22:10:00 | ||
| 8段 | 🔗 查看报告 |
# 浓缩本地视频,提取特定目标(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.custom_timelapse --input /path/to/vacation.mp4 --text "提取所有孩子出镜的片段" --open-id openclaw-control-ui
# 浓缩网络视频,自定义提取目标(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.custom_timelapse --url https://example.com/family.mp4 --text "只提取风景镜头" --open-id openclaw-control-ui
# 显示历史浓缩报告/显示浓缩报告清单列表/显示历史时光相册(自动触发关键词:查看历史浓缩报告、历史报告、浓缩报告清单等)
python -m scripts.custom_timelapse --list --open-id openclaw-control-ui
# 输出精简报告
python -m scripts.custom_timelapse --input video.mp4 --text "提取车的片段" --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.custom_timelapse --input video.mp4 --text "提取狗的片段" --open-id your-open-id --output result.json