media-processing
Process multimedia files with FFmpeg (video/audio encoding, conversion, streaming, filtering, hardware acceleration), ImageMagick (image manipulation, format conversion, batch processing, effects, composition), and RMBG (AI-powered background removal). Use when converting media formats, encoding videos with specific codecs (H.264, H.265, VP9), resizing/cropping images, removing backgrounds from images, extracting audio from video, applying filters and effects, optimizing file sizes, creating streaming manifests (HLS/DASH), generating thumbnails, batch processing images, creating composite images, or implementing media processing pipelines. Supports 100+ formats, hardware acceleration (NVENC, QSV), and complex filtergraphs.
- License 许可
- MIT
- 最近更新
- 2026-02-02
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- media-processing
- license
- MIT
- description
- Process multimedia files with FFmpeg (video/audio encoding, conversion, streaming, filtering, hardware acceleration), ImageMagick (image manipulation, format conversion, batch processing, effects, composition), and RMBG (AI-powered background removal). Use when converting media formats, encoding videos with specific codecs (H.264, H.265, VP9), resizing/cropping images, removing backgrounds from images, extracting audio from video, applying filters and effects, optimizing file sizes, creating streaming manifests (HLS/DASH), generating thumbnails, batch processing images, creating composite images, or implementing media processing pipelines. Supports 100+ formats, hardware acceleration (NVENC, QSV), and complex filtergraphs.
02 资源文件 45
- 许可证LICENSE1.1 KB
- 参考文档references/common-workflows.md2.8 KB
- 参考文档references/crypto-diligence.md17.0 KB
- 参考文档references/crypto-legal-security.md3.0 KB
- 参考文档references/crypto-market-intelligence.md4.3 KB
- 参考文档references/crypto-onchain-flows.md3.1 KB
- 参考文档references/crypto-technical.md3.5 KB
- 参考文档references/crypto-unit-economics.md2.8 KB
- 参考文档references/crypto-valuation.md3.8 KB
- 参考文档references/ffmpeg-encoding.md9.2 KB
- 参考文档references/ffmpeg-filters.md11.5 KB
- 参考文档references/ffmpeg-streaming.md9.3 KB
- 参考文档references/format-compatibility.md8.5 KB
- 参考文档references/imagemagick-batch.md11.9 KB
- 参考文档references/imagemagick-editing.md12.9 KB
- 参考文档references/methodology-and-sources.md13.5 KB
- 参考文档references/pdf-report-production.md2.7 KB
- 参考文档references/portfolio-fit.md3.3 KB
- 参考文档references/rmbg-background-removal.md1.6 KB
- 参考文档references/team-and-org.md2.4 KB
- 参考文档references/troubleshooting.md2.7 KB
- 脚本scripts/batch_resize.py10.0 KB
- 脚本scripts/batch-remove-background.sh3.2 KB
- 脚本scripts/media_convert.py8.2 KB
- 脚本scripts/README.md2.5 KB
- 脚本scripts/remove-background.sh2.4 KB
- 脚本scripts/remove-bg-node.js4.1 KB
- 脚本scripts/requirements.txt558 B
- 脚本scripts/tests/.coverage52.0 KB
- 脚本scripts/tests/requirements.txt32 B
- 脚本scripts/tests/test_batch_resize.py10.7 KB
- 脚本scripts/tests/test_media_convert.py7.7 KB
- 脚本scripts/tests/test_video_optimize.py11.8 KB
- 脚本scripts/video_optimize.py12.8 KB
- 参考文档SOURCE.md364 B
- 参考文档templates/investment-analysis.md10.2 KB
- 参考文档templates/investment-committee-en.md1.8 KB
- 参考文档templates/investment-committee-tr.md1.9 KB
- 参考文档templates/investment-memo-en.md3.5 KB
- 参考文档templates/investment-raporu-tr.md2.8 KB
- 参考文档templates/investment-report-en.md4.2 KB
- 参考文档templates/investment-report-full-tr.md4.2 KB
- 参考文档templates/investment-screen-en.md2.5 KB
- 参考文档templates/README.md1.5 KB
- 参考文档TRUST.auto.yaml2.1 KB
03 SKILL.md 正文
Media Processing Skill
Process video, audio, and images using FFmpeg, ImageMagick, and RMBG CLI tools.
Tool Selection
| Task | Tool | Reason |
|---|---|---|
| Video encoding/conversion | FFmpeg | Native codec support, streaming |
| Audio extraction/conversion | FFmpeg | Direct stream manipulation |
| Image resize/effects | ImageMagick | Optimized for still images |
| Background removal | RMBG | AI-powered, local processing |
| Batch images | ImageMagick | mogrify for in-place edits |
| Video thumbnails | FFmpeg | Frame extraction built-in |
| GIF creation | FFmpeg/ImageMagick | FFmpeg for video, ImageMagick for images |
Installation
# macOS
brew install ffmpeg imagemagick
npm install -g rmbg-cli
# Ubuntu/Debian
sudo apt-get install ffmpeg imagemagick
npm install -g rmbg-cli
# Verify
ffmpeg -version && magick -version && rmbg --version
Essential Commands
# Video: Convert/re-encode
ffmpeg -i input.mkv -c copy output.mp4
ffmpeg -i input.avi -c:v libx264 -crf 22 -c:a aac output.mp4
# Video: Extract audio
ffmpeg -i video.mp4 -vn -c:a copy audio.m4a
# Image: Convert/resize
magick input.png output.jpg
magick input.jpg -resize 800x600 output.jpg
# Image: Batch resize
mogrify -resize 800x -quality 85 *.jpg
# Background removal
rmbg input.jpg # Basic (modnet)
rmbg input.jpg -m briaai -o output.png # High quality
rmbg input.jpg -m u2netp -o output.png # Fast
Key Parameters
FFmpeg:
-c:v libx264- H.264 codec-crf 22- Quality (0-51, lower=better)-preset slow- Speed/compression balance-c:a aac- Audio codec
ImageMagick:
800x600- Fit within (maintains aspect)800x600^- Fill (may crop)-quality 85- JPEG quality-strip- Remove metadata
RMBG:
-m briaai- High quality model-m u2netp- Fast model-r 4096- Max resolution
References
Detailed guides in references/:
ffmpeg-encoding.md- Codecs, quality, hardware accelerationffmpeg-streaming.md- HLS/DASH, live streamingffmpeg-filters.md- Filters, complex filtergraphsimagemagick-editing.md- Effects, transformationsimagemagick-batch.md- Batch processing, parallel opsrmbg-background-removal.md- AI models, CLI usagecommon-workflows.md- Video optimization, responsive images, GIF creationtroubleshooting.md- Error fixes, performance tipsformat-compatibility.md- Format support, codec recommendations
04 同仓库更多 Skills
全栈 Web 应用开发框架
web-frameworks
使用 Next.js(App Router、Server Components、RSC、PPR、SSR、SSG、ISR)、Turborepo(单体仓库管理、任务流水线、远程缓存、并行执行)和 RemixIcon(3100+ 描边/填充风格 SVG 图标)构建现代全栈 Web 应用。适用于创建 React 应用、实现服务端渲染、搭建包含多个包的单体仓库、优化构建性能与缓存策略、添加图标库、管理共享依赖,或处理 TypeScript 全栈项目。
React/Next.js 性能优化
vercel-react-best-practices
来自 Vercel 工程团队的 React 与 Next.js 性能优化指南。在编写、审查或重构 React/Next.js 代码以确保最佳性能模式时,应使用本技能。适用于涉及 React 组件、Next.js 页面、数据获取、打包优化或性能提升的任务。
界面样式设计与组件开发
ui-styling
使用 shadcn/ui 组件(基于 Radix UI + Tailwind 构建)、Tailwind CSS 工具类优先的样式设计以及基于 canvas 的视觉设计,创建美观且无障碍的用户界面。适用于构建用户界面、实现设计系统、创建响应式布局、添加无障碍组件(对话框、下拉菜单、表单、表格)、定制主题与配色、实现暗黑模式、生成视觉设计与海报,或在应用程序之间建立一致的样式规范。
threejs
Build immersive 3D web experiences with Three.js - WebGL/WebGPU library for scenes, cameras, geometries, materials, lights, animations, loaders, post-processing, shaders (including node-based TSL), compute, physics, VR/XR, and advanced rendering. Use when creating 3D visualizations, games, interactive graphics, data viz, product configurators, architectural walkthroughs, or WebGL/WebGPU applications. Covers OrbitControls, GLTF/FBX loading, PBR materials, shadow mapping, post-processing effects (bloom, SSAO, SSR), custom shaders, instancing, LOD, animation systems, and WebXR.
sequential-thinking
Apply structured, reflective problem-solving for complex tasks requiring multi-step analysis, revision capability, and hypothesis verification. Use for complex problem decomposition, adaptive planning, analysis needing course correction, problems with unclear scope, multi-step solutions, and hypothesis-driven work.
research
Use when you need to research, analyze, and plan technical solutions that are scalable, secure, and maintainable.