clip-hand-skill
यह क्या करती है
यह स्किल छोटे वीडियो क्लिप बनाने के विशेषज्ञ चरण देती है, जिनमें yt-dlp से डाउनलोड, Whisper से ट्रांसक्रिप्शन, SRT subtitles लिखना और ffmpeg से काटना शामिल है। शेल वाक्यविन्यास के छोटे अंतर को छोड़कर, वही टूल विकल्प Windows, macOS और Linux पर काम करते हैं।
कब इस्तेमाल करें
- ✓जब आप किसी लंबे ऑनलाइन वीडियो से छोटी क्लिप काटना चाहते हों।
- ✓जब आपको वीडियो की बोली से subtitles बनवाने हों।
- ✓जब आप अपने कंप्यूटर पर ffmpeg से वीडियो फ़ाइलें संसाधित करना चाहते हों।
Skill का लिंक
https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-hands/bundled/clip/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“यह इंटरव्यू वीडियो ट्रांसक्राइब कीजिए और subtitles के साथ तीन छोटी क्लिप बनाइए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल स्रोत वीडियो डाउनलोड करने, उसकी ऑडियो ट्रांसक्राइब करने, subtitle फ़ाइलें बनाने और ffmpeg से हिस्से काटने का मार्गदर्शन करती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Video Clipping Expert Knowledge
Cross-Platform Notes
All tools (ffmpeg, ffprobe, yt-dlp, whisper) use identical CLI flags on Windows, macOS, and Linux. The differences are only in shell syntax:
| Feature | macOS / Linux | Windows (cmd.exe) |
|---|---|---|
| Suppress stderr | 2>/dev/null |
2>NUL |
| Filter output | | grep pattern |
| findstr pattern |
| Delete files | rm file1 file2 |
del file1 file2 |
| Null output device | -f null - |
-f null - (same) |
| ffmpeg subtitle paths | subtitles=clip.srt |
subtitles=clip.srt (relative OK, absolute needs C\\:/path) |
IMPORTANT: ffmpeg filter paths (-vf "subtitles=...") always need forward slashes. On Windows with absolute paths, escape the colon: subtitles=C\\:/Users/me/clip.srt
Prefer using file_write tool for creating SRT/text files instead of shell echo/heredoc.
yt-dlp Reference
Download with Format Selection
# Best video up to 1080p + best audio, merged
yt-dlp -f "bv[height<=1080]+ba/b[height<=1080]" --restrict-filenames -o "source.%(ext)s" "URL"
# 720p max (smaller, faster)
yt-dlp -f "bv[height<=720]+ba/b[height<=720]" --restrict-filenames -o "source.%(ext)s" "URL"
# Audio only (for transcription-only workflows)
yt-dlp -x --audio-format wav --restrict-filenames -o "audio.%(ext)s" "URL"
Metadata Inspection
# Get full metadata as JSON (duration, title, chapters, available subs)
yt-dlp --dump-json "URL"
# Key fields: duration, title, description, chapters, subtitles, automatic_captions
YouTube Auto-Subtitles
# Download auto-generated subtitles in json3 format (word-level timing)
yt-dlp --write-auto-subs --sub-lang en --sub-format json3 --skip-download --restrict-filenames -o "source" "URL"
# Download manual subtitles if available
yt-dlp --write-subs --sub-lang en --sub-format srt --skip-download --restrict-filenames -o "source" "URL"
# List available subtitle languages
yt-dlp --list-subs "URL"
Useful Flags
--restrict-filenames— safe ASCII filenames (no spaces/special chars) — important on all platforms--no-playlist— download single video even if URL is in a playlist-o "template.%(ext)s"— output template (%(ext)s auto-detects format)--cookies-from-browser chrome— use browser cookies for age-restricted content--extract-audio/-x— extract audio only--audio-format wav— convert audio to wav (for whisper)
Whisper Transcription Reference
Audio Extraction for Whisper
# Extract mono 16kHz WAV (whisper's preferred input format)
ffmpeg -i source.mp4 -vn -ar 16000 -ac 1 -y audio.wav
Basic Transcription
# Standard transcription with word-level timestamps
whisper audio.wav --model small --output_format json --word_timestamps true --language en
# Faster alternative (same flags, 4x speed)
whisper-ctranslate2 audio.wav --model small --output_format json --word_timestamps true --language en
Model Sizes
| Model | VRAM | Speed | Quality | Use When |
|---|---|---|---|---|
| tiny | ~1GB | Fastest | Rough | Quick previews, testing pipeline |
| base | ~1GB | Fast | OK | Short clips, clear speech |
| small | ~2GB | Good | Good | Default — best balance |
| medium | ~5GB | Slow | Better | Important content, accented speech |
| large-v3 | ~10GB | Slowest | Best | Final production, multiple languages |
Note: On macOS Apple Silicon, consider mlx-whisper as a faster native alternative.
JSON Output Structure
{
"text": "full transcript text...",
"segments": [
{
"id": 0,
"start": 0.0,
"end": 4.52,
"text": " Hello everyone, welcome back.",
"words": [
{"word": " Hello", "start": 0.0, "end": 0.32, "probability": 0.95},
{"word": " everyone,", "start": 0.32, "end": 0.78, "probability": 0.91},
{"word": " welcome", "start": 0.78, "end": 1.14, "probability": 0.98},
{"word": " back.", "start": 1.14, "end": 1.52, "probability": 0.97}
]
}
]
}
segments[].words[]gives word-level timing when--word_timestamps trueprobabilityindicates confidence (< 0.5 = likely wrong)
YouTube json3 Subtitle Parsing
Format Structure
{
"events": [
{
"tStartMs": 1230,
"dDurationMs": 5000,
"segs": [
{"utf8": "hello ", "tOffsetMs": 0},
{"utf8": "world ", "tOffsetMs": 200},
{"utf8": "how ", "tOffsetMs": 450},
{"utf
अक्सर पूछे जाने वाले सवाल
यह कौन-से टूल इस्तेमाल करती है?
डाउनलोड के लिए yt-dlp, बोली ट्रांसक्राइब करने के लिए Whisper, और क्लिप काटने व subtitles जोड़ने के लिए ffmpeg।
क्या यह Windows पर काम करती है?
हाँ। स्किल कहती है कि ये टूल Windows, macOS और Linux पर एक जैसे विकल्पों से चलते हैं, केवल शेल में छोटे अंतर होते हैं।
क्या subtitle फ़ाइल के पाथ मुश्किल होते हैं?
हाँ। ffmpeg के subtitle पाथ में forward slashes चाहिए, और Windows के पूर्ण पाथ में कोलन को escape करना पड़ता है।
जानकारी
लेखक का मूल विवरण
Expert knowledge for AI video clipping — yt-dlp downloading, whisper transcription, SRT generation, and ffmpeg processing
repo: RightNow-AI/openfang
लोकप्रियता
- GitHub स्टार
- 18k
- रैंकिंग में स्थान
- #10654
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 2/7/2026
कमेंट
- …
इस repository की और skills
browser-automation
18kयह आपके एजेंट को Playwright से वेब ब्राउज़र नियंत्रित करना सिखाती है, बटन, फ़ॉर्म और लिंक खोजने के लिए CSS selectors का उपयोग करते हुए।
collector-hand-skill
18kयह आपके एजेंट को किसी विषय या कंपनी पर सार्वजनिक जानकारी जुटाने, मुख्य entities निकालने, बदलाव ट्रैक करने और भावना का अंदाज़ा लगाने में मदद करती है।
infisical-sync-skill
18kयह आपके एजेंट को API के ज़रिए Infisical vault में secrets पढ़ने और अपडेट करने में मदद करती है, login के चरणों और साफ़ error संभालने के साथ।
lead-hand-skill
18kयह आपके एजेंट को वेब खोजकर, कंपनी के विवरण समृद्ध करके और डुप्लिकेट हटाकर संभावित ग्राहक खोजने और उनका स्कोर करने में मदद करती है।
मिलती-जुलती skills
taste-application
280kयह आपके एजेंट को किसी खास style में videos बनाने में मदद करता है। यह किसी reference video की editing rhythm कॉपी कर सकता है, नए scenes बना सकता है, colors ठीक कर सकता है, और सब कुछ दूसरे footage के साथ जोड़कर edit कर सकता है।
taste-distillation
280kयह आपके एजेंट को videos का विश्लेषण करके style pack बनाने देता है। इसमें colors, cutting rhythm और visual elements शामिल होते हैं, जिन्हें नई videos में उसी look के साथ दोबारा इस्तेमाल किया जा सकता है।
ui-demo
280kयह आपके एजेंट से साफ-सुथरे UI demo videos रिकॉर्ड करवाता है। tutorials बनाने या यह दिखाने के लिए उपयोगी है कि web app कैसे काम करता है।