본문으로 건너뛰기
cccskills
무료GitHub에 공개

video-processing

Download, transcribe, analyze, and clip video content — vertical shorts, captions, thumbnails

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md6.0 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Video Processing

Purpose

Turn long-form video into processed outputs: transcripts, short clips, vertical format with captions, thumbnails. Uses FFmpeg, yt-dlp, and transcription services. All operations via shell commands.

When to Use

  • User requests video clipping, transcription, or processing.
  • An evaluation or research task involves video content.
  • Content creation requires extracting highlights from longer video.
  • A surplus compute task involves video analysis.

Prerequisites

Required tools (install if missing):

  • ffmpeg and ffprobe — video processing
  • yt-dlp — video downloading from 1000+ sites
  • Transcription: YouTube auto-subs (free), or Groq/OpenAI Whisper API

Check availability:

which ffmpeg ffprobe yt-dlp 2>/dev/null

Pipeline

Phase 1: Intake

From URL:

yt-dlp --dump-json "URL" 2>/dev/null | python3 -c "
import sys, json
d = json.load(sys.stdin)
print(f'Title: {d[\"title\"]}')
print(f'Duration: {d[\"duration\"]}s')
print(f'Resolution: {d.get(\"width\",\"?\")}x{d.get(\"height\",\"?\")}')
"

From local file:

ffprobe -v quiet -print_format json -show_format -show_streams "file.mp4"

If duration > 2 hours, ask user to specify a segment range.

Phase 2: Download

# Best quality up to 1080p with audio
yt-dlp -f "bv[height<=1080]+ba/b[height<=1080]" -o "source.mp4" "URL"

# Also grab auto-subtitles if available (avoids transcription entirely)
yt-dlp --write-auto-subs --sub-lang en --sub-format json3 \
  --skip-download -o "source" "URL"

If source.en.json3 exists, skip to Phase 4 (transcription already done).

Phase 3: Transcription

Priority order — use the first available:

  1. YouTube auto-subs (already downloaded in Phase 2) — free, instant
  2. Groq Whisper API — fast cloud, free tier available
    curl -s https://api.groq.com/openai/v1/audio/transcriptions \
      -H "Authorization: Bearer $API_KEY_GROQ" \
      -F file=@audio.mp3 -F model=whisper-large-v3 \
      -F response_format=verbose_json -F timestamp_granularities[]=word
    
  3. OpenAI Whisper API — reliable, paid
  4. Local Whisper — if installed, slowest but free
    whisper source.mp4 --model small --output_format json \
      --output_dir . --language en
    

Extract audio first if sending to API:

ffmpeg -i source.mp4 -vn -acodec libmp3lame -q:a 2 audio.mp3

Phase 4: Segment Selection

This is the core value step. Analyze the transcript and select 3-5 segments (30-90 seconds each) based on:

Selection criteria:

  • Hook in first 3 seconds — starts with something attention-grabbing
  • Self-contained — makes sense without watching the full video
  • Emotional peak — surprise, humor, insight, controversy
  • High insight density — says something valuable concisely
  • Clean ending — ends on a punchline, conclusion, or cliffhanger

Rules:

  • Start mid-sentence for stronger hooks when appropriate
  • End on punchlines or key statements, not trailing off
  • Avoid segments that require heavy visual context to understand
  • Spread selections across the video (don't cluster)
  • Each segment gets: exact timestamps, suggested title (<60 chars), one-sentence virality reasoning

Phase 5: Extract and Process

For each selected segment:

Extract clip:

ffmpeg -ss [start] -to [end] -i source.mp4 \
  -c:v libx264 -c:a aac -preset fast -crf 23 clip_N.mp4

Vertical crop (9:16 for shorts/reels):

# Center crop (loses sides)
ffmpeg -i clip_N.mp4 -vf "crop=ih*9/16:ih:(iw-ih*9/16)/2:0,scale=1080:1920" \
  -c:a copy clip_N_vertical.mp4

# Letterbox (keeps everything, adds black bars)
ffmpeg -i clip_N.mp4 -vf "scale=1080:-2,pad=1080:1920:(ow-iw)/2:(oh-ih)/2" \
  -c:a copy clip_N_vertical.mp4

Generate SRT captions from transcript:

  • 8-12 words per subtitle line
  • 2-3 seconds per subtitle
  • Break at natural pauses and sentence boundaries
  • Max 42 characters per line (mobile readability)

Burn captions into video:

ffmpeg -i clip_N_vertical.mp4 \
  -vf "subtitles=clip_N.srt:force_style='FontSize=22,FontName=Arial,\
PrimaryColour=&H00FFFFFF,OutlineColour=&H00000000,Outline=2,\
Shadow=1,MarginV=60,Alignment=2'" \
  -c:a copy clip_N_captioned.mp4

Generate thumbnail:

# Frame at 2 seconds in
ffmpeg -ss 2 -i clip_N.mp4 -frames:v 1 -q:v 2 clip_N_thumb.jpg

Phase 6: Report

# Video Processing Report

**Source:** [title or filename]
**Duration:** [total duration]
**Clips generated:** N

| # | Title | Duration | File | Size |
|---|-------|----------|------|------|
| 1 | [title] | [duration] | clip_1_captioned.mp4 | [size] |

## Segment Reasoning
1. **[title]** ([start]-[end]): [why this segment was selected]

File Size Limits

If output exceeds platform limits, re-encode:

# Target ~45MB for Telegram (50MB limit)
ffmpeg -i input.mp4 -c:v libx264 -b:v 1500k -c:a aac -b:a 128k output.mp4
PlatformVideo Limit
Telegram50 MB
WhatsApp16 MB
Discord25 MB (Nitro: 500 MB)

Output Format

job_id: <CLIP-YYYY-MM-DD-NNN>
source: <URL or filepath>
source_duration: <seconds>
clips:
  - number: <1-N>
    title: <short title>
    start: <HH:MM:SS>
    end: <HH:MM:SS>
    duration: <seconds>
    file: <output filepath>
    size_mb: <file size>
    format: <horizontal | vertical>
    captioned: <true | false>
    virality_reasoning: <one sentence>
transcription_method: <youtube_auto | groq_whisper | openai_whisper | local_whisper | none>

References

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Forward Deployed Engineer delivery contract for AWS engagements, build-first artifacts, grounded cost estimates, Well-Architected review, evolution roadmap

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

WingedGuardian/GENesis-AGI992026년 10월 19일 업데이트

Canonical guide to Genesis browser automation - layers (Camoufox, Chromium, the user's Chrome over CDP, TinyFish, desktop), per-tool timeouts, safety gates, verify-after-act, what a click checks (scroll, hit test, covered targets), overlays, iframes, tabs, and failure diagnosis

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

WingedGuardian/GENesis-AGI992026년 10월 19일 업데이트

cc-update

무료

Update Claude Code (the CC CLI / "clog code") to a new version, or bump the pinned CC version. Use when the user asks to update Claude Code, bump the CC pin, evaluate a new CC release, or says "clog code update". Routes to the canonical, standardized process in docs/reference/cc-compatibility.md — do NOT re-derive the update mechanism by grepping every time. Do NOT use for general "what changed in CC" trivia with no intent to update.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

WingedGuardian/GENesis-AGI992026년 10월 19일 업데이트

This skill should be used when a session's job is to DRIVE OPEN PRs TO MERGE rather than to write new code — "close out the open PRs", "review and fix the open PRs", "what's blocking our PRs", "which PRs are mergeable". It owns the In Review column: it reads each PR's gate status, verifies and fixes review findings on PRs OTHER sessions built, replies in-thread, and stops at the merge gate for the user's per-PR approval. Do NOT load it for building a feature and opening its PR — that is a build session (`genesis-development`).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

WingedGuardian/GENesis-AGI992026년 10월 19일 업데이트

Code understanding tool selection. Use when exploring architecture, finding definitions, tracing call chains, assessing blast radius of changes, or debugging code paths in the Genesis codebase.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

WingedGuardian/GENesis-AGI992026년 10월 19일 업데이트

End-to-end content creation and publishing. Takes a topic (or generates one), drafts in the user's voice, gets approval via Telegram, and publishes to Medium via browser automation. Invoke with "publish a post about X", "write and publish to Medium", "content-publish", or when an ego-dispatched session needs to create and distribute content.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

WingedGuardian/GENesis-AGI992026년 10월 19일 업데이트

WingedGuardian의 스킬 모두 보기

이 스킬의 문제 신고