This Python tool allows you to convert any file into a lossless ffv1 video, and later recover the original file exactly. The file is first compressed, then embedded frame by frame into video data. You can also convert the video back to the original file.
- Python 100%
| All-to-video.py | ||
| LICENSE | ||
| README.de.md | ||
| README.md | ||
| requirements.txt | ||
File-to-Video Converter (and Back)
This Python tool allows you to convert any file into a lossless video, and later recover the original file exactly. The file is first compressed, then embedded frame by frame into video data. You can also convert the video back to the original file.
Features
- Compress and embed any file into a video
- Extract and restore files from video
- Choose between multiple resolutions (1080p, 1440p, 4K)
- Supports any file type (text, image, executable, etc.)
- GUI-based file picker (using Tkinter)
Requirements
- Python 3.6+
- Python packages (see
requirements.txt):opencv-pythonnumpy
Install the dependencies with:
pip install -r requirements.txt
Usage
Run the script:
python your_script_name.py
Options
After launch, you can choose:
-
Convert a file to video
- Select resolution
- Choose the file
- Save the resulting
.avivideo
-
Convert video back to file
- Select the
.avifile - Choose the output directory for the recovered file
- Select the
Notes
- The tool uses
zlibcompression and stores the original filename inside the video data. - The FFV1 codec is used for truly lossless video storage.
- Higher resolutions allow larger files to be stored (more bytes per frame).
- ⚠️ Can be relatively memory-intensive (RAM) when processing large files.