telecine-detect
This skill should be used when the user asks "is this interlaced", "detect telecine", "video has combing", "should I deinterlace", "3:2 pulldown", "inverse telecine", or sees horizontal lines/combing artifacts in video and wants to understand if the content is truly interlaced or telecined.
What this skill does
# Telecine and Interlacing Detection
Detect whether video content is telecined (reversible) or truly interlaced (not reversible), and advise on proper handling. Getting this wrong destroys video quality.
## Critical Distinction
**Telecine (3:2 Pulldown)**:
- 24fps film content converted to 30fps for NTSC broadcast
- Creates repeating pattern of combing across frames
- Can be reversed nearly losslessly via IVTC (inverse telecine)
- Original 24fps frames can be recovered
**True Interlacing**:
- Content actually captured at 60 interlaced fields per second
- Each field is unique temporal information
- Cannot be reversed without quality loss
- Deinterlacing merges or discards fields
## The Common Mistake
Seeing combing → Immediately running a deinterlacer
**Why this is wrong for telecined content**:
- Deinterlacers throw away half the vertical resolution
- They cannot distinguish telecine from true interlacing
- The original 24 progressive frames are lost
- Result is a blurry, lower-quality video
**Correct approach**:
1. First detect if content is telecined or truly interlaced
2. If telecined → use IVTC to recover original frames
3. If truly interlaced → only then consider deinterlacing
## Detection Workflow
### Step 1: Check MediaInfo
Look for these fields:
```
Scan type: Interlaced or Progressive
Scan order: Top Field First (TFF) or Bottom Field First (BFF)
```
**Note**: MediaInfo only shows container/stream flags. Content can be flagged as interlaced but actually be telecined, or flagged progressive but have telecine applied.
### Step 2: Visual Inspection
Open in mpv and step through frames (`.` and `,` keys):
**Telecine indicators**:
- Combing appears on some frames but not others
- Pattern repeats (e.g., every 5th frame has combing)
- Combing only on specific parts of frame where motion occurred
- 3:2 pattern: 2 clean frames, then 3 frames with combing alternating
**True interlacing indicators**:
- Every frame shows combing on all motion
- No repeating pattern
- Combing appears uniformly across frame
### Step 3: Confirm with Frame Analysis
For telecine, look for the 3:2 pulldown pattern:
```
Frame 1: Progressive (A)
Frame 2: Progressive (A)
Frame 3: Interlaced (A top + B bottom)
Frame 4: Interlaced (B top + C bottom)
Frame 5: Progressive (C)
... pattern repeats
```
Count frames between clean (progressive) frames. If pattern is consistent (typically 2-3-2-3 or similar), it's telecine.
## Handling Telecined Content
### Tools for IVTC
**Wobbly** (Recommended):
- GUI tool for manual telecine pattern matching
- Handles irregular patterns and scene changes
- Guide: https://wobbly.encode.moe
**VapourSynth VIVTC**:
- Automated IVTC for consistent patterns
- Part of VapourSynth toolchain
**avisynth/vapoursynth TFM+TDecimate**:
- Classic IVTC combination
- TFM matches fields, TDecimate removes duplicates
### IVTC Process
1. Identify the telecine cadence (pattern)
2. Match fields to reconstruct original frames
3. Decimate (remove) duplicate frames
4. Result: Original 24fps progressive content
## Handling True Interlacing
Only when content is confirmed truly interlaced:
**Deinterlacing options** (quality varies):
- QTGMC (VapourSynth/Avisynth) - highest quality, slow
- yadif - fast, moderate quality
- bwdif - improved yadif
**Doubling options** (60fps output):
- Bob deinterlacing - fast, doubles frame rate
- QTGMC bob - higher quality bob
## Quick Reference
| Symptom | Likely Cause | Action |
|---------|--------------|--------|
| Combing on some frames only | Telecine | Use IVTC |
| Repeating pattern of combing | Telecine | Use IVTC |
| Every frame has combing | True interlacing | Deinterlace |
| DVD/NTSC source, 29.97fps | Often telecine | Check pattern |
| Sports/news content | Often true interlacing | Deinterlace |
| Film/movie content | Often telecine | Use IVTC |
## Red Flags
**Don't deinterlace if**:
- Source is a movie or scripted TV show (likely telecine)
- Combing appears in a pattern
- MediaInfo shows 23.976fps original rate
- Source is from DVD/Blu-ray of film content
**Consider deinterlacing if**:
- Live broadcast content (sports, news)
- Home video footage
- Every single frame shows combing
- No discernible pattern
## Additional Resources
- **fieldbased.media** - Comprehensive interlacing guide
- **https://wobbly.encode.moe** - Wobbly IVTC guide
- **`${CLAUDE_PLUGIN_ROOT}/references/telecine.md`** - Detailed telecine patterns
Related in Image & Video
watch
IncludedWatch a video (URL or local path). Downloads with yt-dlp, extracts auto-scaled frames with ffmpeg, pulls the transcript from captions (or Whisper API fallback), and hands the result to Claude so it can answer questions about what's in the video.
physical-ai-defect-image-generation
IncludedUse when the user wants to orchestrate defect image generation, run associated setup, or handle outputs on OSMO. The Day 0 path handles cold-start with USD-to-ROI, image-edit augmentation, and AnomalyGen to create initial PCBA datasets. The Day 1 path performs inference and labeling on real images. This skill helps with first-time asset setup, creation of finetuning checkpoints, and configuring deployment. Trigger keywords: defect image generation, dig workflow, dig pipeline, defect image detection workflow, aoi pipeline, aoi anomalygen, usd2roi anomalygen, day 0 pcba, day 1 pcba, day 1 real-photo alignment, day 1 manual roi, metal surface anomaly, glass defect, anomalygen finetune, setup_pcb, setup_metal, setup_glass, setup_pretrained, dig setup, dig datasets, dig pretrained checkpoint, dig image-edit endpoint.
accelint-react-best-practices
IncludedReact performance optimization and best practices. ALWAYS use this skill when working with any React code - writing components, hooks, JSX; refactoring; optimizing re-renders, memoization, state management; reviewing for performance; fixing hydration mismatches; debugging infinite re-renders, stale closures, input focus loss, animations restarting; preventing remounting; implementing transitions, lazy initialization, effect dependencies. Even simple React tasks benefit from these patterns. Covers React 19+ (useEffectEvent, Activity, ref props). Triggers - useEffect, useState, useMemo, useCallback, memo, inline components, nested components, components inside components, re-render, performance, hydration, SSR, Next.js, useDeferredValue, combined hooks.
elevenlabs-agents
IncludedBuild conversational AI voice agents with ElevenLabs Platform using React, JavaScript, React Native, or Swift SDKs. Configure agents, tools (client/server/MCP), RAG knowledge bases, multi-voice, and Scribe real-time STT. Use when: building voice chat interfaces, implementing AI phone agents with Twilio, configuring agent workflows or tools, adding RAG knowledge bases, testing with CLI "agents as code", or troubleshooting deprecated @11labs packages, Android audio cutoff, CSP violations, dynamic variables, or WebRTC config. Keywords: ElevenLabs Agents, ElevenLabs voice agents, AI voice agents, conversational AI, @elevenlabs/react, @elevenlabs/client, @elevenlabs/react-native, @elevenlabs/elevenlabs-js, @elevenlabs/agents-cli, elevenlabs SDK, voice AI, TTS, text-to-speech, ASR, speech recognition, turn-taking model, WebRTC voice, WebSocket voice, ElevenLabs conversation, agent system prompt, agent tools, agent knowledge base, RAG voice agents, multi-voice agents, pronunciation dictionary, voice speed control, elevenlabs scribe, @11labs deprecated, Android audio cutoff, CSP violation elevenlabs, dynamic variables elevenlabs, case-sensitive tool names, webhook authentication
humanizer
IncludedHumanize AI-generated text by detecting and removing patterns typical of LLM output. Rewrites text to sound natural, specific, and human. Uses 28 pattern detectors, 560+ AI vocabulary terms across 3 tiers, and statistical analysis (burstiness, type-token ratio, readability) for comprehensive detection. Use when asked to humanize text, de-AI writing, make content sound more natural/human, review writing for AI patterns, score text for AI detection, or improve AI-generated drafts. Covers content, language, style, communication, and filler categories.
generating-mermaid-diagrams
IncludedSalesforce architecture diagrams using Mermaid with ASCII fallback. Use this skill when generating text-based diagrams for Salesforce architecture, OAuth flows, ERDs, integration sequences, or Agentforce structure. TRIGGER when: user says "diagram", "visualize", "ERD", or asks for sequence diagrams, flowcharts, class diagrams, or architecture visualizations in Mermaid. DO NOT TRIGGER when: user wants PNG/SVG image output (use generating-visual-diagrams), or asks about non-Salesforce systems.