# FFmpeg landscape to Shorts checklist (ToolBrivio) Pasteable gate: choose center `crop` vs `scale`+`pad`, land an even 9:16 file with `-c:a copy`, prove WxH / duration / audio with ffprobe, then FAIL negative crop, odd scale, and wrong-axis EXIT=0 traps. Purpose: landscape interview / talking-head to Shorts-ready 9:16 without reopening an NLE. Not concat. Not burn-in. Not thumbnail. Test basis: ToolBrivio Guide dated 2026-11-04 (Debian 13; FFmpeg/ffprobe 7.1.5-0+deb13u1). Synthetic 1920x1080@30 h264+aac talking-head fixture 6.000000 s / 129,857 B. Secondary 720p 4.000000 s / 78,948 B. **Not a client recording.** Numbers: `/articles/ffmpeg-shorts-crop-pad-review.html`. Source WxH / duration / bytes: Path chosen (crop / pad): Output WxH / duration / bytes: A/V durations (V= A= F=): Neg-crop FAIL checked (Y / N): Odd-scale FAIL checked (Y / N): Wrong-axis FAIL checked (Y / N): PASS / FAIL / HOLD: ## 1. Confirm FFmpeg ```bash ffmpeg -version | head -n 5 ``` Lab: FFmpeg 7.1.5-0+deb13u1. HOLD: Windows / macOS builds. - [ ] Version written down ## 2. Probe the landscape source ```bash ffprobe -v error -show_entries format=duration,size \ -show_entries stream=codec_type,codec_name,width,height,sample_aspect_ratio,display_aspect_ratio,r_frame_rate,pix_fmt,sample_rate,channels \ -of default=nw=1 source_16x9.mp4 ``` Lab: h264+aac, 1920x1080, DAR 16:9, 6.000000 s, 129,857 B. - [ ] WxH / DAR / duration / audio recorded ## 3. Choose crop vs scale+pad Crop = full-bleed 9:16, sides cut (face must stay centered). Pad = keep full 16:9 inside 1080x1920 with black bars. HOLD: face-tracking / auto-reframe (not tested). - [ ] Crop or pad chosen on purpose ## 4. Center crop to 1080x1920 ```bash ffmpeg -y -hide_banner -i source_16x9.mp4 \ -vf "crop=trunc(ih*9/16/2)*2:ih:(iw-ow)/2:0,scale=1080:1920:flags=lanczos,setsar=1" \ -c:v libx264 -pix_fmt yuv420p -preset veryfast -crf 18 \ -c:a copy \ crop_center_1080x1920.mp4 echo exit=$? stat -c '%s' crop_center_1080x1920.mp4 ``` Lab: 1080x1920; 124,130 B; V=A=F=6.000000. Intermediate even crop without scale: 606x1080. CRF 18 / veryfast / lanczos = our lab choices. Optional 720x1280 from 720p source: ```bash ffmpeg -y -hide_banner -i source_16x9_720p.mp4 \ -vf "crop=trunc(ih*9/16/2)*2:ih:(iw-ow)/2:0,scale=720:1280:flags=lanczos,setsar=1" \ -c:v libx264 -pix_fmt yuv420p -preset veryfast -crf 18 \ -c:a copy \ crop_center_720x1280.mp4 ``` Lab: 720x1280; 80,367 B; 4.000000 s. HOLD: GPU / NVENC. - [ ] Exit 0; bytes recorded - [ ] Output is even 9:16 ## 5. Scale+pad to 1080x1920 (black bars) ```bash ffmpeg -y -hide_banner -i source_16x9.mp4 \ -vf "scale=1080:1920:force_original_aspect_ratio=decrease,pad=1080:1920:(ow-iw)/2:(oh-ih)/2:color=black,setsar=1" \ -c:v libx264 -pix_fmt yuv420p -preset veryfast -crf 18 \ -c:a copy \ pad_scale_1080x1920.mp4 echo exit=$? stat -c '%s' pad_scale_1080x1920.mp4 ``` Lab: 1080x1920; 124,004 B; V=A=F=6.000000; black bars. - [ ] Exit 0; 1080x1920; black bars expected ## Prove with ffprobe (after step 4 or 5) ```bash OUT=crop_center_1080x1920.mp4 # or pad_scale_1080x1920.mp4 ffprobe -v error -select_streams v:0 \ -show_entries stream=width,height,sample_aspect_ratio,display_aspect_ratio,codec_name,duration \ -show_entries format=duration,size -of default=nw=1 "$OUT" V=$(ffprobe -v error -select_streams v:0 -show_entries stream=duration -of csv=p=0 "$OUT") A=$(ffprobe -v error -select_streams a:0 -show_entries stream=duration -of csv=p=0 "$OUT") F=$(ffprobe -v error -show_entries format=duration -of csv=p=0 "$OUT") echo "V=$V A=$A F=$F" ``` Lab crop: 1080x1920 DAR 9:16; 124130; V=A=F=6.000000. Lab pad: same geometry; 124004. - [ ] WxH is even 9:16 - [ ] Duration matches; A and V line up ## 6. Pitfall: negative / impossible crop ```bash ffmpeg -y -hide_banner -i source_16x9.mp4 \ -vf "crop=1080:1920:(iw-1080)/2:(ih-1920)/2" \ -c:v libx264 -pix_fmt yuv420p -preset veryfast \ -c:a copy \ fail_neg_crop.mp4 echo EXIT_NEG=$? ``` Lab FAIL: EXIT=234; `Invalid too big or non positive size for width '1080' or height '1920'`. - [ ] Recognized EXIT=234 + empty/unusable output ## 7. Pitfall: odd scale width 607 ```bash ffmpeg -y -hide_banner -i source_16x9.mp4 \ -vf "scale=607:1080" \ -c:v libx264 -pix_fmt yuv420p -preset veryfast -crf 23 \ -c:a copy \ fail_scale_odd.mp4 echo EXIT_ODD=$? ``` Lab FAIL: EXIT=187; `width not divisible by 2 (607x1080)`. Bare crop=607 can quietly even to 606x1080 and exit 0; cite the odd scale fail. - [ ] Recognized EXIT=187 + odd geometry message ## 8. Pitfall: wrong-axis crop (silent EXIT=0) ```bash ffmpeg -y -hide_banner -i source_16x9.mp4 \ -vf "crop=iw:ih*9/16:0:(ih-oh)/2" \ -c:v libx264 -pix_fmt yuv420p -preset veryfast -crf 23 \ -c:a copy \ fail_iw_ih_swap.mp4 echo EXIT_SWAP=$? ffprobe -v error -select_streams v:0 \ -show_entries stream=width,height,display_aspect_ratio -of default=nw=1 fail_iw_ih_swap.mp4 ``` Lab FAIL: EXIT=0; 1920x608; DAR 60:19. Probe before upload. - [ ] Recognized EXIT=0 + wrong WxH - [ ] Delivery list requires ffprobe 9:16 proof ## What we saw (lab) | Step | Result | Call | |------|--------|------| | 1 | FFmpeg 7.1.5-0+deb13u1 | PASS | | 2 | 1920x1080; 6.000000 s; 129857 B | PASS | | 3 | Crop vs pad chosen | PASS | | 4 | crop 1080x1920; 124130 B; V=A=F=6.000000; optional 720x1280=80367 B | PASS | | 5 | pad 1080x1920; 124004 B; black bars | PASS | | 6 | EXIT=234; Invalid too big… height '1920' | FAIL pattern | | 7 | EXIT=187; width not divisible by 2 (607x1080) | FAIL pattern | | 8 | EXIT=0; 1920x608; DAR 60:19 | FAIL pattern | ## FAQ ### Crop or scale+pad for YouTube Shorts? Crop fills 9:16 and cuts sides (124,130 B here). Pad keeps full 16:9 with black bars (124,004 B). Both 1080x1920 / 6.000000 s with `-c:a copy`. ### Why did crop=1080:1920 on a 1080p source exit 234? Height taller than source. Ours EXIT=234; Invalid too big… height '1920'. Crop a window that fits, then scale. ### Why did scale=607:1080 exit 187? Odd width. Ours EXIT=187; width not divisible by 2 (607x1080). Use trunc(.../2)*2. ### FFmpeg exited 0 but the file is not 9:16? Wrong-axis crop can succeed silently. Ours EXIT=0 at 1920x608 (DAR 60:19). Always ffprobe WxH/DAR. ### Where is the longer write-up? `/articles/ffmpeg-shorts-crop-pad-review.html`. ## Honest limits - Synthetic talking-head fixture (+ secondary 720p). Not a real multi-cam interview. - Face-tracking / auto-reframe: not tested. - GPU / NVENC: not tested. - Phone upload preview / Shorts algorithm: not tested. - Deep retest of concat / burn-in / thumbnail / loudnorm / delivery-encode: out of scope. - CRF 18 / veryfast / lanczos = lab choices, not a delivery standard. Evidence: `evidence/ffmpeg-shorts-crop-pad/` (NOTES, commands.log, probes, logs), 2026-11-04 Asia/Shanghai. ## Sources we opened - https://ffmpeg.org/ffmpeg-filters.html#crop - https://stackoverflow.com/questions/67881828/ffmpeg-command-to-format-videos-to-tiktoks-specs - https://stackoverflow.com/questions/66564775/ffmpeg-fit-1920x1080-video-in-1080x1920-video-instagram-reels - https://stackoverflow.com/questions/20847674/ffmpeg-libx264-height-not-divisible-by-2 - Companion review: `/articles/ffmpeg-shorts-crop-pad-review.html`