Skip to content

AgriciDaniel/claude-shorts

shorts

Verified

Interactive longform-to-shortform video creator. Extracts viral-ready short clips from long videos using Claude as the orchestrator. Transcribes with faster-whisper (GPU), Claude scores and presents candidate segments interactively, user picks and adjusts, Remotion renders premium animated captions (Bold/Bounce/Clean styles), FFmpeg exports platform-optimized files (YouTube Shorts, TikTok, Instagram Reels). Use when user says "shorts", "short clips", "shortform", "extract clips", "tiktok from video", "reels from video", "vertical clips", or "create shorts".

FileKindSize
SKILL.mdskill md12.5 KB
references/caption-styles.mdmarkdown3.5 KB
references/platform-specs.mdmarkdown4.3 KB
references/remotion-patterns.mdmarkdown5.0 KB
references/scoring-rubric.mdmarkdown4.2 KB
scripts/compute_reframe.pyexecutablescript14.4 KB
scripts/detect_content.pyexecutablescript6.8 KB
scripts/detect_gpu.shexecutablescript1.9 KB
scripts/export.shexecutablescript5.5 KB
scripts/preflight.shexecutablescript3.4 KB
scripts/snap_boundaries.pyexecutablescript9.4 KB
scripts/transcribe.pyexecutablescript6.7 KB
scripts/validate.shexecutablescript4.6 KB

references/platform-specs.md

View on GitHub
# Platform Export Specifications

Encoding specs for each target platform, optimized for quality and upload compatibility.

## YouTube Shorts

| Property | Value |
|----------|-------|
| Resolution | 1080x1920 |
| Aspect Ratio | 9:16 |
| Max Duration | 60 seconds |
| Video Codec | H.264 (AVC) |
| Profile | High |
| Level | 4.2 |
| Bitrate | 12 Mbps (target) |
| Max Bitrate | 14 Mbps |
| Buffer Size | 24 Mbps |
| Audio Codec | AAC |
| Audio Bitrate | 192 kbps |
| Sample Rate | 48 kHz |
| Container | MP4 |
| Pixel Format | yuv420p |
| Max File Size | 256 MB |

**FFmpeg (CPU)**:
```bash
ffmpeg -y -i input.mp4 \
    -c:v libx264 -preset slow \
    -b:v 12M -maxrate 14M -bufsize 24M \
    -profile:v high -level 4.2 \
    -af loudnorm=I=-14:TP=-1:LRA=11 \
    -c:a aac -b:a 192k -ar 48000 \
    -pix_fmt yuv420p -movflags +faststart \
    output_yt.mp4
```

**FFmpeg (NVENC)**:
```bash
ffmpeg -y -i input.mp4 \
    -c:v h264_nvenc -preset p5 -tune hq \
    -b:v 12M -maxrate 14M -bufsize 24M \
    -profile:v high -level 4.2 \
    -af loudnorm=I=-14:TP=-1:LRA=11 \
    -c:a aac -b:a 192k -ar 48000 \
    -pix_fmt yuv420p -movflags +faststart \
    output_yt.mp4
```

## TikTok

| Property | Value |
|----------|-------|
| Resolution | 1080x1920 |
| Aspect Ratio | 9:16 |
| Max Duration | 60 seconds (3 min with account) |
| Video Codec | H.264 (AVC) |
| Bitrate Mode | CRF 18 (quality-based) |
| Max Bitrate | 10 Mbps |
| Buffer Size | 20 Mbps |
| Audio Codec | AAC |
| Audio Bitrate | 128 kbps |
| Sample Rate | 44.1 kHz |
| Container | MP4 |
| Pixel Format | yuv420p |
| Max File Size | 287 MB |

**FFmpeg (CPU)**:
```bash
ffmpeg -y -i input.mp4 \
    -c:v libx264 -preset slow -crf 18 \
    -maxrate 10M -bufsize 20M \
    -af loudnorm=I=-14:TP=-1:LRA=11 \
    -c:a aac -b:a 128k -ar 44100 \
    -pix_fmt yuv420p -movflags +faststart \
    output_tt.mp4
```

**FFmpeg (NVENC)**:
```bash
ffmpeg -y -i input.mp4 \
    -c:v h264_nvenc -preset p5 -tune hq \
    -cq 18 -maxrate 10M -bufsize 20M \
    -af loudnorm=I=-14:TP=-1:LRA=11 \
    -c:a aac -b:a 128k -ar 44100 \
    -pix_fmt yuv420p -movflags +faststart \
    output_tt.mp4
```

## Instagram Reels

| Property | Value |
|----------|-------|
| Resolution | 1080x1920 |
| Aspect Ratio | 9:16 |
| Max Duration | 90 seconds |
| Video Codec | H.264 (AVC) |
| Profile | High |
| Level | 4.2 |
| Bitrate | 4.5 Mbps (target) |
| Max Bitrate | 5 Mbps |
| Buffer Size | 10 Mbps |
| Audio Codec | AAC |
| Audio Bitrate | 128 kbps |
| Sample Rate | 44.1 kHz |
| Container | MP4 |
| Pixel Format | yuv420p |
| Max File Size | 250 MB |

**FFmpeg (CPU)**:
```bash
ffmpeg -y -i input.mp4 \
    -c:v libx264 -preset slow \
    -b:v 4500k -maxrate 5000k -bufsize 10M \
    -profile:v high -level 4.2 \
    -af loudnorm=I=-14:TP=-1:LRA=11 \
    -c:a aac -b:a 128k -ar 44100 \
    -pix_fmt yuv420p -movflags +faststart \
    output_ig.mp4
```

## Safe Zones

All platforms have UI overlays that consume screen space. Values below are the median of 10+ community-measured sources at 1080x1920 (no platform publishes official pixel specs). Bottom margins vary with caption/description length — values reflect typical organic content.

| Zone | TikTok | YouTube Shorts | Instagram Reels | Universal |
|------|--------|----------------|-----------------|-----------|
| Top | 150px | 150px | 210px | 210px |
| Bottom | 320px | 350px | 340px | 450px |
| Left | 60px | 60px | 40px | 60px |
| Right | 120px | 150px | 100px | 150px |
| Safe Area | 900x1450px | 870x1420px | 940x1370px | 870x1260px |

Caption position at 350px from bottom clears TikTok (320px) and Instagram (340px). For YouTube Shorts safety, 400px+ is recommended. For universal cross-platform safety, 450px+ is ideal.

## Audio Normalization

All exports normalize audio to -14 LUFS (EBU R128) using FFmpeg's `loudnorm` filter:
- `I=-14` — integrated loudness target (-14 LUFS, YouTube/streaming standard)
- `TP=-1` — true peak max (-1 dBFS headroom, prevents clipping)
- `LRA=11` — loudness range (dynamic variation allowed)

## NVENC Encoding Notes

For NVIDIA GPUs with NVENC support (GTX 1650+, RTX series):
- `h264_nvenc -preset p5 -tune hq` provides best quality
- 5-10x faster than CPU `-preset slow`
- Quality is comparable to CPU at same bitrate
- `-preset p7` for maximum quality (slower but still faster than CPU)
- Always verify NVENC availability: `ffmpeg -encoders | grep nvenc`
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall