Social Exports
Render MP4s and GIFs for X, LinkedIn, Instagram and TikTok that fit each platform and loop cleanly.
Pick a preset, then render it. Presets set the size, frame rate, format and safe area for each platform. See Export for the full list.
{
"timeline": { "duration": 6, "loop": "loop" },
"exports": {
"x": { "preset": "x_1x1", "seamless_loop": true },
"reel": { "preset": "instagram_reel" },
"gif": { "preset": "x_gif" }
}
}motion-sdk render scene.json --export x
motion-sdk render scene.json --export reel -o reel.mp4
motion-sdk render scene.json --export gifSeamless Loops
A looping post should have no visible jump when it wraps. Three things make that work.
- Set
timeline.looptoloop. - End every track where it started, or use a full turn, like
0to360degrees. - Make the export duration a whole multiple of the timeline.
The validator catches all three with loop_seam. After rendering, the CLI compares the first and last frames and prints the result. Add --require-seamless in CI to fail on a bad loop.
Safe Areas
Platforms cover parts of the frame with their own UI. Presets for vertical video set a safe area, and framing keeps your design inside it. Use --cover to fill the frame and crop instead.
Captions
Add captions to an export to burn in subtitles. Each caption has start, end and text.
Size Limits
- X rejects GIFs over 15 MB. Lower
--width,--fpsor--gif-colorsif the CLI warns. - Each preset has a maximum duration. Going over gives a
platform_limitwarning. - MP4 sizes must be even. Odd sizes give an
odd_dimensionserror.
Quality
--motion-blur 8averages 8 subframes per frame. It's worth it for fast motion.--encoder ffmpeguses libx264 for smaller files, ifffmpegis installed.--dither fsgives smoother GIF gradients than the defaultordered, but bigger files.
See the CLI reference for every flag.