Tool
When you shrink 4K to 1080p or fit horizontal video into a vertical frame, this calculates the numbers that satisfy the aspect ratio and the even-size or multiple conditions at the same time. For a source that is not 16:9, such as 4096×2160 (DCI), the result depends on whether you choose ‘black bars’ or ‘center crop,’ so compare the final size and the filter for both methods side by side. The values you enter are processed only inside your browser.
1. Source size (width and height from ffprobe, as displayed after rotation)
Aspect ratio 1.896 · 8,847,360 pixels
2. Target box (the largest size the result may reach)
When the aspect ratios differ
Round width and height to a multiple of
Even sizes are required when you make H.264 or HEVC in yuv420p. Pick a multiple of 4, 8 or 16 only when a particular device, editor or encoder setting asks for it. If the box is not a multiple, the box is rounded down to one.
3. Result
Output resolution 1920×1080
Aspect ratio 16:9 (1.778) · pixel count is 23.4% of the source
fps for the H.264 level check
H.264 treats 1920×1080 as 1920×1088 (rounded up to multiples of 16, 8,160 macroblocks), and the lowest level that holds 30 fps is 4 (maximum fps at this level: 30). See the level calculator for the full table.
ffmpeg filter (the value to put after -vf)
scale=1920:1012,pad=1920:1080:0:34:black
Full ffmpeg command example (CRF 20 is an example value)
ffmpeg -i input.mp4 -vf "scale=1920:1012,pad=1920:1080:0:34:black" -c:v libx264 -crf 20 -preset medium -pix_fmt yuv420p -c:a copy output.mp4
Because the numbers are calculated in advance, you get the same result on any ffmpeg without -2 or force_divisible_by. The command was not verified by running it.
HandBrake values (Dimensions tab)
Filling with black bars may not exist in some HandBrake versions (not verified), so no values are given. If you need bars, use the ffmpeg filter above. To keep the aspect ratio without bars, choose “Keep aspect ratio.”
Menu names can differ between versions, and they were not verified.
All calculations happen only inside this browser, and nothing is sent anywhere.
Every number in this tool is arithmetic on your input plus values from the spec table. It does not calculate quality (VMAF) or file size. How much quality is left after you shrink a video and scale it back up is in the measurement article and the 4K to 1080p guide (Korean).
scale=1280:-1, the calculated result can be odd, and H.264 and HEVC encoders that encode to yuv420p usually reject it. Using -2 instead of -1 is known to make it round to an even number. This tool calculates the numbers in advance and puts them in.-vf, or chain it with other filters (subtitles, crop and so on) using commas. If the video already has black bars, it is better to crop them first with the black bar crop detector.-crf 20 in the full command is an example. Choose the value with the CRF recommender and the option combination in the ffmpeg command builder.scale, pad and crop, and the options follow the notation in the ffmpeg documentation. HandBrake menus differ by version, so only the values are given, and since support for filling with black bars could not be confirmed, no values are generated for it.