| name | ak:media-processing |
| description | Process media with FFmpeg (video/audio), ImageMagick (images), RMBG (AI background removal). Use for encoding, format conversion, filters, thumbnails, batch processing, HLS/DASH streaming. |
| user-invocable | true |
| when_to_use | Invoke for FFmpeg, ImageMagick, or batch media work. |
| category | multimedia |
| keywords | ["ffmpeg","imagemagick","video","audio","images"] |
| license | MIT |
| argument-hint | [input-file] [operation] |
| metadata | {"author":"agentkit","version":"1.0.0"} |
Media Processing Skill
Process video, audio, and images using FFmpeg, ImageMagick, and RMBG CLI tools.
IMPORTANT: Invoke "the engineer project-organization skill" skill to organize the outputs.
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
brew install ffmpeg imagemagick
npm install -g rmbg-cli
sudo apt-get install ffmpeg imagemagick
npm install -g rmbg-cli
ffmpeg -version && magick -version && rmbg --version
Essential Commands
ffmpeg -i input.mkv -c copy output.mp4
ffmpeg -i input.avi -c:v libx264 -crf 22 -c:a aac output.mp4
ffmpeg -i video.mp4 -vn -c:a copy audio.m4a
magick input.png output.jpg
magick input.jpg -resize 800x600 output.jpg
mogrify -resize 800x -quality 85 *.jpg
rmbg input.jpg
rmbg input.jpg -m briaai -o output.png
rmbg input.jpg -m u2netp -o output.png
Key Parameters
FFmpeg:
-c:v libx264 - H.264 codec
-crf 22 - Quality (0-51, lower=better)