Media Upload, Auto-Fit Video & Clip Pipeline
media_pipelineExecute media ingestion, zero-egress storage uploads, automatic multi-aspect-ratio video reframing (9:16, 16:9, 1:1, 4:5), viral short clip extraction with burned-in captions, and AI visual asset generation (media_generate). Use this tool before posts_publish whenever a campaign requires uploading video/image files or converting a single landscape video into vertical Reels, TikToks, and YouTube Shorts. Returns presigned PUT upload URLs, zero-egress CDN URLs, transcoded aspect-ratio variant maps, or extracted clip URLs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Media pipeline operation: 'presign_upload' creates a signed direct PUT upload URL (no Authorization header needed, single use, 15 min), 'upload_base64' uploads a file inline (fileName, mimeType/contentType, dataBase64; max 20 MB), 'auto_fit_video' reframes video into target aspect ratios with -14 LUFS audio normalization, 'extract_clips' cuts viral vertical highlights, 'media_generate' renders social visuals from a prompt, and 'check_status' polls transcode progress. | |
| prompt | No | Creative prompt or visual template instructions when running `action: 'media_generate'` (e.g. 'Minimalist B2B architecture diagram for MCP server launch'). | |
| fileName | No | Original file name with extension (e.g. 'keynote-demo.mp4' or 'launch-carousel.png') when requesting a presigned upload URL. | |
| mimeType | No | MIME type of the media asset being uploaded or generated (e.g. 'video/mp4', 'image/png', 'image/jpeg', 'image/svg+xml'). | video/mp4 |
| clipCount | No | Number of short highlight clips (1 to 10) to extract from a long-form source video when `action` is 'extract_clips'. | |
| profileId | No | Brand profile identifier (`prof_...`) that owns the media asset. | prof_allometrik |
| sizeBytes | No | File size in bytes used to validate upload quotas and allocate storage buffers. | |
| dataBase64 | No | Base64-encoded file bytes for 'upload_base64' (max 20 MB decoded). | |
| contentType | No | MIME type for 'upload_base64' (alias of mimeType), e.g. 'image/jpeg'. | |
| mediaAssetId | No | Existing media asset identifier (`med_...`) to reframe, extract clips from, or inspect status. | |
| targetAspectRatios | No | Target aspect ratios for automatic video/image reframing: '9:16' (Reels/TikTok/Shorts), '16:9' (X/LinkedIn/YouTube), '1:1' (Square), '4:5' (Portrait Feed). |