YouTube as Cloud Storage: Store Any Files You Want
Install Requirments
input file should be zipped file
keep only one zip file in same directery
This program inspired from DvorakDwarf Infinite-Storage-Glitch https://github.com/DvorakDwarf/Infinite-Storage-Glitch check out his project
I dont know rust so I recreated the same project in python
To reduce the risk of corruption, the program uses larger pixel blocks in binary mode, typically 2x2 blocks.
This program consists of several functions that allow for the conversion of files to binary format, and for the creation of videos from a file.
This function takes no parameters and returns a string of 0's and 1's representing the binary data of a file with a .zip extension. It does this by first determining the file size and reading the file as binary data. The binary data is then converted to a string of 0's and 1's and returned.
This function takes a string of binary data as bin_string and several optional parameters that determine the size and framerate of the resulting video. It returns a video file in .mp4 format. The function first calculates the total number of pixels needed to represent the binary data and the number of pixels that can fit in one image. It then creates an array of frames, each of which corresponds to one image that contains the binary data. The frames are created by iterating through each row and column of binary digits and determining the color of each pixel based on the binary digit. The frames are then added to the array of frames. Finally, the frames are used to create a video file using the MoviePy library and written to disk.
This function takes an array of frames as input and returns a string of 0's and 1's representing the binary data contained in the frames. It does this by iterating through each frame and converting it to grayscale. It then iterates through each row and column of pixels and determines the binary digit based on the color of each pixel. The binary digits are concatenated into a single string and returned.
This function takes no parameters and prompts the user to enter the name of a file to convert to binary format. It then calls the file_to_binary() function and stores the resulting binary data in a file named binary.txt.
This function takes a string of binary data as binary_filename and writes it to a file named output.zip. It does this by first converting the binary data to binary format and then writing the binary data to the output file.
Overall, this program provides a simple way to convert files to binary format and create videos from binary data, as well as convert binary data back to files.