Add picture-in-picture to a video
Place one video on top of another as a picture-in-picture overlay. Choose a corner or center, an overlay size and opacity, and which soundtrack to keep, then export a single MP4.
Add the main video
This video sets the output size and duration.
Add the overlay video
The overlay plays from the start and stops at its own end.
The overlay keeps its aspect ratio and sits inside the main frame.
The overlay is inset by 3.5% of the main width. Small, medium, and large use 25%, 35%, and 50% of the main width. Output is MP4/H.264/AAC at the main video's display size.
Why local
The Worker decodes both videos frame by frame, composites the overlay onto an OffscreenCanvas, and encodes H.264/AAC in your browser. The files never leave your device.
How it works
- Add the main video that sets the output size and duration, then add the overlay video.
- Choose a position, overlay size, opacity, and audio source.
- Create the picture-in-picture video, preview it, and download the MP4.
Capabilities
- Main and overlay
- The main video sets the output frame and duration. The overlay plays from the start and disappears when its own picture ends; it does not loop or freeze.
- Position
- Top left, top right, bottom left, bottom right, or centered. Corner overlays are inset by 3.5% of the main width.
- Size and opacity
- Small, medium, and large use 25%, 35%, and 50% of the main width while preserving the overlay aspect ratio. Opacity is 100%, 85%, or 70%.
- Audio
- Main audio, overlay audio, a mix of both, or mute. Single-source audio is resampled to 48 kHz stereo; a missing selected track is rejected before rendering.
- Output
- MP4/H.264/AAC at 30 fps. The frame follows the main video's display size, capped at 1920 px on its longest side for web re-encodes.
- No upload
- Both files are read, composited, and encoded in the Worker. Nothing is sent to a server.
Limits
- Exactly two videos per job: one main and one overlay. There is no batch mode.
- Each input is capped at 2 GiB and must be MP4, MOV, M4V, MKV, WebM, or MPEG-TS that the browser can decode.
- The output is always re-encoded H.264/AAC MP4 at 30 fps, even when both sources are MP4.
- The overlay does not loop, freeze, animate, or appear partway through; it starts at 0 and stops at its own end.
- Audio mixing both soundtracks is limited to 10 minutes. Use Main audio or Overlay audio for longer videos.
- There are no rounded corners, borders, shadows, chroma key, or opacity animation.
- The overlay is not rotated independently of its source orientation; its decoded orientation is kept.
- HDR, alpha, and 10-bit color are not preserved. Files without a video track are rejected.
- Long jobs show a warning and can be cancelled. Mobile devices may be slower or run out of memory on very large files.
FAQ
How is picture-in-picture different from split screen?
Split screen gives two clips equal cells. Picture-in-picture keeps the main video full frame and places a smaller overlay above it.
Can I hear both videos?
Yes. Choose Mix both. The two soundtracks are decoded to 48 kHz stereo, summed, and peak-limited at -1 dBFS. Mixing is capped at 10 minutes.
What happens when the overlay is shorter?
The overlay stops at its last frame and the main video continues alone to its own end. It is not looped or frozen.
Can I put the overlay in a custom position?
The UI offers five anchors and three sizes. There is no free-drag position or animation in this version.
Is the picture quality reduced?
Yes, the output is re-encoded H.264. Keep a high-quality source and avoid repeated re-encodes if quality matters.
Are my videos uploaded?
No. Both files stay in the browser tab and are processed in the Worker.