export_preset
Encode a source video into a platform-ready file for YouTube, Instagram Reels, TikTok, X, or other presets by reframing, capping fps, and encoding H.264 at the target bitrate; returns the output path.
Instructions
Encode a platform-ready file for youtube, instagram_reel, tiktok, x, square, steam_trailer, or vertical_reel. Reframes to the platform aspect, caps fps, and encodes H.264 at the platform bitrate with faststart. Returns the output path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | How to fit the source into the platform aspect: pad (default) or crop. | |
| input | Yes | Path to the source video. | |
| output | No | Optional output path. Defaults under SCREENCAST_HOME/edits. | |
| platform | Yes | Target platform. Sets aspect, resolution, fps, and bitrate. steam_trailer: 1920x1080, H.264 High, padded 5.5 Mbps CBR, AAC 48 kHz at -14 LUFS. vertical_reel: 1080x1920 with the footage centred over a blurred copy of itself, audio at -14 LUFS (fit is ignored). | |
| overwrite | No | Allow replacing an existing file at the output path (default false). |