This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Convert an mp4 video file to uncompressed 80x48 video frames. | |
The output data is meant to be used as direct memory for the 80x24 Turing complete | |
console. In particular, pixels are grouped vertically so 2 pixels can fit into a | |
single `▀` (`\xdf`) character. | |
For instance, the following frame: |