video-processor
Automate video conversion and speech-to-text transcription using local FFmpeg and Whisper models.
Install
mkdir -p .claude/skills/video-processor && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/266" && unzip -o skill.zip -d .claude/skills/video-processor && rm skill.zipInstalls to .claude/skills/video-processor
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Process video files with audio extraction, format conversion (mp4, webm), and WhisperKey capabilities
- →Transcribe audio using Whisper
- →Convert video to MP4 or WebM formats
- →Extract audio tracks from video files
- →Adjust codec settings for encoding speed
- →Validate FFmpeg installations
How it works
Invokes local command-line tools FFmpeg and Whisper through a Python wrapper to perform signal processing and speech recognition.
Inputs & outputs
When to use video-processor
- →Transcribe video meetings to text
- →Convert video files for web deployment
- →Extract audio for analysis
About this skill
Video Processor
Instructions
This skill provides video processing utilities including audio extraction, format conversion, and audio transcription using FFmpeg and OpenAI's Whisper model.
Prerequisites
Required tools (must be installed in your environment):
-
FFmpeg: Multimedia framework for video/audio processing
# macOS brew install ffmpeg # Ubuntu/Debian apt-get install ffmpeg # Verify installation ffmpeg -version -
OpenAI Whisper: Speech-to-text transcription model
# Install via pip pip install -U openai-whisper # Verify installation whisper --help
Python packages (included in script via PEP 723):
- click (CLI framework)
- ffmpeg-python (Python wrapper for FFmpeg)
Workflow
Use the scripts/video_processor.py script for all video processing tasks. The script provides a
simple CLI with the following commands:
1. Extract Audio from Video
Extract the audio track from a video file:
uv run .claude/skills/video-processor/scripts/video_processor.py extract-audio input.mp4 output.wav
Options:
--format: Output audio format (default: wav). Supports: wav, mp3, aac, flac- Output is suitable for transcription or standalone audio use
2. Convert Video to MP4
Convert any video file to MP4 format:
uv run .claude/skills/video-processor/scripts/video_processor.py to-mp4 input.avi output.mp4
Options:
--codec: Video codec (default: libx264). Common options: libx264, libx265, h264--preset: Encoding speed/quality preset (default: medium). Options: ultrafast, fast, medium, slow, veryslow
3. Convert Video to WebM
Convert any video file to WebM format (web-optimized):
uv run .claude/skills/video-processor/scripts/video_processor.py to-webm input.mp4 output.webm
Options:
--codec: Video codec (default: libvpx-vp9). Options: libvpx, libvpx-vp9- WebM is optimized for web playback and streaming
4. Transcribe Audio with Whisper
Transcribe audio or video files to text using OpenAI's Whisper model:
# Transcribe video file (audio will be extracted automatically)
uv run .claude/skills/video-processor/scripts/video_processor.py transcribe input.mp4 transcript.txt
# Transcribe audio file directly
uv run .claude/skills/video-processor/scripts/video_processor.py transcribe audio.wav transcript.txt
Options:
--model: Whisper model size (default: base). Options:tiny: Fastest, lowest accuracy (~1GB RAM)base: Fast, good accuracy (~1GB RAM) [DEFAULT]small: Balanced (~2GB RAM)medium: High accuracy (~5GB RAM)large: Best accuracy, slowest (~10GB RAM)
--language: Language code (default: auto-detect). Examples: en, es, fr, de, zh--format: Output format (default: txt). Options: txt, srt, vtt, json
Transcription workflow:
- If input is video, FFmpeg extracts audio to temporary WAV file
- Whisper processes the audio file
- Transcription is saved in requested format
- Temporary files are cleaned up automatically
5. Combined Workflow Example
Process a video end-to-end:
# 1. Extract audio for analysis
uv run .claude/skills/video-processor/scripts/video_processor.py extract-audio lecture.mp4 lecture.wav
# 2. Transcribe to SRT subtitles
uv run .claude/skills/video-processor/scripts/video_processor.py transcribe lecture.mp4 lecture.srt --format srt --model small
# 3. Convert to web format
uv run .claude/skills/video-processor/scripts/video_processor.py to-webm lecture.mp4 lecture.webm
Key Technical Details
FFmpeg and Whisper Integration:
- FFmpeg doesn't transcribe audio itself - it prepares audio for external transcription
- The workflow is: Extract audio (FFmpeg) → Transcribe (Whisper) → Optional: Re-integrate with video
- FFmpeg can pipe audio directly to Whisper for real-time processing (advanced use case)
Audio Format for Transcription:
- Whisper works best with WAV or MP3 formats
- Sample rate: 16kHz is optimal (script handles conversion automatically)
- The script extracts audio with optimal settings for Whisper
Output Formats:
- txt: Plain text transcript
- srt: SubRip subtitle format (includes timestamps)
- vtt: WebVTT subtitle format (web standard)
- json: Detailed JSON with word-level timestamps
Error Handling
The script includes comprehensive error handling:
- Validates input files exist
- Checks FFmpeg and Whisper are installed
- Provides clear error messages for missing dependencies
- Handles temporary file cleanup on errors
Performance Tips
- Use
tinyorbasemodels for quick drafts - Use
smallormediumfor production transcriptions - Use
largeonly when maximum accuracy is required - For long videos, consider extracting audio first, then transcribe in segments
- WebM conversion with VP9 takes longer but produces smaller files
Examples
Example 1: Quick Video to MP4 Conversion
User request:
I have an AVI file from my old camera. Can you convert it to MP4?
You would:
-
Use the to-mp4 command with default settings:
uv run .claude/skills/video-processor/scripts/video_processor.py to-mp4 old_video.avi output.mp4 -
Confirm the conversion completed successfully
-
Inform the user about the output file location
Example 2: Extract Audio and Transcribe
User request:
I recorded a lecture video and need a transcript. Can you extract the audio and transcribe it?
You would:
-
First extract the audio:
uv run .claude/skills/video-processor/scripts/video_processor.py extract-audio lecture.mp4 lecture.wav -
Then transcribe using the base model (good balance of speed/accuracy):
uv run .claude/skills/video-processor/scripts/video_processor.py transcribe lecture.mp4 transcript.txt --model base -
Share the transcript.txt file with the user
Example 3: Create Web-Optimized Video with Subtitles
User request:
I need to put this video on my website with subtitles. Can you help?
You would:
-
Convert to WebM for web optimization:
uv run .claude/skills/video-processor/scripts/video_processor.py to-webm presentation.mp4 presentation.webm -
Generate SRT subtitle file:
uv run .claude/skills/video-processor/scripts/video_processor.py transcribe presentation.mp4 subtitles.srt --format srt --model small -
Inform user they now have:
- presentation.webm (web-optimized video)
- subtitles.srt (subtitle file for embedding)
Example 4: High-Quality Transcription with Language Specification
User request:
I have a Spanish interview video that needs an accurate transcript for publication.
You would:
-
Use a larger model with language specified for best accuracy:
uv run .claude/skills/video-processor/scripts/video_processor.py transcribe interview.mp4 transcript.txt --model medium --language es -
Optionally create SRT for review:
uv run .claude/skills/video-processor/scripts/video_processor.py transcribe interview.mp4 transcript.srt --format srt --model medium --language es -
Review the transcript with the user and make any necessary corrections
Example 5: Batch Processing Multiple Videos
User request:
I have a folder of training videos that all need to be converted to WebM and transcribed.
You would:
-
List all video files in the directory:
ls training_videos/*.mp4 -
For each video file, run the conversion and transcription:
# For each video: video1.mp4, video2.mp4, etc. uv run .claude/skills/video-processor/scripts/video_processor.py to-webm training_videos/video1.mp4 output/video1.webm uv run .claude/skills/video-processor/scripts/video_processor.py transcribe training_videos/video1.mp4 output/video1.txt --model base # Repeat for each file -
Confirm all conversions and transcriptions completed
-
Provide summary of output files
Summary
The video-processor skill provides a unified interface for common video processing tasks:
- Audio extraction: Extract audio tracks in various formats
- Format conversion: Convert to MP4 (universal) or WebM (web-optimized)
- Transcription: Speech-to-text with multiple output formats
- Flexible: CLI arguments for model selection, language, and output formats
All operations are handled through a single, well-documented script with sensible defaults and comprehensive error handling.
When not to use it
- →Processing encrypted or DRM-protected media
- →Real-time video streaming
Prerequisites
Limitations
- →Processing speed depends entirely on local CPU/GPU
- →Requires external tool installation
How it compares
It performs specialized media transformations locally instead of relying on external cloud conversion services.
Compared to similar skills
video-processor side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| video-processor (this skill) | 17 | 3mo | Review | Intermediate |
| video-downloader | 101 | 7mo | Review | Beginner |
| skills | 0 | 2mo | Review | Beginner |
| jianying-editor | 38 | 2mo | Review | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by basher83
View all by basher83 →You might also like
video-downloader
ComposioHQ
Downloads videos from YouTube and other platforms for offline viewing, editing, or archival. Handles various formats and quality options.
skills
Sergio-prog
Fram is a compact media workshop for the terminal, API, and Telegram. The current primary surface is the `fram` CLI, backed by the same typed processing core used by the API and bot.
jianying-editor
luoluoluo22
剪映 (JianYing) AI自动化剪辑的高级封装 API (JyWrapper)。提供开箱即用的 Python 接口,支持录屏、素材导入、字幕生成、Web 动效合成及项目导出。
vectcut-api
sun-guannan
VectCutAPI is a powerful cloud-based video editing API tool that provides programmatic control over CapCut/JianYing (剪映) for professional video editing. Use this skill when users need to: (1) Create video draft projects programmatically, (2) Add video/audio/image materials with precise control, (3) Add text, subtitles, and captions, (4) Apply effects, transitions, and animations, (5) Add keyframe animations, (6) Process videos in batch, (7) Generate AI-powered videos, (8) Integrate with n8n workflows, (9) Build MCP video editing agents. The API supports HTTP REST and MCP protocols, works with both CapCut (international) and JianYing (China), and provides web preview without downloading.
sora
davila7
Use when the user asks to generate, remix, poll, list, download, or delete Sora videos via OpenAI’s video API using the bundled CLI (`scripts/sora.py`), including requests like “generate AI video,” “Sora,” “video remix,” “download video/thumbnail/spritesheet,” and batch video generation; requires `OPENAI_API_KEY` and Sora API access.
klingai-batch-processing
jeremylongshore
Process multiple video generation requests efficiently with Kling AI. Use when generating multiple videos or building content pipelines. Trigger with phrases like 'klingai batch', 'kling ai bulk', 'multiple videos klingai', 'klingai parallel generation'.