Skip to content

You can convert any file to video. Than you can upload them to youtube.

Notifications You must be signed in to change notification settings

karaketir16/file2video

Repository files navigation

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

About

You can convert any file to video. Than you can upload them to youtube.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published