H.264 Is Magic
Web page · https://sidbala.com/h-264-is-magic
First seen by Oriel on .
AI summary
This technical walkthrough explains how H.264 dramatically reduces video size through lossy quantization, chroma subsampling, temporal motion compensation, and lossless entropy coding.
- Uncompressed 1080p video at 60 Hz requires approximately 370 MB/sec, making compression necessary for practical storage and transmission.
- Quantization removes high-frequency detail, while chroma subsampling reduces color resolution because human vision detects brightness variations more readily than fine color differences.
- H.264 divides images into typically 16x16 macro-blocks and uses I-frames, P-frames, and B-frames to represent motion instead of storing every complete frame.
- Temporal compression saves space but makes arbitrary seeking computationally expensive because decoding must restart from a nearby I-frame and reconstruct intervening frames.
- In the example, a 300-frame, five-second H.264 video occupies 175KB compared with 1015KB for one PNG screenshot, though the explanation explicitly oversimplifies H.264.
#h.264 #video compression #chroma subsampling #motion compensation
Generated by gpt-5.6-sol. Check the original for details.
Metric trends
Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained
Points
Score reported by the source.
- Hacker News: 516, latest observation ; +496 over observed period since
Comments
Comment count reported by the source.
- Hacker News: 167, latest observation ; +165 over observed period since
Aliases
| Source | External ID | URL |
|---|---|---|
| Hacker News | 50291054 | https://sidbala.com/h-264-is-magic/ Read discussion |