Skip to content
video-production logo

Video Production

video-production

Video downloading, stitching, title slides, and YouTube descriptions. Use this skill when downloading videos from Google Drive, creating title slides, stitching multiple videos together, or generating YouTube descriptions with timestamps. Triggers on video course creation, video editing, video co...

SKILL.md

Full skill instructions

Video Production

Overview

Assemble course videos from individual lesson files with title slides and auto-generated timestamps for YouTube.

Quick Decision Tree

What do you need?
│
├── Full course assembly (end-to-end)
│   └── references/​workflow.md
│   └── Combines all scripts below
│
├── Download videos from Drive
│   └── Script: scripts/​gdrive_video_download.py
│
├── Create title slides
│   └── Script: scripts/​create_title_slides.py
│
├── Stitch videos together
│   └── Script: scripts/​stitch_videos.py
│
└── Generate YouTube description
    └── Script: scripts/​generate_youtube_description.py

Environment Setup

Google Drive OAuth (same as google-workspace skill).

System Requirements

  • FFmpeg installed and in PATH
  • Python 3.9+

Complete Workflow

# Full course assembly from Drive folder
python scripts/​stitch_videos.py \
  --folder "https://drive.google.com/​drive/​folders/​xxx" \
  --output "Complete Course.mp4" \
  --slide-duration 3

Pipeline Steps

  1. Download - Get all videos from Drive folder
  2. Parse Titles - Extract clean names from [e1] Intro format
  3. Get Metadata - FFprobe for duration/​resolution
  4. Generate Slides - Title card for each lesson
  5. Build Concat List - video1 → slide2 → video2 → ...
  6. Stitch with FFmpeg - Concatenate all segments
  7. Calculate Timestamps - Track cumulative duration
  8. Generate Description - YouTube-ready markdown

Outputs

FileDescription
{output_name}.mp4Final stitched video
youtube_description.mdTimestamped description
metadata.jsonProcessing info

Performance

InputTimeOutput Size
5 videos (30 min)~5 min~1.5 GB
10 videos (1 hr)~10 min~3 GB
20 videos (2 hr)~20 min~6 GB

Security Notes

Credential Handling

  • Google OAuth credentials for Drive access (see google-workspace skill)
  • mycreds.txt and client_secrets.json never committed to git
  • No additional API keys required for local video processing

Data Privacy

  • All video processing happens locally using FFmpeg
  • No video content is uploaded to external cloud services
  • Source videos downloaded from Google Drive to local .tmp/
  • Final videos stored locally until manually uploaded
  • Metadata JSON contains file names and timestamps only

Access Scopes

  • Google Drive: drive.readonly sufficient for downloading
  • Google Drive: drive required for uploading final videos
  • No external video processing APIs used

Compliance Considerations

  • Local Processing: All encoding/​stitching done locally (privacy-preserving)
  • No Cloud Upload: Videos never leave your machine during processing
  • Content Rights: Ensure you have rights to source video content
  • Course Content: Verify licensing for educational content distribution
  • YouTube ToS: Generated descriptions comply with YouTube guidelines
  • Storage: Large video files require adequate local disk space
  • Cleanup: Remove temporary files from .tmp/ after processing

Troubleshooting

Common Issues

Issue: FFmpeg not found

Symptoms: "FFmpeg not found" or "command not found: ffmpeg" Cause: FFmpeg not installed or not in system PATH Solution:

  • Install FFmpeg: brew install ffmpeg (macOS) or download from ffmpeg.org
  • Verify installation: ffmpeg -version
  • Add FFmpeg to PATH if installed in non-standard location
  • Restart terminal after installation
Issue: Codec mismatch / incompatible videos

Symptoms: "Non-monotonous DTS" or codec errors during stitching Cause: Source videos have different codecs, resolutions, or frame rates Solution:

  • Re-encode all source videos to the same format before stitching
  • Use FFmpeg to normalize: ffmpeg -i input.mp4 -c:v libx264 -c:a aac output.mp4
  • Ensure consistent resolution (e.g., all 1920x1080)
  • Match frame rates across all videos (e.g., all 30fps)
Issue: Audio out of sync

Symptoms: Audio drifts from video over time Cause: Inconsistent frame rates or variable frame rate sources Solution:

  • Use constant frame rate for all source videos
  • Re-encode with -vsync cfr flag
  • Avoid mixing video from different sources/​devices
  • Check audio sample rates match across files
Issue: Insufficient disk space

Symptoms: "No space left on device" or incomplete output Cause: Not enough free space for video processing Solution:

  • Check available disk space: df -h
  • Clear .tmp/ directory of old files
  • Move large source videos to external drive
  • Process fewer videos at once
Issue: Google Drive download fails

Symptoms: Videos fail to download from Drive folder Cause: OAuth issue, permissions, or network timeout Solution:

  • Verify Google OAuth credentials (see google-workspace skill)
  • Check folder sharing permissions
  • Try downloading single file first to test
  • Check for network connectivity issues
Issue: Title slides not generating

Symptoms: Missing title cards in final video Cause: Font or image generation issue Solution:

  • Verify ImageMagick or Pillow is installed
  • Check font files exist if custom fonts specified
  • Review title text for special characters
  • Try with default font settings first

Resources

  • references/​workflow.md - Complete video course workflow

Integration Patterns

Full Course Pipeline

Skills: google-workspace → video-production → google-workspace Use case: End-to-end course video assembly Flow:

  1. Download lesson videos from Google Drive folder
  2. Generate title slides and stitch all videos together
  3. Upload final video back to Drive and generate YouTube description

Transcript to Timestamps

Skills: transcript-search → video-production Use case: Generate YouTube descriptions from meeting recordings Flow:

  1. Search transcripts for relevant meetings
  2. Extract topic timestamps from transcript
  3. Generate formatted YouTube description with chapter markers

Content to Title Slides

Skills: content-generation → video-production Use case: Create branded title cards for videos Flow:

  1. Generate title slide images with content-generation
  2. Export slides in video-compatible format
  3. Insert title slides between video segments

More skills from Casper-Studios

data-analysis logo
Casper-Studios/casper-marketplace

data-analysis

Data analysis, visualization, and storytelling skill for financial and RevOps contexts. Use when: analyzing revenue data, building forecasts, cohort analysis, churn modeling, pipeline analytics, creating data-driven reports, building dashboards, cleaning messy data, sanity-checking analytical cla...

13 0
View
create-handoff logo
Casper-Studios/casper-marketplace

create-handoff

Create handoff documentation for work-in-progress sessions. Use when handing off work to another agent to supplement history compaction and and progress summarization.

13 0
View
agent-ready-codebase logo
Casper-Studios/casper-marketplace

agent-ready-codebase

This skill should be used when auditing a codebase for AI agent readiness, or when guiding improvements to make a codebase work well with agentic coding tools. It applies when users ask to evaluate test coverage, file structure, type system usage, dev environment speed, or automated enforcement -...

13 0
View
recover-branch-context logo
Casper-Studios/casper-marketplace

recover-branch-context

Get up to speed on the current branch's intent by analyzing commits, changes, and optionally a Linear ticket. Use when starting work on an existing branch.

13 0
View
polishing logo
Casper-Studios/casper-marketplace

polishing

Polish code changes by recovering context, checking against codebase guidelines, removing AI slop, and running review. Use when finalizing work on a branch before PR.

13 0
View
better-all logo
Casper-Studios/casper-marketplace

better-all

Use the better-all library for Promise.all with automatic DAG-based dependency optimization and full type inference. Use when parallelizing async operations with complex dependencies.

13 0
View
pr-comments logo
Casper-Studios/casper-marketplace

pr-comments

Triage unresolved PR review comments, produce a severity-ordered fix plan, then resolve or fix each issue with subagents. Use when addressing PR feedback before merge.

13 0
View
implement-plan logo
Casper-Studios/casper-marketplace

implement-plan

Execute approved implementation plans from scratchpad. Use when implementing a previously planned feature.

13 0
View
apify-scrapers logo
Casper-Studios/casper-marketplace

apify-scrapers

Social media and web scraping using Apify actors. Use this skill when scraping Twitter/X tweets, Reddit posts, LinkedIn posts, Instagram profiles/posts/reels, Facebook pages/posts/groups, TikTok videos, YouTube content, Google Maps businesses/reviews, contact enrichment (emails/phones from websit...

13 0
View
meeting-followup logo
Casper-Studios/casper-marketplace

meeting-followup

Automate post-meeting follow-up: search Fireflies for a meeting transcript, generate a structured summary with key decisions, discussion points, action items, and next steps, then draft a professional follow-up email to all attendees via Gmail. Use this skill whenever the user mentions processing...

13 0
View
content-generation logo
Casper-Studios/casper-marketplace

content-generation

AI-powered document, image, and flowchart generation. Use this skill when generating images with fal.ai, creating flowcharts/diagrams, generating Google Docs, creating client proposals, converting markdown to PDF, or summarizing content. Triggers on image generation, diagram creation, document ge...

13 0
View
parallel-research logo
Casper-Studios/casper-marketplace

parallel-research

AI-powered deep research using Parallel AI APIs for chat, research reports, entity discovery, and data enrichment. Use this skill when doing web research, competitive analysis, market research, generating research reports, finding companies matching criteria, or enriching existing data. Triggers ...

13 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View