H.264 Is Magic (2016)(sidbala.com)
450 points by ea016 19 hours ago | 151 comments
tl;dr: H.264 achieves massive compression through a combination of techniques: quantization in the frequency domain (discarding high-frequency details the eye barely notices), chroma subsampling (storing color at quarter resolution since humans perceive brightness more acutely than color), and motion compensation (encoding only I-frames plus motion vector deltas for intermediate P/B-frames). A final lossless entropy encoding step compresses the redundant output. The article demonstrates this with a 5-second 60fps video of Apple's homepage compressed to 175KB—smaller than a single PNG screenshot of one frame.
HN Discussion:
  • ↑Personal anecdotes and insider stories about x264 development reinforce the codec's impressive engineering
  • ~Newer codecs like AV1/AV2 have superseded H.264's magic
  • ↑Compression as intelligence is a fascinating concept worth exploring further
  • ↓The PNG comparison is unfair since better image formats like WebP/JPEG XL exist
  • ↑Lossy compression is practically essential even in domains like space imaging where raw data seems preferable