Skip to Content
GuidesPlatform Presets

Platform Presets

Use a preset to configure output dimensions and frame rate for a target platform in one line:

const project = new SIMPLEFFMPEG({ preset: "tiktok" });

Available presets

PresetResolutionAspect ratioUse case
tiktok1080 × 19209:16TikTok vertical videos
youtube-short1080 × 19209:16YouTube Shorts
instagram-reel1080 × 19209:16Instagram Reels
instagram-story1080 × 19209:16Instagram Stories
snapchat1080 × 19209:16Snapchat
instagram-post1080 × 10801:1Instagram feed posts
instagram-square1080 × 10801:1Square format
youtube1920 × 108016:9YouTube standard
twitter1920 × 108016:9Twitter / X horizontal
facebook1920 × 108016:9Facebook horizontal
landscape1920 × 108016:9General landscape
twitter-portrait1080 × 13504:5Twitter portrait
instagram-portrait1080 × 13504:5Instagram portrait

All presets default to 30fps.

Overriding preset values

Individual options override the preset:

const project = new SIMPLEFFMPEG({ preset: "tiktok", fps: 60, });

Programmatic inspection

SIMPLEFFMPEG.getPresetNames(); // ['tiktok', 'youtube-short', ...] SIMPLEFFMPEG.getPresets(); // { tiktok: { width: 1080, height: 1920, fps: 30 }, ... }
Last updated on