Showcase Video Builder
简介
Showcase Video Builder
原始描述
Build polished showcase and demo videos from screenshots, avatars, and text overlays using ffmpeg. Use when creating demo reels, hackathon presentations, pro...
通过你的 Agent 添加
安装目录:showcase-video-builder/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: showcase-video-builder
description: Build polished showcase and demo videos from screenshots, avatars, and text overlays using ffmpeg. Use when creating demo reels, hackathon presentations, product walkthroughs, or social media video content from static assets. Requires ffmpeg.
version: 1.0.0
metadata:
{
"openclaw": {
"emoji": "\ud83c\udfac",
"requires": {
"bins": [
"ffmpeg"
],
"env": []
},
"primaryEnv": null,
"network": {
"outbound": false,
"reason": "Local ffmpeg operations only. No external network calls."
}
}
}
Showcase Video Builder
Turn screenshots and images into polished demo videos with Ken Burns pan/zoom effects, crossfade transitions, and text overlays. Built for hackathon teams and OSS projects that need showcase content without video editing software.
Core Patterns
Image Slideshow with Crossfades
ffmpeg -loop 1 -t 4 -i slide1.png \
-loop 1 -t 4 -i slide2.png \
-loop 1 -t 4 -i slide3.png \
-filter_complex \
"[0:v]scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2,setsar=1,fade=t=out:st=3:d=1[v0]; \
[1:v]scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2,setsar=1,fade=t=in:st=0:d=1,fade=t=out:st=3:d=1[v1]; \
[2:v]scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2,setsar=1,fade=t=in:st=0:d=1[v2]; \
[v0][v1][v2]concat=n=3:v=1:a=0[out]" \
-map "[out]" -c:v libx264 -pix_fmt yuv420p output.mp4
Ken Burns (Slow Zoom)
# Slow zoom in over 5 seconds
ffmpeg -loop 1 -t 5 -i image.png -filter_complex \
"scale=8000:-1,zoompan=z='min(zoom+0.0015,1.5)':x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)':d=150:s=1920x1080:fps=30" \
-c:v libx264 -pix_fmt yuv420p -t 5 zoomed.mp4
Text Overlay
# macOS: use /System/Library/Fonts/Helvetica.ttc
ffmpeg -i input.mp4 -vf \
"drawtext=text='Built in 48 Hours':fontfile=/System/Library/Fonts/Helvetica.ttc:fontsize=48:fontcolor=white:x=(w-text_w)/2:y=h-80:enable='between(t,2,5)'" \
-c:v libx264 -c:a copy output.mp4
Title Card (Solid Colour + Text)
ffmpeg -f lavfi -i "color=c=0x6366F1:s=1920x1080:d=3" -vf \
"drawtext=text='Your Project Name':fontfile=/System/Library/Fonts/Helvetica.ttc:fontsize=72:fontcolor=white:x=(w-text_w)/2:y=(h-text_h)/2" \
-c:v libx264 -pix_fmt yuv420p title.mp4
Concatenate Segments
# Create concat list
echo "file 'title.mp4'" > concat.txt
echo "file 'slides.mp4'" >> concat.txt
echo "file 'closing.mp4'" >> concat.txt
ffmpeg -f concat -safe 0 -i concat.txt -c copy final.mp4
Platform Tips
- LinkedIn: Autoplays muted — don't rely on audio. Use text overlays for key messages.
- Twitter/X: 2:20 max (free tier). 280 char caption limit. Media upload needs OAuth 1.0a.
- Resize for embedding: Avatars 150px, screenshots 600px, composites 700px. Keeps file under 5MB.
Lessons
- macOS font path:
/System/Library/Fonts/Helvetica.ttc — if drawtext fails, check this first
- Always use
-pix_fmt yuv420p — without it, some players show a green screen
- Ken Burns on large images is slow — pre-scale to 2x target resolution, not 8x
- ffmpeg 8.1 on macOS (Homebrew, arm64) does NOT have drawtext — no libfreetype built in. Use PIL/Pillow to generate title card PNGs instead:
from PIL import Image, ImageDraw, ImageFont
-shortest cuts video at audio end — when VO is shorter than video, always pad audio: -af "apad=whole_dur=90" or generate silence to fill
- Timed VO with
adelay — generate each narration line separately, then mix with adelay=<ms>|<ms> and amix=inputs=N:duration=longest:normalize=0, then add apad to hit target duration
- Ken Burns frame count —
zoompan needs explicit d=<frames> where frames = duration * fps. Calculate with python3 -c "print(int(dur * 30))"
Files
scripts/build_showcase.sh — Complete showcase builder script with configurable sections
# Slow zoom in over 5 seconds
ffmpeg -loop 1 -t 5 -i image.png -filter_complex \
"scale=8000:-1,zoompan=z='min(zoom+0.0015,1.5)':x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)':d=150:s=1920x1080:fps=30" \
-c:v libx264 -pix_fmt yuv420p -t 5 zoomed.mp4
# macOS: use /System/Library/Fonts/Helvetica.ttc
ffmpeg -i input.mp4 -vf \
"drawtext=text='Built in 48 Hours':fontfile=/System/Library/Fonts/Helvetica.ttc:fontsize=48:fontcolor=white:x=(w-text_w)/2:y=h-80:enable='between(t,2,5)'" \
-c:v libx264 -c:a copy output.mp4
Title Card (Solid Colour + Text)
ffmpeg -f lavfi -i "color=c=0x6366F1:s=1920x1080:d=3" -vf \
"drawtext=text='Your Project Name':fontfile=/System/Library/Fonts/Helvetica.ttc:fontsize=72:fontcolor=white:x=(w-text_w)/2:y=(h-text_h)/2" \
-c:v libx264 -pix_fmt yuv420p title.mp4
Concatenate Segments
# Create concat list
echo "file 'title.mp4'" > concat.txt
echo "file 'slides.mp4'" >> concat.txt
echo "file 'closing.mp4'" >> concat.txt
ffmpeg -f concat -safe 0 -i concat.txt -c copy final.mp4
Platform Tips
- LinkedIn: Autoplays muted — don't rely on audio. Use text overlays for key messages.
- Twitter/X: 2:20 max (free tier). 280 char caption limit. Media upload needs OAuth 1.0a.
- Resize for embedding: Avatars 150px, screenshots 600px, composites 700px. Keeps file under 5MB.
Lessons
- macOS font path:
/System/Library/Fonts/Helvetica.ttc — if drawtext fails, check this first
- Always use
-pix_fmt yuv420p — without it, some players show a green screen
- Ken Burns on large images is slow — pre-scale to 2x target resolution, not 8x
- ffmpeg 8.1 on macOS (Homebrew, arm64) does NOT have drawtext — no libfreetype built in. Use PIL/Pillow to generate title card PNGs instead:
from PIL import Image, ImageDraw, ImageFont
-shortest cuts video at audio end — when VO is shorter than video, always pad audio: -af "apad=whole_dur=90" or generate silence to fill
- Timed VO with
adelay — generate each narration line separately, then mix with adelay=<ms>|<ms> and amix=inputs=N:duration=longest:normalize=0, then add apad to hit target duration
- Ken Burns frame count —
zoompan needs explicit d=<frames> where frames = duration * fps. Calculate with python3 -c "print(int(dur * 30))"
Files
scripts/build_showcase.sh — Complete showcase builder script with configurable sections
ffmpeg -f lavfi -i "color=c=0x6366F1:s=1920x1080:d=3" -vf \
"drawtext=text='Your Project Name':fontfile=/System/Library/Fonts/Helvetica.ttc:fontsize=72:fontcolor=white:x=(w-text_w)/2:y=(h-text_h)/2" \
-c:v libx264 -pix_fmt yuv420p title.mp4
# Create concat list
echo "file 'title.mp4'" > concat.txt
echo "file 'slides.mp4'" >> concat.txt
echo "file 'closing.mp4'" >> concat.txt
ffmpeg -f concat -safe 0 -i concat.txt -c copy final.mp4
Platform Tips
- LinkedIn: Autoplays muted — don't rely on audio. Use text overlays for key messages.
- Twitter/X: 2:20 max (free tier). 280 char caption limit. Media upload needs OAuth 1.0a.
- Resize for embedding: Avatars 150px, screenshots 600px, composites 700px. Keeps file under 5MB.
Lessons
- macOS font path:
/System/Library/Fonts/Helvetica.ttc — if drawtext fails, check this first
- Always use
-pix_fmt yuv420p — without it, some players show a green screen
- Ken Burns on large images is slow — pre-scale to 2x target resolution, not 8x
- ffmpeg 8.1 on macOS (Homebrew, arm64) does NOT have drawtext — no libfreetype built in. Use PIL/Pillow to generate title card PNGs instead:
from PIL import Image, ImageDraw, ImageFont
-shortest cuts video at audio end — when VO is shorter than video, always pad audio: -af "apad=whole_dur=90" or generate silence to fill
- Timed VO with
adelay — generate each narration line separately, then mix with adelay=<ms>|<ms> and amix=inputs=N:duration=longest:normalize=0, then add apad to hit target duration
- Ken Burns frame count —
zoompan needs explicit d=<frames> where frames = duration * fps. Calculate with python3 -c "print(int(dur * 30))"
Files
scripts/build_showcase.sh — Complete showcase builder script with configurable sections
- macOS font path:
/System/Library/Fonts/Helvetica.ttc— if drawtext fails, check this first - Always use
-pix_fmt yuv420p— without it, some players show a green screen - Ken Burns on large images is slow — pre-scale to 2x target resolution, not 8x
- ffmpeg 8.1 on macOS (Homebrew, arm64) does NOT have drawtext — no libfreetype built in. Use PIL/Pillow to generate title card PNGs instead:
from PIL import Image, ImageDraw, ImageFont -shortestcuts video at audio end — when VO is shorter than video, always pad audio:-af "apad=whole_dur=90"or generate silence to fill- Timed VO with
adelay— generate each narration line separately, then mix withadelay=<ms>|<ms>andamix=inputs=N:duration=longest:normalize=0, then addapadto hit target duration - Ken Burns frame count —
zoompanneeds explicitd=<frames>where frames = duration * fps. Calculate withpython3 -c "print(int(dur * 30))"
Files
scripts/build_showcase.sh — Complete showcase builder script with configurable sections
scripts/build_showcase.sh — Complete showcase builder script with configurable sections正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。