Skip to main content
Glama

clear-line-ops

Compress to a target size

compress_media

Shrink a video or audio file to fit a size limit, such as 8 MB for Discord or 25 MB for email. Picks the bitrate for you and re-encodes once more if the first attempt lands over the limit. Cost: 1 credit per minute of output. Long jobs return a job_id; poll it with get_job. Result links expire in 1 hour.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesSource file: public http(s) link
formatNoDefaults to mp4 for video and mp3 for audio
max_heightNoShrink video to at most this height, e.g. 720
start_secondsNoStart time in seconds
target_size_mbYesLargest allowed file size in MB
duration_secondsNoLength of the result in seconds

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.