Two seconds into the vertical export, the terminal was gone. The viewer was supposed to run curl -fsS http://localhost:3000/health. All they could see was an idle editor pane.

The export was 720 × 1280, exactly the size I asked FFmpeg for. The trouble was where the crop landed. Keeping the whole screen fixed that problem, but it introduced another one: the command was now too small to read at phone width.

Here are the two exports, what happened to the text in each one, and the crop that brought the command back.

Set up a demo with something to read

For this test, I made an 18-second mock screen recording at 1920 × 1080. It has a terminal on the left, a code editor in the middle, and a browser on the right. The layout stays fixed while the active panel changes every six seconds. The body text is set at 20 px in the source.

I picked three frames to check before exporting anything:

Source time What the viewer needs to read
00:02 The full curl -fsS http://localhost:3000/health command in the terminal
00:08 @app.get("/health") and the return statement in the editor
00:14 The "status": "ok" response in the browser

You can use your own widescreen recording for this. Pick the details someone would actually need to follow your demo. A flag, a filename, or the last part of a URL makes a good test.

Make two vertical exports with FFmpeg

Both commands use the same square-pixel 1920 × 1080 input, demo.mp4. They produce 720 × 1280 MP4s and require an FFmpeg build with libx264.

Center crop

ffmpeg -i demo.mp4 -map 0:v:0 -map '0:a:0?' \ -vf 'crop=608:1080,scale=720:1280,setsar=1' \ -c:v libx264 -crf 18 -pix_fmt yuv420p -c:a aac \ -movflags +faststart center-crop.mp4 

At the source resolution, the crop keeps the middle 608 pixels out of 1,920. That gives the editor room to breathe in a vertical frame. It also explains why the terminal and browser text disappear when the action moves to either side of the screen.

Fit the full frame and pad it

ffmpeg -i demo.mp4 -map 0:v:0 -map '0:a:0?' \ -vf 'scale=720:-2,pad=720:1280:(ow-iw)/2:(oh-ih)/2,setsar=1' \ -c:v libx264 -crf 18 -pix_fmt yuv420p -c:a aac \ -movflags +faststart fit-and-pad.mp4 

This scales the entire desktop to fit the output width, then fills the rest of the vertical frame with padding. Every panel stays in view. How much you can read depends on how big the text was to begin with.

Check the result at phone width

I compared the same frames in both exports at 360 pixels wide, without zooming. Here's what stayed readable in this fixture:

Source time Center crop Full frame with padding
00:02 · Terminal command The whole command is outside the crop. The command is in frame, but the full URL is too small to read comfortably.
00:08 · Editor code The route and return statement are readable. The code is in frame, but the route and return statement are hard to read.
00:14 · Browser response The JSON response is outside the crop. The JSON response is in frame, but the key and value are hard to read.

The full-frame version gives the entire 1,920-pixel desktop just 360 pixels of display width. A 20 px source font scales to under 4 px at that size. That's why pausing on the export at full resolution can give you a much rosier impression than watching it at phone width.

Move the crop when the action moves

For the terminal shot, I kept the same crop size and moved its left edge to x=64. In the first command, the filter becomes:

crop=608:1080:64:0,scale=720:1280,setsar=1 

At 00:02, that brought the full command back into view, and I could read it at the same 360-pixel width. Use that offset for the terminal shot in this layout. When the demo moves to a different pane, frame that pane in its own shot. If you're recording from scratch, you can also enlarge the active pane before you hit record.

Use the same check on automatically selected clips

If you're running a parallel test with an automatic clip generator, Video Cutter AI's 9:16 workflow is one way to generate a vertical draft from a narrated recording. The table above comes from the local FFmpeg exports of the mock demo.

Start by finding the same action in the new clip. An export might open at the API response and skip the command altogether. If the scene is there, check whether the crop still shows the command and whether the captions cover it. Those observations tell you whether to extend the clip, move the crop, or reposition the captions.

My last check is to pause at the command, the code, and the result. If I can't read what I need for the next step at phone width, that shot needs another pass.