Picture-in-Picture Layout Planner

Place a second video inside a main frame: choose the frame, the inset's aspect ratio, its share of the width and the corner, and get the exact pixel rectangle to composite, a title-safe check and an FFmpeg overlay expression. Everything is calculated in your browser; nothing is uploaded or sent anywhere.

Frame and inset

The delivery frame, for example 1920.

The delivery frame, for example 1080.

The source's own shape: 16:9, 9:16, 4:3, 1:1 or a number such as 1.85.

Width in percent of the main frame width; the height follows the aspect ratio.

Distance from the frame edges. 5% keeps the inset on the title-safe line.

Which corner the inset is anchored to.

Even sizes avoid chroma-subsampling edge artefacts and encoder padding; the nearest pixel keeps the requested size.

Layout

Preview only: the dashed box is the 5% title-safe edge.

Inset size
not computedwidth × height in pixels
Top-left corner
not computedx, y of the inset inside the frame
Margin
not computedfrom the anchored edges
Width share
not computedof the frame width
Area share
not computedof the whole frame
Fitted aspect
not computedactual shape after rounding

FFmpeg overlay

scale the inset, then overlay at the computed corner

    How this is computed

    • Calculate to see the layout arithmetic.