Skip to content
Back to skills

Video Caption Generator

ASecurity

Processes new MP4s from a Google Drive folder: transcribes, deduplicates, generates captions + titles.

  • 7 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 20, 2026
ai-agentspythongobashapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 20, 2026

npx -y skills add unempyd/revenueos --skill video-caption-generator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Video Caption Generator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Video Caption Generator
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/unempyd-video-caption-generator/badge)](https://www.skillsdirectory.com/skills/unempyd-video-caption-generator)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---

## Preamble (runs on skill start)

---
name: video-caption-generator
description: >
  Transcribe short videos from a Google Drive folder, deduplicate by content,
  and generate social captions + YouTube/Facebook titles. Use when new video
  clips are dropped into a Drive folder and you need transcript, caption, and
  title for each unique clip.
  Trigger phrases: "process videos in drive", "transcribe new clips",
  "caption these videos", "generate titles for these clips".
---

# Video Caption Generator

Processes new MP4s from a Google Drive folder: transcribes, deduplicates, generates captions + titles.

## Drive Folder Setup

Configure your Google Drive folder IDs before first use:

| Folder | Purpose |
|--------|---------|
| Main / To Schedule | New clips are dropped here for processing |
| Scheduled | Already posted/scheduled clips (moved after publishing) |
| A/B | Title variants for later posting |

Set your folder IDs in `folder-map.json` or pass them directly via `--folder-id`.

## Quick Run

```bash
python3 skills/video-caption-generator/scripts/process_videos.py \
  --folder-id YOUR_FOLDER_ID
```

Processed video IDs are logged to `processed_ids.json` so already-seen videos are skipped on future runs.

## A/B Variant Handling

Videos with identical transcripts but different filenames (e.g., `0411.mp4`, `0411(1).mp4`) are A/B title variants β€” same audio, different on-screen title. The script processes ALL variants (no dedup skipping) and tags them as A/B variants in the output.

## Output Format

For each unique new clip, output:

```
*<filename>*
πŸ“ *Transcript:* <raw spoken words>
🎬 *Caption:* <social-friendly 2-4 sentence caption>
πŸ“Ί *YT/FB Title:* <punchy title under 60 chars>
```

## Caption + Title Style Guide

- **Caption:** First person, conversational, no hashtags, 2-4 sentences. Hook first, insight second.
- **Title:** Curiosity-driven, under 60 chars, no "How I..." unless earned. Lead with the tension or number.

## Dependencies

- `whisper` (local installation, model: turbo)
- Google Drive CLI or SDK for listing/downloading files
- Anthropic API key (set via `ANTHROPIC_API_KEY` environment variable)

## Configuration

1. Set `ANTHROPIC_API_KEY` in your environment
2. Update `GWS_GATEWAY` in `scripts/process_videos.py` to point to your Google Drive CLI
3. Update `WHISPER_BIN` if Whisper is installed at a different path

## Adding New Folders

Pass `--folder-id <ID>` for different folders. Each folder uses the same shared `processed_ids.json` log (Drive IDs are globally unique so there's no collision).

Files in this skill

  • README.md4.2 KB
  • SKILL.md2.5 KB
  • requirements.txt325 B
  • scripts/process_videos.py7.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…