A Python library for converting files to and from their video representations.
Some of the features of Statica include:
- Convert files to their video representations and vice versa.
Statica enables any file to be represented as a video. Each bit of the input file is encoded, where 1's are black pixels and 0's are white pixels.
Due to compression codecs, data stored as 1x1
pixels might result in
corruption. This is due to information loss, which could shift the pixel
colors around. As a result, Statica allows for variable width/height
pixel sizes, which if set to larger values, will offer protection against
corruption.
Sample frame from the encoded video showing how the file has been encoded.
To install and run Statica, follow the following steps:
- Ensure that
>=Python3.6.9
is installed. - Install dependencies with
pip3 install -r requirements.txt
. - Build and install Statica with
make clean dist
.
To run the Pytests, follow the following steps:
- Run
make clean test
.