A common shortcut for guessing how big a long video will be after compression is to encode two seconds, look at that piece's size, and multiply by the length. "Trial-encode" here means exactly that: compress a few seconds first and scale up. On three 90-second test clips, the shortcut went wrong in three different ways.

Steady motion was off by about 3%, a static lecture was too big by 84% or more every time, and a cut-heavy clip swung from −99% to +344% depending on which two seconds were picked. The reason is that bitrate, the bytes spent per second of video, is not a constant.

The three clips and what they are

All three are 1280×720, 30 fps, with no audio track, compressed with x264 (CRF 23, medium preset), one run each on an Apple-silicon Mac. They are synthetic, so real footage from a phone or camera may behave differently. The static one imitates a lecture recording. The motion one is a generated pattern that moves the whole time, with noise on every frame. The cut-heavy one switches source every one or two seconds and borrows a few seconds from two Wikimedia Commons videos, by Israel Police (CC BY-SA 3.0) and Forza1000 (CC BY-SA 4.0), cropped and re-encoded; the rest is generated.

Bitrate moves second by second

Each clip was compressed whole, then the bytes in every one-second slice were counted. The motion clip stayed between 23,422 and 26,806 kbps, almost a flat line. That is high because of the noise on every frame, so it is not a typical figure for moving video.

The lecture clip was the opposite. Its quietest second was 9 kbps and the second where the slide flipped was 1,316 kbps, with a spike about every 8.3 seconds that lines up with keyframes. The cut-heavy clip ran from 10 kbps up to 70,770 kbps. Which two seconds you land on decides the answer.

Steady motion is the one case that works

For the motion clip, samples were taken in groups of 1, 2, 3, 5 and 10, from the start, evenly spaced, and at random places. Every estimate landed between −0.9% and −3.8%, and the average miss across 200 random draws was about 3%. When every second costs about the same, a short piece stands in for the whole.

A static lecture always comes out too big

This was the surprising one. For the lecture clip, every estimate in the run was at least 84% too large. Even the best of the 200 random 10-sample draws was +90.5%, and the average was +129.4%.

The cause is that each sample is its own tiny video, so it has to start from a keyframe, and a keyframe is a full picture. In one two-second sample of 74,727 bytes, the keyframe took 70,634 bytes, which is 94.5%. The real 90-second file has only 11 keyframes, and they make up 48.5% of its size. The smallest two-second sample from that clip was 74,589 bytes, while the whole file averages 40,437 bytes per two seconds. Every sample pays for a keyframe, and no position avoids it.

Cut-heavy video is a lottery

A single random two-second sample of the cut-heavy clip gave an estimate anywhere from −99.0% to +344.4%, and the average miss over 200 draws was 105.0%. Ten samples brought the average down to 31.1%, still not something to plan around.

Weighting each sample by how many bytes its source piece used in the original file, which needs no extra encoding, cut that 10-sample average to 8.0% on this clip. On the lecture clip the same trick got worse, 141.4%. A guess, not checked: weighting works when the original's bitrate tells you how hard the picture is, and the lecture's source file did not.

Why a long video still needs the real encode

If the size matters, the dependable check is to encode the whole file and look at the result.

ImgIng https://imging.ai/ is a video compressor that runs in a desktop browser, free and with no sign-up. In its single-video view there is an optional trial for H.264 SDR output as MP4: up to three pieces of two seconds or less, positions chosen by the page (about 8%, 48% and 88% of the length in this run), with the sample size and time shown. The page's own text says the samples carry no audio and cannot be used to work out the whole file's size.

Not tested: real long footage, audio, other encoders, and bitrate-targeted encoding. Everything above is synthetic clips, single runs.