Quick Ref / Command

Engineer Kit

/ak:media-processing

Process video, audio, and images

Process video, audio, images, thumbnails, streams, GIFs, and AI background removal with the right CLI for the media job.

01

Classify media task

02

Select tool

03

Check installation

04

Pick parameters

Rule 01

Match the tool to the media type

Rule 02

Prefer stream copy when remuxing is enough

Rule 03

Tune quality with explicit codec and size targets

Rule 04

Keep generated assets organized and reviewable

Execution Map

Core lanes from input to output, aligned with the command's real execution path.

01

Start

Input, scope, route

  1. 1 Classify media task Decide whether the job is video, audio, still image, batch image, thumbnail, GIF, streaming, or background removal.
  2. 2 Select tool Use FFmpeg for video/audio/streams/thumbnails, ImageMagick for images/batch effects, and RMBG for local AI cutouts.
02

Work

Agent / skill execution

  1. 3 Check installation Verify ffmpeg, magick, and rmbg before promising conversion or background-removal output.
  2. 4 Pick parameters Choose codecs, CRF, preset, audio codec, resize geometry, quality, metadata strip, or RMBG model based on output goal.
03

Verify

Gate, review, validation

  1. 5 Run conversion Apply the command for copy/remux, re-encode, extract audio, resize, batch resize, thumbnail, GIF, stream, or cutout.
  2. 6 Organize outputs Invoke project-organization guidance so generated files land in a predictable project location.
04

Close

Report, handoff, artifact

  1. 7 Inspect quality Confirm format compatibility, file size, dimensions, playback, alpha channel, and visual/audio quality.
  2. 8 Troubleshoot Use the reference guides for encoding, streaming, filters, batch processing, model choice, and performance errors.

Syntax, arguments, subcommands

How to invoke the skill: syntax, positional arguments, shared options, then each subcommand with its own syntax and outcome.

Syntax

/ak:media-processing [input-file] [operation]

Arguments

[input-file]

Input media

Source file, directory, or reviewed batch scope to inspect or transform. Preserve originals and name new output paths; do not use broad globs or in-place overwrite unless that is intentional and recoverable.

/ak:media-processing demo.avi convert to H.264 MP4 for web playback
[operation] Required

Media operation

Natural-language conversion, resize, crop, filter, thumbnail, GIF, audio extraction, HLS/DASH packaging, approved live stream, or background-removal request. Include target format, quality, size, resource limits, and validation needs.

/ak:media-processing "Inspect ./media/demo.mov, create ./artifacts/demo-web.mp4 as H.264/AAC with fast-start and maximum width 1920, preserve the source, test a 15-second sample first, and report quality"

Sample Prompt

Concrete invocations for each flag, subcommand, mode, or route available in the live workflow.

Web MP4 conversion Recommended
/ak:media-processing demo.avi convert to H.264 MP4 for web playback
Use when:
Use for FFmpeg video encoding, format conversion, or compatibility work.
Expected:
Chooses FFmpeg, distinguishes stream copy from re-encode, and names codec, CRF, audio, and output tradeoffs.
Responsive image batch
/ak:media-processing product-images resize JPGs to 800px wide at quality 85
Use when:
Use for ImageMagick still-image transforms or batch media work.
Expected:
Uses ImageMagick or mogrify with resize, quality, metadata, and organized output guidance for the batch.
Background removal
/ak:media-processing hero-photo.jpg remove background with high quality PNG output
Use when:
Use when an image needs local AI background removal through RMBG.
Expected:
Selects RMBG, explains briaai versus faster models, and targets a transparent PNG with resolution constraints.
HLS stream output
/ak:media-processing launch-video.mp4 create HLS streaming outputs
Use when:
Use for FFmpeg streaming, thumbnails, filters, or video delivery workflows.
Expected:
Plans FFmpeg streaming output and points to compatibility, segment, quality, and organized artifact checks.

Handled Scope

  • FFmpeg encoding and filters
  • Audio extraction and conversion
  • ImageMagick resize/effects
  • Batch media processing
  • RMBG background removal
  • HLS/DASH streaming

Artifacts Produced

Media Output

Pattern

Converted media files plus command rationale

Output should name the chosen tool, key parameters, generated files, and any compatibility or quality tradeoffs.

Related skills

Next