GitXplorerGitXplorer
k

file2video

public
28 stars
4 forks
0 issues

Commits

List of commits on branch master.
Verified
4b6aa86ddf515ea858ab7495221d7b624fe745b1

Update README.md

kkaraketir16 committed 3 months ago
Verified
4b3f55f6eb3be0ac1f5e5c487bd858bce42c0ced

Add warning

kkaraketir16 committed 3 months ago
Verified
82dc5f7460d0402cb4bcc2d48cbaec811d48abd6

Update README.md

kkaraketir16 committed 4 months ago
Unverified
2130bf86bf04d7456bd843652ec1bbc8702f468f

update dockerignore

kkaraketir16 committed 4 months ago
Unverified
ee87b0d3558454b6eedfc49cbbdc3f327bf07aa0

update dockerfile

kkaraketir16 committed 4 months ago
Unverified
a8b5182daae4d0cc80df0a107f28f54454e582e4

move search

kkaraketir16 committed 4 months ago

README

The README file for this repository.

File2Video

Convert any file to video. This allows you to upload it to YouTube and use YouTube as unlimited storage. The output video file size is typically about 3.2 times the size of the input file. If you upload video to youtube, please wait for HD processing of youtube.

Warning ⚠️

There are some cases where the video cannot be decoded back, especially if you upload the video to YouTube. Do not trust it for your important files.

#2

I am not sure what to do about that. Increasing the global_reedEC value in common.py should be reduce the risk. Same values must be used for encoding and decoding.

Note

If you want to create or decode a QR code video, please check V1 - QR code version

Example Usage

First, install the requirements:

pip install -r requirements.txt

We need OpenGL, GLib, and FFmpeg. Install them on Ubuntu/Debian with:

sudo apt-get install libgl1 libglib2.0-0 ffmpeg

Then, you can run the following command to convert a file to video:

python file2video.py --encode test/test100k.txt out.mp4

And you can run the following command to convert the video back to a file:

python file2video.py --decode out.mp4 ./

Or use a YouTube URL to retrieve the file:

python file2video --youtube-decode "https://youtu.be/LZ6mYm-2QNY" ./

Example output

16 MB file https://youtu.be/LZ6mYm-2QNY

100 MB file https://youtu.be/ZfiJB3lqWlU