# 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](/docs/features/export) for the full list.

```json title="scene.json"
{
  "timeline": { "duration": 6, "loop": "loop" },
  "exports": {
    "x": { "preset": "x_1x1", "seamless_loop": true },
    "reel": { "preset": "instagram_reel" },
    "gif": { "preset": "x_gif" }
  }
}
```

```bash title="Terminal"
motion-sdk render scene.json --export x
motion-sdk render scene.json --export reel -o reel.mp4
motion-sdk render scene.json --export gif
```

## Seamless Loops

A looping post should have no visible jump when it wraps. Three things make that work.

1. Set `timeline.loop` to `loop`.
2. End every track where it started, or use a full turn, like `0` to `360` degrees.
3. 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`, `--fps` or `--gif-colors` if the CLI warns.
- Each preset has a maximum duration. Going over gives a `platform_limit` warning.
- MP4 sizes must be even. Odd sizes give an `odd_dimensions` error.

## Quality

- `--motion-blur 8` averages 8 subframes per frame. It's worth it for fast motion.
- `--encoder ffmpeg` uses libx264 for smaller files, if `ffmpeg` is installed.
- `--dither fs` gives smoother GIF gradients than the default `ordered`, but bigger files.

See the [CLI reference](/docs/reference/cli#render) for every flag.
