video-processing
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseVideo Processing
视频处理
Automate repetitive video editing tasks using FFmpeg - the industry-standard tool powering YouTube, Netflix, and most video platforms.
使用FFmpeg自动化完成重复的视频编辑任务——FFmpeg是支撑YouTube、Netflix及大多数视频平台的行业标准工具。
When to Use This Skill
何时使用该技能
- Social media optimization - Resize videos for Instagram (9:16), TikTok, LinkedIn
- Upload preparation - Compress large videos to meet platform limits
- Audio extraction - Pull audio from webinars, interviews for podcasts
- Content clipping - Extract highlights, quotes, or segments
- Batch processing - Apply same operations to multiple videos
- 社交媒体优化 - 调整视频尺寸以适配Instagram(9:16)、TikTok、LinkedIn
- 上传准备 - 压缩大视频以满足平台限制
- 音频提取 - 从网络研讨会、访谈视频中提取音频用于播客
- 内容剪辑 - 提取精彩片段、语录或特定段落
- 批量处理 - 对多个视频应用相同操作
What Claude Does vs What You Decide
Claude的职责与你的决策
| Claude Does | You Decide |
|---|---|
| Structures production workflow | Final creative direction |
| Suggests technical approaches | Equipment and tool choices |
| Creates templates and checklists | Quality standards |
| Identifies best practices | Brand/voice decisions |
| Generates script outlines | Final script approval |
| Claude负责 | 由你决定 |
|---|---|
| 构建生产工作流 | 最终创意方向 |
| 提出技术方案 | 设备与工具选择 |
| 创建模板和检查清单 | 质量标准 |
| 识别最佳实践 | 品牌/风格决策 |
| 生成脚本大纲 | 最终脚本审批 |
Dependencies
依赖项
bash
pip install ffmpeg-python moviepy clickbash
pip install ffmpeg-python moviepy clickAlso requires ffmpeg installed on system
同时需要在系统上安装ffmpeg
macOS: brew install ffmpeg
macOS: brew install ffmpeg
Ubuntu: sudo apt install ffmpeg
Ubuntu: sudo apt install ffmpeg
undefinedundefinedCommands
命令
Compress Video
压缩视频
bash
python scripts/main.py compress video.mp4 --target-mb 10
python scripts/main.py compress video.mp4 --crf 28 --output compressed.mp4bash
python scripts/main.py compress video.mp4 --target-mb 10
python scripts/main.py compress video.mp4 --crf 28 --output compressed.mp4Extract Audio
提取音频
bash
python scripts/main.py extract-audio video.mp4 --format mp3
python scripts/main.py extract-audio video.mp4 --format wav --output audio.wavbash
python scripts/main.py extract-audio video.mp4 --format mp3
python scripts/main.py extract-audio video.mp4 --format wav --output audio.wavResize for Social
调整尺寸适配社交平台
bash
python scripts/main.py resize video.mp4 --format instagram # 1080x1920 (9:16)
python scripts/main.py resize video.mp4 --format youtube # 1920x1080 (16:9)
python scripts/main.py resize video.mp4 --format square # 1080x1080 (1:1)
python scripts/main.py resize video.mp4 --width 1280 --height 720bash
python scripts/main.py resize video.mp4 --format instagram # 1080x1920 (9:16)
python scripts/main.py resize video.mp4 --format youtube # 1920x1080 (16:9)
python scripts/main.py resize video.mp4 --format square # 1080x1080 (1:1)
python scripts/main.py resize video.mp4 --width 1280 --height 720Clip Segment
剪辑片段
bash
python scripts/main.py clip video.mp4 --start 00:30 --end 01:45
python scripts/main.py clip video.mp4 --start 00:30 --duration 60bash
python scripts/main.py clip video.mp4 --start 00:30 --end 01:45
python scripts/main.py clip video.mp4 --start 00:30 --duration 60Merge Videos
合并视频
bash
python scripts/main.py concat video1.mp4 video2.mp4 --output merged.mp4
python scripts/main.py concat ./clips/ --output compilation.mp4bash
python scripts/main.py concat video1.mp4 video2.mp4 --output merged.mp4
python scripts/main.py concat ./clips/ --output compilation.mp4Generate Thumbnail
生成缩略图
bash
python scripts/main.py thumbnail video.mp4 --time 00:30
python scripts/main.py thumbnail video.mp4 --best # Auto-select best framebash
python scripts/main.py thumbnail video.mp4 --time 00:30
python scripts/main.py thumbnail video.mp4 --best # 自动选择最佳帧Examples
示例
Example 1: Prepare Video for Instagram Reels
示例1:为Instagram Reels准备视频
bash
undefinedbash
undefinedOriginal: 4K horizontal video, 500MB
原视频:4K横屏视频,500MB
python scripts/main.py resize long-video.mp4 --format instagram
python scripts/main.py compress long-video_instagram.mp4 --target-mb 50
python scripts/main.py resize long-video.mp4 --format instagram
python scripts/main.py compress long-video_instagram.mp4 --target-mb 50
Output: long-video_instagram_compressed.mp4 (1080x1920, <50MB)
输出:long-video_instagram_compressed.mp4 (1080x1920, <50MB)
undefinedundefinedExample 2: Extract Podcast from Webinar
示例2:从网络研讨会中提取播客音频
bash
undefinedbash
undefinedExtract audio track
提取音轨
python scripts/main.py extract-audio webinar-recording.mp4 --format mp3 --bitrate 192k
python scripts/main.py extract-audio webinar-recording.mp4 --format mp3 --bitrate 192k
Output: webinar-recording.mp3 (ready for podcast hosting)
输出:webinar-recording.mp3(可直接用于播客托管)
undefinedundefinedExample 3: Create Highlight Reel
示例3:制作精彩片段合集
bash
undefinedbash
undefinedExtract multiple clips
提取多个片段
python scripts/main.py clip interview.mp4 --start 05:30 --end 06:15 --output clip1.mp4
python scripts/main.py clip interview.mp4 --start 12:00 --end 12:45 --output clip2.mp4
python scripts/main.py clip interview.mp4 --start 28:30 --end 29:00 --output clip3.mp4
python scripts/main.py clip interview.mp4 --start 05:30 --end 06:15 --output clip1.mp4
python scripts/main.py clip interview.mp4 --start 12:00 --end 12:45 --output clip2.mp4
python scripts/main.py clip interview.mp4 --start 28:30 --end 29:00 --output clip3.mp4
Merge into highlight reel
合并成精彩片段合集
python scripts/main.py concat clip1.mp4 clip2.mp4 clip3.mp4 --output highlights.mp4
undefinedpython scripts/main.py concat clip1.mp4 clip2.mp4 clip3.mp4 --output highlights.mp4
undefinedSocial Media Format Reference
社交平台格式参考
| Platform | Format | Resolution | Max Size | Max Duration |
|---|---|---|---|---|
| Instagram Reels | 9:16 | 1080x1920 | 4GB | 90s |
| Instagram Feed | 1:1 | 1080x1080 | 4GB | 60s |
| TikTok | 9:16 | 1080x1920 | 287MB | 10min |
| YouTube Shorts | 9:16 | 1080x1920 | - | 60s |
| YouTube | 16:9 | 1920x1080 | 256GB | 12h |
| 1:1/16:9 | 1920x1080 | 5GB | 10min | |
| Twitter/X | 16:9 | 1920x1080 | 512MB | 2:20 |
| 平台 | 格式 | 分辨率 | 最大文件大小 | 最长时长 |
|---|---|---|---|---|
| Instagram Reels | 9:16 | 1080x1920 | 4GB | 90秒 |
| Instagram Feed | 1:1 | 1080x1080 | 4GB | 60秒 |
| TikTok | 9:16 | 1080x1920 | 287MB | 10分钟 |
| YouTube Shorts | 9:16 | 1080x1920 | - | 60秒 |
| YouTube | 16:9 | 1920x1080 | 256GB | 12小时 |
| 1:1/16:9 | 1920x1080 | 5GB | 10分钟 | |
| Twitter/X | 16:9 | 1920x1080 | 512MB | 2分20秒 |
Performance Tips
性能优化技巧
- GPU acceleration - FFmpeg uses hardware encoding when available (NVENC, VideoToolbox)
- CRF values - Lower = better quality, larger file. 18-28 typical range
- Preset selection - for drafts,
ultrafastfor final exportsslow - Two-pass encoding - Better quality for target bitrate
- GPU加速 - 当硬件支持时,FFmpeg会使用硬件编码(NVENC、VideoToolbox)
- CRF值 - 值越小,画质越好,文件越大。常用范围为18-28
- 预设选择 - 适用于草稿,
ultrafast适用于最终导出slow - 双次编码 - 在目标比特率下能获得更好的画质
Skill Boundaries
技能边界
What This Skill Does Well
该技能擅长的工作
- Structuring audio production workflows
- Providing technical guidance
- Creating quality checklists
- Suggesting creative approaches
- 构建音频制作工作流
- 提供技术指导
- 创建质量检查清单
- 提出创意方案
What This Skill Cannot Do
该技能无法完成的工作
- Replace audio engineering expertise
- Make subjective creative decisions
- Access or edit audio files directly
- Guarantee commercial success
- 替代音频工程专业知识
- 做出主观创意决策
- 直接访问或编辑音频文件
- 保证商业成功
Related Skills
相关技能
- whisper-transcription - Transcribe video audio
- youtube-downloader - Download videos to process
- image-batch - Process video thumbnails
- whisper-transcription - 转录视频音频
- youtube-downloader - 下载待处理的视频
- image-batch - 处理视频缩略图
Skill Metadata
技能元数据
- Mode: cyborg
yaml
category: automation
subcategory: video-processing
dependencies: [ffmpeg-python, moviepy]
difficulty: beginner
time_saved: 5+ hours/week- 模式: cyborg
yaml
category: automation
subcategory: video-processing
dependencies: [ffmpeg-python, moviepy]
difficulty: beginner
time_saved: 5+ hours/week