How bitrate becomes file size
Add the average video and audio rates in bits per second. Multiply by running time in seconds to get bits, then divide by eight to get bytes. Onde’s file size formula.
Enter your running time and one or two video bitrates. Separate audio tracks with +. Enter a size cap to work out the maximum video bitrate.
Add the average video and audio rates in bits per second. Multiply by running time in seconds to get bits, then divide by eight to get bytes. Onde’s file size formula.
Set aside your headroom first. Convert the remaining bytes to bits and divide by the running time. Subtract the combined audio rate to see what is left for video. Onde’s target bitrate formula.
Before the change, a 60-second export at 8 Mbps with two 128 kbps audio tracks needs 61.92 MB before container overhead. Drop the video to 6 Mbps and it needs 46.92 MB. Only the second export fits a 50 MB cap with 5% headroom.
The MB and MiB columns show the same byte count in decimal and binary units. Container overhead and the actual average bitrate can shift the final size. Check the encoded file when the limit is tight. NIST’s decimal and binary prefixes.
Enter the average video bitrate in Mbps, the duration and all audio tracks. The estimate appears in MB and MiB.
Enter the size cap and headroom to get the video bitrate budget once audio is accounted for.
Divide free space by the estimated size per clip and round down. Allow room for files that run larger than expected.