# Merge videos

Join clips into one video in the order you set, fitted to one shape, with a crossfade between them if you like.

Files are processed on our server, and the results are kept for a few minutes so you can download them, then deleted — whether or not you did.

Results are deleted 15 minutes after the job finishes.

Formats: mp4, webm, mkv, mov, avi, flv, ts, m2ts, 3gp, 3g2.

## API

POST the file as the raw request body to https://toolsforfree.app/api/jobs?operation=merge-videos&format={format}, then

GET https://toolsforfree.app/api/jobs/{taskId}?engine={engine} until state is done,
then GET https://toolsforfree.app/api/jobs/{taskId}/output?engine={engine}&format={format}, with the taskId, engine and format the 202 answers.

Details: https://toolsforfree.app/api.md

The clips go end to end in the body, in order, with each one's format and length in x-tff-clips, as mp4:1048576,mov:2097152; two to twenty, and format names the result's.

It reads a second file or several, so it needs the HTTP API rather than MCP.

## Options

Sent as JSON in the x-tff-options header. Bounds and allowed values are in https://toolsforfree.app/openapi.json.

- `video`: codec, mode, crf, bitrateKbps, targetBytes, effort, pixelFormat, keyframeSeconds, tune, profile, level, qscale, proresProfile, toneMap
- `audio`: codec, bitrateKbps, sampleRate, channels, volumeDb, vbrQuality, allTracks
- `merge`: aspect, fit, crossfadeSeconds
