Video GenerationActive
Video Picture-in-Picture (PiP) Overlay
Overlay a second clip onto a main video to create a clean picture-in-picture layout. Keeps the main video’s audio and length, with corner, size, margin, and border controls.
Video to VideoUtility
Model ID
video picture in picture
Provider
wiro
Updated
1790343433
wiro playground—wiro/video picture in picture
Updated 1790343433
Overview
Video Picture in Picture by Wiro composites two videos into one frame. It places an overlay clip in a chosen corner while keeping the main video full-screen. The output keeps the main video’s duration and audio, so you can add a face-cam or reaction layer without re-editing your timeline.
What you can build
- Reaction videos with a face-cam in a corner
- Game capture with a webcam overlay
- Tutorial videos that show a presenter and a screen recording together
- Commentary clips where the main video stays loud and the inset stays silent
- Interview layouts where you want a small “remote guest” window
- Quick social edits that need a consistent PiP layout across many clips
Inputs
- One main video file that fills the full frame. Use MP4, MOV, WebM, MKV, AVI, M4V. The output keeps this video’s length and sound.
- One overlay video file that appears as a smaller window on top. Its audio is removed in the final export.
- A corner placement for the overlay window: top-left, top-right, bottom-left, or bottom-right.
- An optional overlay size as a percentage of the main frame. It supports 5% to 90%. The overlay keeps its aspect ratio and fits inside the frame.
- An optional margin in pixels from the frame edges. It supports 0 to 1000 px.
- An optional setting to loop the overlay when it ends early. If disabled, the overlay disappears after it finishes.
- An optional border width around the overlay window. It supports 0 to 50 px.
- An optional border color as a hex code. It only shows when the border is not 0.
Outputs
The model returns one composed video file.
- The video shows the main clip full-screen with the overlay clip placed on top.
- The output duration matches the main video.
- The output audio comes from the main video only.
- If the main input is MP4, MOV, WebM, MKV, AVI, or M4V, the output keeps that container. Other input containers export as MP4.
Recommended settings
- For a typical face-cam overlay, start with bottom-right placement, 30% overlay size, and 24 px margin.
- If the overlay needs separation from a busy background, add a 2 to 6 px border in a high-contrast color.
- If your overlay clip is shorter than the main clip, enable looping when you need it visible for the full run.
Limitations
- The overlay audio is always removed. If you need both audios, mix audio before running.
- If the overlay clip is shorter and looping is off, the overlay disappears when it ends.
- Extreme overlay sizes can reduce readability. Very small insets hide detail.
- Low-quality inputs can degrade results. Expect issues with heavy compression, corrupted files, variable frame rates, or existing burned-in overlays.
- Odd aspect ratios can make the overlay feel cramped. The overlay keeps its shape and won’t stretch.
Safety & compliance
- Only upload videos you own or have permission to edit.
- Don’t upload private or sensitive footage without consent from the people shown.
- Don’t use overlays to mislead viewers about what was said or shown.
- Review outputs before publishing, especially when faces, logos, or personal data appear on screen.
API quick start
Run video picture in picture with a single API call.
POST https://api.wiro.ai/v1/Run/wiro/video-picture-in-picture
{
"inputVideo": "https://your-cdn.com/input.mp4",
"inputVideoOverlay": "https://your-cdn.com/input.mp4",
"position": "bottom-right",
"scale": 30
}curl
curl -X POST "https://api.wiro.ai/v1/Run/wiro/video-picture-in-picture" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_WIRO_API_KEY" \
--data-binary @- <<'JSON'
{
"inputVideo": "https://your-cdn.com/input.mp4",
"inputVideoOverlay": "https://your-cdn.com/input.mp4",
"position": "bottom-right",
"scale": 30
}
JSON