← 返回
内容创作

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...
使用 ffmpeg 将截图、头像和文字叠加制作精美的展示和演示视频,适用于演示视频、黑客马拉松展示、专业作品集等场景。
nissan
内容创作 clawhub v1.0.2 2 版本 99893 Key: 无需
★ 0
Stars
📥 934
下载
💾 32
安装
2
版本
#latest

概述

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=| and amix=inputs=N:duration=longest:normalize=0, then add apad to hit target duration
  • Ken Burns frame countzoompan needs explicit d= where frames = duration fps. Calculate with python3 -c "print(int(dur 30))"

Files

  • scripts/build_showcase.sh — Complete showcase builder script with configurable sections

版本历史

共 2 个版本

  • v1.0.2 当前
    2026-05-23 15:49 安全 安全
  • v1.0.0
    2026-03-30 03:55 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 860 📥 200,074
content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 295 📥 136,530
data-analysis

Observability Lgtm

nissan
Set up a full local LGTM observability stack (Loki + Grafana + Tempo + Prometheus + Alloy) for FastAPI apps. One Docker
★ 0 📥 967