Update README.md

This commit is contained in:
HistidineDwarf 2023-02-15 20:50:57 -08:00 committed by GitHub
parent 2c14c7c3aa
commit 12d0614d12

View File

@ -1,6 +1,11 @@
I was working on this instead of my finals, hope you appreciate it
# Infinite-Storage-Glitch
WIP
[add gif of an embed here]
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.
@ -16,17 +21,15 @@ I doubt there is any part of the TOS saying that you can't upload videos contain
Installation
-------------
<details>
<summary><b>Recommended way</b></summary>
If want to or already have went through the hassle of installing Rust, you can ```git clone``` this repository, then ```cargo build --release``` and run the program. Probably better in case I forget to update the executable.
</details>
<b>Recommended way:</b>
If you want to or already have went through the hassle of installing Rust, you can ```git clone``` this repository, then ```cargo build --release``` and run the program. Probably better in case I forget to update the executable.
<details>
<summary><b>The easier way</b></summary>
<b>The easier way:</b>
1. Download the executable from the releases
2. Place the executable inside a folder
3. Enjoy
</details>
3. Run the executable
4. Enjoy
How to use
-------------
@ -41,12 +44,25 @@ How to use
Demo
-------------
**Flashing lights warning !!!1!1**
[add demo video here]
Explanation 4 nerds
-------------
The principle behind this is pretty simple. All files are made of bytes and bytes can be interpreted as number ranging from 1-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 appreciate any and all roasting of the code so I can improve.
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.