Tool
Answers the question “What bitrate do I need to fit this video into 10 MB?” Everything is calculated in your browser and nothing is uploaded.
Input
1 MB is counted as 1,000,000 bytes (smaller than 1,048,576, which errs on the side of staying under the limit). Service limits can change, so check the current limit of the service you are uploading to.
Result
1,138 kbps (video)
This is the total 1,267 kbps minus 128 kbps for audio. It accounts for a length of 60 s and a 5% margin.
bpp = video bitrate ÷ (width × height × fps), with the width assumed from a 16:9 frame. The equivalent value is scaled to 1080p25 by assuming the same bits per pixel. It is an assumption, not a measurement.
Where this bitrate lands in our measurements (1080p25-equivalent 948 kbps)
Loading…
FFmpeg command
ffmpeg -y -i input.mp4 -vf scale=-2:1080 -r 30 -c:v libx264 -preset medium -b:v 1138k -pass 1 -an -f null NUL
ffmpeg -i input.mp4 -vf scale=-2:1080 -r 30 -c:v libx264 -preset medium -b:v 1138k -pass 2 -c:a aac -b:a 128k -movflags +faststart output.mp4Replace input.mp4 with your actual file name. If the resolution and fps already match the source, you can drop the -vf·-r options. The first pass only analyzes and writes no output file; the second pass produces the result.
File size is roughly (video bitrate + audio bitrate) × duration. Solve that backwards and the target file size gives you the bitrate.
Using the four 1080p25 clips (six CRF levels each) from our CRF size-vs-quality measurements, the table converts your settings to a 1080p25-equivalent bitrate and reads off the matching VMAF by connecting the measured points. The same bitrate gives very different VMAF on different clips, so pick the clip that looks most like your own video. A nearly static scene and a detail-heavy scene such as rippling water can end up far apart at the same file size.
-preset medium (6 for SVT-AV1). Changing the preset changes both quality and encoding time at the same bitrate.Why bitrate and quality relate this way is covered in the course, and the per-encoder curves are in the lab article.