Conform a video for a platform
conform_for_platformRe-encode videos into upload-ready files for target platforms, correcting aspect ratio, frame rate, H.264/AAC audio, fast start, and optional metadata stripping.
Instructions
Re-encode a video into an upload-ready file for a platform: correct aspect ratio and size (crop to fill, pad with bars, or the blurred-background look), constant frame rate, H.264 yuv420p with Rec.709 tags, AAC 48 kHz stereo, fast start, and optional metadata stripping (removes GPS). Set dry_run to only get the ffmpeg command. Never overwrites an existing file unless overwrite is true.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>",
"platform": "<platform>"
},
"name": "conform_for_platform"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crf | No | Quality: lower is better and larger. 18 is visually lossless for most footage. | |
| fit | No | How to handle a different aspect ratio: crop to fill, pad with solid bars, or blur = blurred copy of the shot behind it. | crop |
| fps | No | Force a frame rate. By default the source rate is kept unless it is variable or above the platform max. | |
| path | Yes | Absolute path to a local media file. ~ is expanded. | |
| start | No | Trim start: seconds or HH:MM:SS.mmm. | |
| width | No | Override the output width. | |
| height | No | Override the output height. | |
| preset | No | medium | |
| dry_run | No | Only return the ffmpeg command; do not encode. | |
| duration | No | Trim length in seconds. | |
| platform | Yes | Target platform: instagram_reels, instagram_feed, tiktok, youtube_shorts, youtube, x, linkedin | |
| overwrite | No | ||
| pad_color | No | For fit=pad: an ffmpeg color name or hex like 0x111111. | black |
| crop_anchor | No | For fit=crop: 0 keeps the left/top, 0.5 the center, 1 the right/bottom. | |
| output_path | No | Where to write the result. Defaults to <name>_<platform>.mp4 next to the source. | |
| strip_metadata | No | Remove metadata such as GPS location and device info. | |
| audio_bitrate_kbps | No |