Run-Length Encoding in C from Scratch - Building a File Compressor

Опубликовано: 01 Июнь 2026
на канале: Daniel Hirsch
14,132
645

Live-coded a RLE-based file compressor in C without any libraries - just raw file I/O and bit manipulation. Covers the encoding scheme, handling edge cases (runs longer than 255 bytes). In the end, I compress and decompress a real, uncompressed image file, and reduce its size from 2.9 MB to just 37 KB.

✘ My No-Nonsense C Programming Course: https://hirschdaniel.gumroad.com/l/c-...

✘ Get my full dev environment and color scheme: https://hirschdaniel.gumroad.com/l/da...

✘ Get Proton VPN to stay anonymous online: https://go.getproton.me/SH27Q

✘ Get ALL my YouTube projects' source code: https://hirschdaniel.gumroad.com/l/so...

✘ Exclusive Content on Patreon (& Get all Projects as Source Code):
  / hirschdaniel  

✘ Learn to Code:
https://app.codecrafters.io/join?via=...

A BIG thanks goes out to my "Dev Supporter"-level Patreon nr.bln.