I was working on this instead of my finals, hope you appreciate it.
I'll add all relevant executables when I can
Infinite-Storage-Glitch
AKA ISG (written entirely in Rust my beloved) lets you embed files into video and upload them to youtube as storage.
YouTube has no limit on amount of video that you can upload. This means that it is effectively infinite cloud storage if you were able to embed files into video with some kind of tool. ISG is the tool.
This has been quite heavily inspired by suckerpinch's Harder Drive video and discord as a filesystem. Unfortunately no filesystem functionality as of right now.
If you are having trouble with the program please dm me.
Now, you might be asking yourself:
But is this against TOS ?
Answer is: maybe?I doubt there is any part of the TOS saying that you can't upload videos containing files, but I also did not want to shovel through all the legalese. I still don't condone using this tool for anything serious/large. YouTube might understandably get mad.
Installation
Recommended way (building from source):
=== Please note: building from source takes a lot of CPU and RAM usage. ===
You need to have installed:
If having any issues also try installing ffmpeg.
If you want to or already have went through the hassle of installing Rust, you can git clone
this repository, then cargo build --release
. Cd to /target/release
directory and run the program ./isg_4real
.
The easier way:
- Download the executable from the releases
- Place the executable inside a folder
- Open terminal inside the directory
chmod +x isg_4real
- Run the executable:
./isg_4real
- Enjoy!
Note that the binary is not an exe file, it will not work on windows, try following the first method instead.
I might add an .exe if this somehow gets popular
How to use
- Archive to zip all the files you will be uploading
- Run the executable
- Use the embed option on the archive (THE VIDEO WILL BE SEVERAL TIMES LARGER THAN THE FILE, 4x in case of optimal compression resistance preset)
- Upload the video to your YouTube channel. You probably want to keep it up as unlisted
- Use the download option to get the video back
- Use the dislodge option to get your files back from the downloaded video
- PROFIT
Demo
Flashing lights warning !!!1!1 - YouTube Link
Try to use the program on this video and find the files hidden inside.
No it's not just a rick roll.
Explanation 4 nerds
The principle behind this is pretty simple. All files are made of bytes and bytes can be interpreted as numbers ranging from 0-255. This number can be represented with pixels using one of two modes: RGB or binary.
RGB: The cooler mode. Every byte perfectly fits inside one of the colors of an rgb pixel. One rgb pixel can contain 3 bytes at a time. You just keep adding pixels like this until you run out of data. It is leagues more efficient and quick than binary.
Binary: Born from YouTube compression being absolutely brutal. RGB mode is very sensitive to compression as a change in even one point of one of the colors of one of the pixels dooms the file to corruption. Black and white pixels are a lot harder to mess up. Every pixel is either bright representing a 1 or dark representing a 0. We string these bits together to get bytes and continue until we run out of data.
Both of these modes can be corrupted by compression, so we need to increase the size of the pixels to make it less compressable. 2x2 blocks of pixels seem to be good enough in binary mode.
To make it easier on the user, we also include all the relevant settings used to create the video on the first frame of the video. This allows the program to know what mode the video is in and what size to use in order to avoid making the user remember.
Final comments
I will come back to this project a bit later after I work on something else
I appreciate any and all roasting of the code so I can improve.
Do what you want with the code, but credit would be much appreciated and if you have any trouble with ISG, please contact me over discord.