GitHub Tool Turns Files Into Video using YouTube as Storage


TL;DR

  • GitHub Project: The yt-media-storage tool encodes arbitrary files into lossless FFV1 video format for upload to YouTube as unlimited cloud storage.
  • Technical Method: The system uses Wirehair fountain codes for redundancy and encodes data at 4K resolution with optional XChaCha20-Poly1305 encryption.
  • Legal Risk: YouTube’s Terms of Service explicitly prohibit using the platform as general-purpose file storage, creating account termination risk for users.
  • Community Interest: The project has gained 367 GitHub stars and active Hacker News discussion since its February 2026 release.

A GitHub project enables encoding files as lossless video for YouTube storage using the yt-media-storage tool, gaining attention last week. The project converts files into FFV1 lossless video format within MKV containers for upload to YouTube, effectively repurposing the platform as unlimited cloud storage.

By encoding data into lossless video and decoding it back to the original file, the system bypasses traditional cloud storage costs through YouTube’s free unlimited upload capacity. Developed by GitHub user PulseBeat02, the tool provides both command-line and graphical interfaces for encoding and retrieving data.

How the Encoding System Works

The technical architecture relies on multiple redundancy layers to achieve reliable storage. The system uses Wirehair fountain codes for redundancy and repair to handle potential artifacts from YouTube’s video processing pipeline.

Files are chunked, encoded with fountain codes, and embedded into video frames during encoding. During decoding, the system extracts packets from video frames and reconstructs the original file. Optional encryption uses libsodium with the XChaCha20-Poly1305 algorithm to protect data before upload.

Data encodes at 4K resolution (3840×2160) at 30 FPS, with redundancy mechanisms to handle YouTube’s video processing pipeline. FFV1 is a lossless intra-frame video codec. Unlike common codecs like H.264 or HEVC, which discard data to achieve small file sizes, FFV1 preserves every bit of data from the original source, making it suitable for data storage applications where perfect file reconstruction is required.