Media Conversion
Convert video or audio files between formats using ffmpeg, including re-encoding, resizing, extracting audio, creating GIFs, and adjusting quality settings.
What it does
Convert video or audio files between formats using ffmpeg, including re-encoding, resizing, extracting audio, creating GIFs, and adjusting quality settings.
Procedure
When this skill is activated, Chalie follows these steps:
- Use
memoryto recall any prior media conversion preferences (preferred output format, quality settings, or common workflows). - Ask the user for the source file path, desired output format, and any specific requirements (resolution, bitrate, audio-only extraction, start/end timestamps).
- Use
bashwith action read to runffmpeg -i <source_file> 2>&1to probe the input file — report codec, resolution, duration, bitrate, and audio channels. - Based on the probe results and user requirements, construct the ffmpeg command with appropriate flags — prefer
-c:v libx264 -crf 23for video and-c:a aac -b:a 192kfor audio as sensible defaults unless the user specifies otherwise. - Use
bashwith action execute to run the ffmpeg conversion command, setting timeout_s proportional to the input file duration (estimate 1x real-time for re-encoding). - Use
bashwith action read to runls -lh <output_file>to confirm the output file exists and report its size. - Present the result: output file path, size, and a comparison to the original (size reduction or format change).
Version
v1 (curated)