用途
video-overlay 是一个视频包装与动态图形技能,用于为视频添加专业化的视觉包装,提升整体质量。它适用于用户提出添加片头、片尾、字幕、转场、水印或下三分之一(lower thirds)等需求时。
主要能力
该技能提供以下核心功能:
- 片头/片尾(Intro/Outro):添加有吸引力的开场或专业的收尾,例如品牌 Logo 动画、“感谢观看”画面。
- 字幕/标题(Subtitles/Titles):叠加静态或动态文字信息,例如对话字幕、章节标题、行动号召文字。
- 转场(Transitions):在片段之间创建平滑或动态的过渡,例如场景间淡入淡出、擦除以显示下一镜头。
- 水印/边框(Watermark/Borders):添加版权信息或装饰性边框,例如角落的频道 Logo、电影感黑边。
- 下三分之一(Lower Thirds):显示姓名、地点或其他信息,例如受访者姓名与头衔、地点标识。
该技能同时支持 FFmpeg 和 MoviePy 作为后端引擎,并提供丰富的预设模板和灵活的自定义参数。
使用方式
该技能通过 Python 脚本调用,位于 /scripts/ 目录下。以下为资料中给出的使用示例:
添加水印:
用户请求:“Can you add my logo to this video? It should be in the top right corner.”(上传 my_video.mp4 和 logo.png)
Agent 使用 video-overlay:
python /home/ubuntu/skills/video-overlay/scripts/add_watermark.py --input my_video.mp4 --output video_with_watermark.mp4 --image logo.png --position top_right
添加字幕:
用户请求:“Add the subtitle 'Hello, world!' from 5 seconds to 10 seconds into the video.”(上传 my_video.mp4)
Agent 使用 video-overlay:
python /home/ubuntu/skills/video-overlay/scripts/add_subtitles.py --input my_video.mp4 --output video_with_subtitles.mp4 --text "Hello, world!" --start 00:00:05 --end 00:00:10 --style modern
资源
- /scripts/:包含所有功能的 Python 实现代码。
- /templates/presets.json:包含片头、字幕和下三分之一预设样式的 JSON 文件。
- /references/ffmpeg_moviepy_cheatsheet.md:FFmpeg 和 MoviePy 常用命令与技巧的速查表。
适用场景
当用户提出以下需求时适用:
- “Add an intro/outro to my video”
- “Put subtitles on this clip”
- “Create a transition between these two shots”
- “Add my logo as a watermark”
- “Put a title card at the beginning”
- “Add a lower third with my name and title”
限制
资料中未提供关于收费、价格、平台兼容性、性能限制或效果保证的具体信息。