Merge videos
Put clips one after another and get a single video. Nothing leaves your device.
Free tools from Life2Film, the iPhone app that edits your day into a film by itself.
Your file is read and re-encoded by your own browser. No request carries it anywhere — this page has no upload endpoint to send it to.
Questions
Can I merge videos of different sizes or from different phones?
Yes. Every frame is decoded and placed into the first clip's frame (with black bars when the shape differs), then the whole film is encoded once. That is slower than gluing files together, and it is what makes clips from different cameras play as one.
Is there a size limit?
Only your device's memory: the merged file is held in memory before it is saved, so a few hundred megabytes is comfortable on a laptop, several gigabytes is not.
Can it pick the best parts and cut them to music?
Not this page: it joins whole clips as they are. Picking the best moments from many clips and cutting them to a song is what the Life2Film iPhone app does.
Is anything uploaded?
No. Decoding and encoding run in your browser through WebCodecs.
Let your agent merge videos: connect Life2Film's MCP (52 video tools, guides and skills)
claude mcp add --transport http life2film https://life2film.com/mcpPrompt, skill
Paste to your agent:
Use Life2Film's merge-videos on my file: call get_tool("merge-videos") on the life2film MCP, then do it.Claude.ai / ChatGPT connector: https://life2film.com/mcp · Cursor: {"mcpServers":{"life2film":{"url":"https://life2film.com/mcp"}}}
get_tool("merge-videos") · Skill file: /tools/merge-videos/skill.md · all skills
Related
The other tools
Build this into your own project
Joining videos into one, locally — the same way this page does it, on the user's machine, with no server. Take the code, or hand the prompt to a coding agent.
import { CanvasSink, CanvasSource, Output, Mp4OutputFormat, BufferTarget } from 'mediabunny';
const canvas = new OffscreenCanvas(width, height);
const ctx = canvas.getContext('2d');
const video = new CanvasSource(canvas, { codec: 'avc', bitrate: 5e6 });
// output.addVideoTrack(video); await output.start();
let offset = 0;
for (const clip of clips) {
for await (const f of new CanvasSink(clip.track, { width, height, fit: 'contain' }).canvases()) {
ctx.drawImage(f.canvas, 0, 0);
await video.add(offset + f.timestamp, f.duration);
}
offset += clip.duration;
} Add "merge several videos into one" to my project, running entirely in the browser.
Requirements:
- Use "mediabunny" (WebCodecs). Decode every clip with CanvasSink fitted ('contain') into the first
clip's display size, draw onto one canvas and encode with CanvasSource, offsetting timestamps.
- Sound: one stereo track at the first clip's sample rate; resample others through
OfflineAudioContext; a clip without sound adds silence of its own length.
- Let the user reorder the clips before joining.
Reference implementation: https://life2film.com/tools/merge-videos/
The engine is documented for agents, and every tool page is available as
markdown by adding .md to its address.