# long-youtube-video-to-vertical-short: commands.log (2026-11-21, ffmpeg 6.1.1) test files: original.mp4 (test pattern, 1920x1080, 90 s) and download-720p.mp4 (the same scaled to 1280x720, standing in for a lower-resolution download) 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=90.000000 size=41808649 codec_name=h264 width=1280 height=720 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=90.000000 size=9636553 ## 1. cut 45 seconds and crop to 9:16 in one pass published: ffmpeg -ss 00:00:30 -to 00:01:15 -i original.mp4 -vf "crop=ih*9/16:ih,scale=1080:1920" -c:v libx264 -crf 20 -c:a aac -b:a 160k short.mp4 exit=0 time=44.93s 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=45.000000 size=17158113 edge: the 720p copy through the same command published: ffmpeg -ss 00:00:30 -to 00:01:15 -i download-720p.mp4 -vf "crop=ih*9/16:ih,scale=1080:1920" -c:v libx264 -crf 20 -c:a aac -b:a 160k edge-short-720.mp4 exit=0 time=39.79s 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=45.000000 size=9578148 ## arithmetic 1080p: 9:16 window 607.5x1080 px; scale to 1080x1920 is x1.778 (upscaled); the window holds 0.66 MP against 2.07 MP in the output = 31.6% 720p: 9:16 window 405.0x720 px; scale to 1080x1920 is x2.667 (upscaled); the window holds 0.29 MP against 2.07 MP in the output = 14.1% 4K: 9:16 window 1215.0x2160 px; scale to 1080x1920 is x0.889 (downscaled); the window holds 2.62 MP against 2.07 MP in the output = 126.6% ## sharpness check: SSIM of each short against the 1080p-source short (1.0 = identical) All:0.983920