Picture in Picture Video Maker
Operator: Abdulla Al Fahad. How tools are built and checked
On a 1920 by 1080 screen recording, a 16:9 face-cam at 28% of the frame width in the bottom-right corner with a 3% margin is 538 by 303 pixels and sits at x = 1350, y = 745. Change the shape to a circle at 20% in the bottom left with a 4% margin and it becomes a 384 by 384 square cropped to the middle of the picture, at x = 43, y = 653.
The page places a second video over a main one with that arithmetic, lets the overlay start at any second, and mixes the two soundtracks. When both clips should get equal space, Split Screen Video Maker on this site is the better layout.
Key features
- Rectangle, rounded rectangle (corner radius 3 to 50% of the shorter side) or circle, with a 0 to 16 px border in any colour and an optional soft shadow
- An overlay start time to a tenth of a second, and a choice to hide the overlay when its video ends or keep its last frame
- Separate volumes from 0 to 150% for the main video and the overlay; 0 leaves that sound out
- A summary line giving the overlay's pixel size and the time range it covers, and a swap button to exchange the two videos
Where the overlay lands, when it shows and how the sound mixes
Both videos can be any file the browser plays (MP4, WebM, MOV, M4V). The output has the main video's picture, scaled to original, 1080, 720 or 480 on the shorter side, and its length, up to 15 minutes. The overlay width is 10 to 60% of the frame width and its distance from the edge 0 to 10% of the shorter side, in nine positions.
How it works
Rendering uses the same real-time canvas recorder as Split Screen Video Maker. The overlay's player is held at its first frame until its start time, then played; the main video fills the frame with a centre crop, and the overlay is drawn on top, clipped to the shape you chose. Both sounds go through gain nodes into one recording, and a clip that wanders more than 0.35 s from the recorder's clock is seeked back.
Common use cases
- A 3-minute software tutorial with a 20-second face-cam in a circle at the bottom left from 0:12, with the screen's own sound at 100% and the voice at 120%
- A 40-second gameplay clip with a reaction camera in the top right at 22% wide, with the game sound at 60% so the voice stays clear
- A 90-second drone shot with a 15-second ground-level angle as a rounded inset starting at 0:30, held on its last frame until the end
- A 2-minute lecture recording with the slides as the main video and a 25% speaker view in the bottom right, 4% from the edge
- A 60-second product demo with a close-up inset at the top centre during the last 10 seconds only, by starting it at 0:50
How to use this tool
- Add the main video and the overlay video.
- Pick a position, shape and width, then a border and shadow if you want them.
- Set when the overlay appears, whether it stays after it ends, and the two volumes.
- Choose resolution, quality and file type, check the summary line and click Render picture in picture.
Example
A 3-minute 1920 by 1080 screen recording and a 20-second 16:9 face-cam starting at 0:12
Rounded, bottom right, 28% wide, 3% margin
Circle, bottom left, 20% wide, 4% marginWhere the overlay lands, in output pixels
Rounded (28% wide, 3% margin): 538 × 303 at x 1350, y 745
Circle (20% wide, 4% margin): 384 × 384 at x 43, y 653, cropped from the middle of the face-cam
On screen from 0:12.0 to 0:32.0, then gone (or frozen if kept)Tips for best results
- Choose the circle for faces: it crops the overlay to its middle square, so a standing person in a 16:9 frame keeps the head and loses the sides.
- The margin is a percentage of the shorter side, so the gap keeps its proportion when you change resolution: 3% is 32 px in a 1920 by 1080 frame and 22 px in a 1280 by 720 one.
- For narration over a silent screen recording, set the main volume to 0 and the overlay to 100%, rather than muting the file beforehand.
Common pitfalls
If the overlay's video is longer than the time left in the main one, it is cut at the main video's end, and the summary line says how many seconds are lost.
A very tall overlay in a wide frame is shrunk to fit between the margins, so its width ends up smaller than the percentage you set.
The overlay is not frame-locked to the main video: it is started when the recorder's clock reaches its start time, which is fine for an inset but not for lip-sync against the main clip's own audio.
Common errors and how to fix them
- Render picture in picture is greyed out.
- Both videos must have finished loading, and the main video must be 15 minutes or shorter.
- The overlay vanishes before the main video ends.
- It disappears when its own video ends. Tick the option to keep its last frame, or choose a longer overlay clip. The summary line gives the time range it covers.
How the overlay's box is worked out
The overlay's width is the chosen percentage of the frame width, rounded to a whole pixel, and its height follows its own aspect ratio (a circle takes the same number for both). The margin is the chosen percentage of the shorter side. A left position puts the box at x = margin, a right position at frame width minus margin minus box width, and a centre position half way; the same rule applies vertically. If the box would be taller than the frame less two margins, it is scaled down to fit.
How the two sounds mix
Each volume is a gain from 0 to 1.5 applied to that video's audio before the two are summed into the recording. A sum can exceed full scale if both are loud, and the recording then clips, so lower one of them when both carry speech or music.
The overlay's sound starts with its picture. Before the start time it is silent, and after the overlay ends its sound is silent whether or not you keep the last frame.
Frequently asked questions
Can the overlay move around?
Not here. It keeps one position for as long as it shows; only its start time and whether it holds its last frame change over time.
What happens to the overlay's own aspect ratio?
A rectangle or rounded overlay keeps the overlay video's aspect ratio. A circle is a square cropped from the centre.
Does the main video keep its own frame size?
Yes, unless you pick a lower resolution. The shorter side is scaled down to the limit if the video is larger, never up.