Layouts compared
Turn a screen recording with a webcam into a vertical short

Short answer
A screen and a face are two pictures, and a vertical frame has room for both if you choose where each one goes. Stack them, screen on top in 60% of the frame and webcam below in 40%, and the screen shows 52.7% of its width. Or give the screen the full height, which shows 31.6% of its width much larger, and put the webcam in a small box. Stacking suits wide content; the corner box suits small text. Both commands are below.
Key takeaways
- Stack 60/40: the screen keeps 52.7% of its width but 16 px text only grows to 17.1 px.
- Full-height screen with a corner webcam: 31.6% of the width, and 16 px text becomes 28.4 px.
- In a stack with the screen on top, 87.5% of the webcam strip sits under the area the apps cover. Your face is the part that gets hidden.
- A 300 px webcam box placed at 588, 948 stays inside the area that is clear on Shorts, Reels and TikTok.
- When the webcam clip was shorter than the screen recording, the output still ran the full length of the screen recording. Check that both clips cover the same time.
Do you have one file or two?
Some recorders save the screen and the webcam as separate files; others burn the webcam into a corner of the screen recording. This page is for two files. If your webcam is already inside the screen recording, treat the whole thing as one picture and follow the screen recording to tutorial short guide instead, cropping to whichever part matters.
Line the two files up first. Same start, same length.
Layout 1: screen above, webcam below
The screen part is cropped to a window 1012 px wide out of 1920 and barely enlarged, 1.07 times. So you see a lot of screen, and text stays about the size it was. That is fine for a slide or a design. Too small for code.
ffmpeg -i screen.mp4 -i cam.mp4 -filter_complex "[0:v]crop=ih*15/16:ih,scale=1080:1152[s];[1:v]crop=ih*45/32:ih,scale=1080:768[c];[s][c]vstack" -map 0:a? -c:a copy -shortest stacked.mp4One thing the stack does badly. The apps cover the bottom 672 px of a vertical video with captions and buttons, and the webcam strip is the bottom 768 px. That puts 87.5% of your face strip under app interface. The screen strip keeps 75% clear.
Layout 2: screen at full height, webcam in a box
Here the screen gets everything and is enlarged 1.78 times, so 16 px text comes out at 28.4 px. The webcam becomes a 300 px square. Its position is not arbitrary: 588 from the left and 948 from the top puts the whole box inside the 768 x 960 px area that no app covers on Shorts, Reels or TikTok.
ffmpeg -i screen.mp4 -i cam.mp4 -filter_complex "[0:v]crop=ih*9/16:ih,scale=1080:1920[s];[1:v]crop=ih:ih,scale=300:300[c];[s][c]overlay=588:948" -map 0:a? -c:a copy -shortest corner.mp4
Which one should you pick?
| Stacked 60/40 | Full height plus box | |
|---|---|---|
| Screen width shown | 52.7% | 31.6% |
| 16 px text becomes | 17.1 px | 28.4 px |
| Webcam size | 1080 x 768 | 300 x 300 |
| Webcam clear of app interface | 12.5% of the strip | All of it |
| Good for | Slides, dashboards, design work | Code, spreadsheets, small menus |
Source: arithmetic in our test log from the crop and scale factors and the combined app margins. If your face matters as much as the screen, there is a third arrangement, webcam on top: the face strip is then 62.5% clear and the screen strip 41.7%. Nothing wins everywhere. Decide what the viewer has to read, because that is the part which must be large and clear of the app's interface, and let everything else, your face included, take whatever room and whatever position is left over once that decision is made.
What happens if the two clips differ?
We ran both commands again with a webcam clip that was shorter, 5 seconds against 8, and at 25 frames per second instead of 30. Both runs finished with exit code 0 and both outputs were 8 seconds long, the length of the screen recording. The stacked output came out at 25 frames per second, the corner output at 30.
So a mismatch does not stop the command, and it does not shorten the result to the webcam clip either. What the webcam part shows after its clip runs out is something to look at yourself before publishing. Trim both files to the same span first, so that the screen and the webcam start on the same word and end on the same word, and the question of what the shorter clip shows after it runs out simply never comes up.
Free tools:Trim a videoInspect a video file: duration and frame rate
Where do captions go?
In the stack, on the seam between the two pictures, around the middle of the frame. In the box layout, above the webcam box and below the line you are explaining. In both cases keep them out of the lowest 672 px.
Free tool:Add captions to a video
What we did not test
Real recordings. The screen is an editor mock and the webcam is a drawn figure, so sizes and exit codes are solid and looks are not judged. Sync between two real files, drifting audio and webcam clips with their own sound are outside this test; the commands take sound from the screen recording only. App margins are the combined published ones from the safe zone templates guide.
Do it in your browser
Free Koldflux tools, no account needed.
Questions people ask
How do I put my webcam under my screen recording in a vertical video?
Crop the screen to a 15:16 window, the webcam to 45:32, scale them to 1080 x 1152 and 1080 x 768 and stack them. The command is on this page.
Why is the text in my stacked video hard to read?
In a 60/40 stack the screen is enlarged only 1.07 times. Use the full-height layout, which enlarges it 1.78 times.
Where should the webcam box go?
Inside the area no app covers. On a 1080 x 1920 file for Shorts, Reels and TikTok that is x 120 to 888 and y 288 to 1248; our box sits at 588, 948.
Do the two files need the same frame rate?
The commands ran with 30 and 25 fps inputs. The result took one of the two rates, so matching them beforehand avoids surprises.
Which file does the sound come from?
From the first input, the screen recording. If your voice is on the webcam file, swap the audio mapping or mix the sound first.
Related
More guides on this topic
Sources and how we checked
- commands.log: both layouts with exit codes, the shorter 25 fps webcam edge input and the arithmetic (our run, November 21, 2026) (checked 2026-11-21)
- make-tests.sh: draws the test clips and runs the commands (Koldflux, shell) (checked 2026-11-21)
- FFmpeg Filters Documentation: crop, scale, vstack, overlay (checked 2026-11-21)
- Koldflux safe zone templates: the combined 768 x 960 px box and its platform sources (checked 2026-11-21)
On November 21, 2026 we combined an editor-mock clip and a drawn-figure clip in both layouts with ffmpeg 6.1.1, repeated the runs with a shorter 25 fps second input, and computed text sizes and covered areas from the scale factors and the combined app margins.