Skip to content

redhotchili0909/pix-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pix-code

This project served as an experiment to create visually stored binary text data, as inspired by this video. Though its data storage efficiency is lacking, it served primarily as an exploration of an unusual data storage method and a preview into real issues like data compression, corruption, and error handling.

Files

  • main.py: The main executable script that coordinates the use of all modules. It sets up the video processing pipeline and handles the execution flow.
  • pix_code_encoder.py: This script contains the functionality to encode video files. It converts a sequence of images into a video file, applying specified encoding parameters.
  • pix_code_decoder.py: Complements the encoder by decoding videos back into images or other specified formats.
  • video_pipeline.py: Manages video uploads using the YouTube API. It authenticates the user, uploads videos, and can list videos from a YouTube channel.

Setup

  1. Clone the repository:

    git clone https://github.com/redhotchili0909/dsa_2024.git
  2. Install dependencies:

    The scripts require several dependencies, which you can install using:

    pip install -r requirements.txt

    (Note: You will need to create a requirements.txt file based on the libraries used, such as opencv-python, pytube, etc.)

  3. API Credentials:

    Before running video_pipeline.py, you need to set up your Google API credentials and store them in a credentials directory. Refer to the Google API documentation for guidance.

Usage

Each script can be run individually, depending on the task.

Generating a video

To generate a video from a text file, place the text file into the assets folder and run main.py. Input the name of the text file and follow the instructions shown in the terminal.

The encoding video

Click on the video to see it in full resolution on YouTube.

The video

If you're curious, here's the video that we generate and decode!

The encoded video

Click on the video to see it in full resolution on YouTube.

Decoding a video

Clarify the video you wish to decode

The encoding video

Click on the video to see it in full resolution on YouTube.

Reference

Huge thanks to BK Binary's Video "File Storage on Youtube" for inspiring us to pursue our own implementation.

License

MIT

About

Generating visually stored binary text data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages