# landscape-to-vertical: commands.log (2026-11-21, ffmpeg 6.1.1) test file: wide.mp4 (test pattern, 1920x1080, 8 s, tone) codec_name=h264 width=1920 height=1080 pix_fmt=yuv420p color_transfer=unknown r_frame_rate=30/1 codec_name=aac sample_rate=44100 channels=1 r_frame_rate=0/0 duration=8.000000 size=8234895 ## 1. centre crop published: ffmpeg -i wide.mp4 -vf "crop=ih*9/16:ih,scale=1080:1920" -c:a copy center-crop.mp4 exit=0 time=13.95s codec_name=h264 width=1080 height=1920 pix_fmt=yuv420p color_transfer=unknown r_frame_rate=30/1 codec_name=aac sample_rate=44100 channels=1 r_frame_rate=0/0 duration=8.000000 size=2436150 edge: 4:3 source 1440x1080, no audio published: ffmpeg -i wide-4x3.mp4 -vf "crop=ih*9/16:ih,scale=1080:1920" -c:a copy edge-crop-4x3.mp4 exit=0 time=8.683s codec_name=h264 width=1080 height=1920 pix_fmt=yuv420p color_transfer=unknown r_frame_rate=30/1 duration=4.000000 size=1847258 edge: 21:9 source 2560x1080, no audio published: ffmpeg -i wide-21x9.mp4 -vf "crop=ih*9/16:ih,scale=1080:1920" -c:a copy edge-crop-21x9.mp4 exit=0 time=7.693s codec_name=h264 width=1080 height=1920 pix_fmt=yuv420p color_transfer=unknown r_frame_rate=30/1 duration=4.000000 size=162471 ## 2. whole picture with a blurred fill published: ffmpeg -i wide.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 blur-fill.mp4 exit=0 time=20.51s codec_name=h264 width=1080 height=1920 pix_fmt=yuv420p color_transfer=unknown r_frame_rate=30/1 codec_name=aac sample_rate=44100 channels=1 r_frame_rate=0/0 duration=8.000000 size=1404533 edge: 21:9 source published: ffmpeg -i wide-21x9.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-blur-21x9.mp4 exit=0 time=11.40s codec_name=h264 width=1080 height=1920 pix_fmt=yuv420p color_transfer=unknown r_frame_rate=30/1 duration=4.000000 size=430130 ## 3. whole picture with black bars published: ffmpeg -i wide.mp4 -vf "scale=1080:-2,pad=1080:1920:0:(oh-ih)/2" -c:a copy bars.mp4 exit=0 time=9.404s codec_name=h264 width=1080 height=1920 pix_fmt=yuv420p color_transfer=unknown r_frame_rate=30/1 codec_name=aac sample_rate=44100 channels=1 r_frame_rate=0/0 duration=8.000000 size=1048862 edge: 4:3 source published: ffmpeg -i wide-4x3.mp4 -vf "scale=1080:-2,pad=1080:1920:0:(oh-ih)/2" -c:a copy edge-bars-4x3.mp4 exit=0 time=6.056s codec_name=h264 width=1080 height=1920 pix_fmt=yuv420p color_transfer=unknown r_frame_rate=30/1 duration=4.000000 size=821139 ## arithmetic 16:9 1920x1080: crop keeps 607.5 px = 31.6% of the width, zoom x1.778; fitted picture 607.5 px tall = 31.6% of the frame, scale x0.5625 4:3 1440x1080: crop keeps 607.5 px = 42.2% of the width, zoom x1.778; fitted picture 810.0 px tall = 42.2% of the frame, scale x0.7500 21:9 2560x1080: crop keeps 607.5 px = 23.7% of the width, zoom x1.778; fitted picture 455.6 px tall = 23.7% of the frame, scale x0.4219 1:1 1080x1080: crop keeps 607.5 px = 56.2% of the width, zoom x1.778; fitted picture 1080.0 px tall = 56.2% of the frame, scale x1.0000