/Wild-Storage

Use YouTube as Infinite Cloud Storage

Primary LanguagePythonApache License 2.0Apache-2.0

Wild-Storage

Wild-Storage lets you use YouTube as a Infinite Cloud Storage. It embeds any files(Images, Videos, Documents, etc) into a video. The video can be uploaded to YouTube and the file can be retrieved from the video. A expansion & compression technique is used to defeat YouTube's compression algorithm. The file can be retrieved from the video without any loss of data.

Demo Video (YouTube Link)

ezgif com-gif-maker

Virtual Environment Set Up

Create Virtual Environment

python3 -m venv env

Activate Virtual Environment

source env/bin/activate

Install Required Packages

pip install -r requirements.txt

Compile C++ Library & Generate Python Bindings

g++ -fPIC -shared DataProccessing/cLibs/helper.cpp -o DataProccessing/cLibs/c_lib.so

DataProcessing Working

Embed File Into Video

Retrieve File From Video

Expansion And Compression

Python Wrapped C++ Library

Wild-Storage was a complete Python Implementation. Beign a very slow interpreted language it was taking too much time to process files. Later I moved some heavy task codebase to C++ and wrapped those in Python using ctypes. This helped to process the files ~3x faster.

Credits

This project is inspired by Infinite-Storage-Glitch which is a Rust implementation. I liked the concept and tried to implement in my favourite language Python. The working of both may not be same.