# screen recording to vertical: commands.log (2026-11-21, ffmpeg 6.1.1) test file: screen-1080p.mp4 (drawn in code: dark editor mock with 14 px text, 12 s, tone) codec_name=h264 width=1920 height=1080 r_frame_rate=30/1 codec_name=aac channels=1 r_frame_rate=0/0 duration=12.000000 size=163628 edge file: screen-1440p-noaudio.mp4 (2560x1440, no audio track, 6 s) codec_name=h264 width=2560 height=1440 r_frame_rate=30/1 duration=6.000000 size=34951 ## 1. crop a 9:16 window from the middle and scale it to 1080x1920 published: ffmpeg -i screen-1080p.mp4 -vf "crop=ih*9/16:ih,scale=1080:1920" -c:a copy crop-vertical.mp4 exit=0 time=6.098s codec_name=h264 width=1080 height=1920 r_frame_rate=30/1 codec_name=aac channels=1 r_frame_rate=0/0 duration=12.000000 size=165433 edge: 2560x1440 input without audio, same command published: ffmpeg -i screen-1440p-noaudio.mp4 -vf "crop=ih*9/16:ih,scale=1080:1920" -c:a copy edge-crop.mp4 exit=0 time=3.601s codec_name=h264 width=1080 height=1920 r_frame_rate=30/1 duration=6.000000 size=23625 ## 1b. same window, moved: left edge at x=0 (the sidebar) published: ffmpeg -i screen-1080p.mp4 -vf "crop=ih*9/16:ih:0:0,scale=1080:1920" -c:a copy crop-left.mp4 exit=0 time=6.055s codec_name=h264 width=1080 height=1920 r_frame_rate=30/1 codec_name=aac channels=1 r_frame_rate=0/0 duration=12.000000 size=154641 edge: 2560x1440 input without audio, same command published: ffmpeg -i screen-1440p-noaudio.mp4 -vf "crop=ih*9/16:ih:0:0,scale=1080:1920" -c:a copy edge-crop-left.mp4 exit=0 time=3.490s codec_name=h264 width=1080 height=1920 r_frame_rate=30/1 duration=6.000000 size=19674 ## 2. keep the whole screen: fit the width, a blurred copy fills the rest published: ffmpeg -i screen-1080p.mp4 -filter_complex "[0:v]split[a][b];[a]scale=1080:1920:force_original_aspect_ratio=increase,crop=1080:1920,boxblur=20[bg];[b]scale=1080:-2[fg];[bg][fg]overlay=0:(H-h)/2" -c:a copy fit-vertical.mp4 exit=0 time=24.41s codec_name=h264 width=1080 height=1920 r_frame_rate=30/1 codec_name=aac channels=1 r_frame_rate=0/0 duration=12.000000 size=152760 edge: 2560x1440 input without audio, same command published: ffmpeg -i screen-1440p-noaudio.mp4 -filter_complex "[0:v]split[a][b];[a]scale=1080:1920:force_original_aspect_ratio=increase,crop=1080:1920,boxblur=20[bg];[b]scale=1080:-2[fg];[bg][fg]overlay=0:(H-h)/2" -c:a copy edge-fit.mp4 exit=0 time=11.90s codec_name=h264 width=1080 height=1920 r_frame_rate=30/1 duration=6.000000 size=20185 ## text size arithmetic (python) 1920x1080: 9:16 window 607.5 px wide = 31.6% of the width; zoom x1.778; 14 px text -> 24.9 px (crop) vs 7.9 px (fit width); fitted picture is 607.5 px tall = 31.6% of 1920 2560x1440: 9:16 window 810.0 px wide = 31.6% of the width; zoom x1.333; 14 px text -> 18.7 px (crop) vs 5.9 px (fit width); fitted picture is 607.5 px tall = 31.6% of 1920 phone: a 1080 px wide video shown 390 pt wide: 24.9 px -> 9.0 pt, 18.7 px -> 6.8 pt, 7.9 px -> 2.9 pt