Saltar al contenido
  1. Blog
  2. Files

FilesVideoFilesMeasured

I asked for 1 Mbps and got a file 2.8 times that size

Setting a bitrate when compressing video does not give you a file of that size. Measured here: 2.8 times what was requested. Why that happens, and what to change instead.

Written by the site’s operator3 min read
A digital camera
For video and audio, the bitrate you choose on export is a request, not a guarantee.Photo: Andrew Hutchings / Unsplash License / Unsplash

Six seconds at 1 Mbps is about 750 KB, give or take. The file that came out was 2 MB.

This is a number measured while building the compression tool on this site. A six-second clip, requested at 900 kbps of video and 96 kbps of audio. Multiply it out and you expect roughly 725 KB. What came back was 2.0 MB — 2.8 times the request.

Size implied by the requestabout 725 KBThe file that came out2.0 MB (2.8x)Measured on deliberately hard-to-compress footage. The factor for ordinary video is not measured — see below.
The same six seconds of video: what the arithmetic said, and what was actually written out.

A bitrate is a request, not a ceiling

The cause is not mysterious. The bitrate handed to a browser’s recorder is a target, not a cap. It has no lookahead, so it cannot reason that the next three seconds are busy and it should save room now. It encodes the frame in front of it at the quality asked for, and moves on. Where there is a lot of movement, it goes over.

A dedicated video editor can hit a size because it passes over the footage twice, deciding where to spend the data before writing anything. A browser recording in real time, as the video plays, does not have that luxury.

Share this article
Share on X

Read next

Files

The browser said it could do it, and produced a broken file

The API that reports supported recording formats returned true, and the result was a corrupt 1,690-byte MP4. The four measurements, and why the fix was to stop asking and start measuring.

#Video#Measured
Files

Adding more supported formats is what broke it on iPhone

Widening the list of accepted file types made the tools unusable on iOS. The stricter version had been the more helpful one. What went wrong, and how it was fixed.

#Files#Measured
Files

ローカル画像生成AIのはじめ方。手元のゲーミングPCで、実写もイラストも作れる

自分のPCで画像生成AIを動かす「ローカル画像AI」の入門。回数制限や月額を気にしなくていい理由、必要なPCの目安(VRAM)、実写・アニメ・高速生成の代表的なモデル、ComfyUIなどのソフト、導入の流れ、設定値、LoRAやControlNetなどの発展機能まで。

#画像#AI
Files

24-bit or 32-bit float, 44.1 kHz or 48 kHz? Choosing audio settings

24-bit, 32-bit float, 44.1 kHz, 48 kHz. Does a bigger number mean better sound? What sample rate and bit depth each do, and which to pick for music, video and handing work over.

#Files#Settings
Files

WAV, FLAC, MP3 or AAC? Which format to keep and which to send

Audio formats affect file size and editability as well as quality. The difference between lossless and lossy compression, and which of WAV, FLAC, MP3 and AAC to use for working files, archiving and sharing.

#Files#Conversion
Files

“Can you make this image smaller?” — smaller how?

Dimensions, file size and quality are three different things. Which one you move changes the work entirely. Here is how to pick, and how to do each.

#Images#Files

All articles