Skip to content

Fxxrz/File2Video

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages