├── .gitignore ├── README.md ├── decode ├── apis │ ├── bitreader.lua │ ├── hexscreen.lua │ └── wave.lua └── videoplayer.lua ├── encode ├── encoder.py └── quadtree.py └── sample ├── badapple.nbs ├── badapple.qtv └── playbadapple.lua /.gitignore: -------------------------------------------------------------------------------- 1 | __pycache__/ 2 | *.mp4 3 | *.qtv 4 | *.nbs 5 | *.png 6 | *.txt 7 | !sample/* 8 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # QuadTree Compression for ComputerCraft Videos 2 | 3 | ## Sample 4 | Go on any ComputerCraft (CC: Tweaked is the only one confirmed to work, earlier versions are probably not going to work) computer and run `pastebin run KMRmKTc1` to play Bad Apple on it. If you have a speaker, it'll use it. If you have a monitor, it'll also use it. It works even on a normal computer since it only uses black and white. 5 | 6 | ## Problem 7 | Videos are big, like really big. ComputerCraft only has 1 MB of space by default. I want to play Bad Apple!! on them at a decent resolution. I used a QuadTree structure to achieve that. 8 | 9 | ## Requirements 10 | ### For decoding 11 | It's already included, I just wanted to link it. 12 | - [wave](https://github.com/CrazedProgrammer/wave) 13 | 14 | ### For encoding 15 | You can install those with pip. 16 | - numpy 17 | - moviepy 18 | 19 | ## How to use 20 | Use `py encoder.py -c quadtree -i