Skip to main content

Encode files in a video.

Project description

thermonuclear-weapon

Encode information into videos

(being made for midnight.hackclub.com)

Prototyping

This was originally meant to be used to store files on youtube, however the compression and re-encoding from youtube absolutely destroyed it.

Scripts

Usage of the scripts,

NOTE: You NEED ffmpeg on path, otherwise encoder and decoder won't work!!!

encoder: python encoder.py <cool_file> <output_dir> decoder: python decoder.py <video_file> <file_output>

The encoder will always output a webm ("encoded.webm") and a frames/ directory with the frames of the video

Features added/tried

  1. Different Codecs for faster encoding/decoding, This only matters for encoding, as youtube re-encodes it into it's own av1/vp9 format.
    I tried using both vp9 and av1, as vp9 is faster to encode, but it's bigger and also slower to decode, and av1 is much much slower to encode, but smaller and faster to decode. This is unnecessary unless you're encoding a local video.

  2. zstd Input Compression, This is for faster encoding/decoding, as there is less information to process, We compress the input file, this really only works for text/binary files, something like an image or video won't have a big change. You can use this with --compress (use this on both encoder and decoder), but it's not recommended currently for youtube videos.

  3. Diskless Pipeline, This is way too complicated for what it's worth, this is only implemented in the frame to video stage so we don't store any frames, I tried implementing this to directly upload the video to the fastapi server, but it was unnecessary, and deleting the file after uploading it had the same effect.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thermonuclear_weapon-0.1.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

thermonuclear_weapon-0.1.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file thermonuclear_weapon-0.1.1.tar.gz.

File metadata

  • Download URL: thermonuclear_weapon-0.1.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for thermonuclear_weapon-0.1.1.tar.gz
Algorithm Hash digest
SHA256 003df8328cf0ef486cd5b01e9a47133c9b1ba4c920a319f57e82ca987593dcaf
MD5 848ebbd6305dcfe1f5459c28e772d056
BLAKE2b-256 26e1d66d79d186154f0e2cb118ef045527383ef94729779bd68d19a843d6f696

See more details on using hashes here.

File details

Details for the file thermonuclear_weapon-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for thermonuclear_weapon-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 da8febbe6ad05b9ce6ca3787c82862e21bfca78ca18595cfeed49068e75a3a1c
MD5 450df86247403601bc30763e48fcbe97
BLAKE2b-256 bd9008a26cac94cf280f87bd87d6faa7d79aedcd93deb26fa89d03db9b3c8d5c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page