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.
Find a file
2025-04-09 14:40:11 +02:00
All-to-video.py Initial Init 2025-04-09 14:29:25 +02:00
LICENSE Initial Commit 2025-04-09 14:40:11 +02:00
README.de.md Initial Commit 2025-04-09 14:40:11 +02:00
README.md Initial Commit 2025-04-09 14:40:11 +02:00
requirements.txt Initial Commit 2025-04-09 14:40:11 +02:00

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-python
    • numpy

Install the dependencies with:

pip install -r requirements.txt

Usage

Run the script:

python your_script_name.py

Options

After launch, you can choose:

  1. Convert a file to video

    • Select resolution
    • Choose the file
    • Save the resulting .avi video
  2. Convert video back to file

    • Select the .avi file
    • Choose the output directory for the recovered file

Notes

  • The tool uses zlib compression 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.