Plays videos on a Windows console in real time
Download the latest executable.zip
from the Releases page and unzip it. Run the following command in the same directory as the BadApple.exe
file, replacing videoFile
with the name of your video file (I used an mp4
, I don't know what other formats work) and consoleWidthInChars
with the amount of characters you want the width of your video frames to be.
BadApple.exe videoFile consoleWidthInChars
Example (badapple.mp4
not included in the zip file):
BadApple.exe badapple.mp4 150
Executable was compiled using Visual Studio on a 64-bit Windows 7 machine. Should you wish to compile the code yourself, I'm afraid I have no specific steps other than to use the Internet. This a relatively small and simple program, though, and OpenCV has good documentation on how to compile its libraries.
Output console video does not match the speed of the original video if the source framerate is not 30 fps as the original Bad Apple video I tested the code with. I don't know if it's due to a math error or the fact that the code can't deal with fractional fps. I'll have to look into it once I have the free time to do so.