- Install GCC (tested on 12.2.0) and pyvideoreader (
pip3 install pyvideoreader
) - Enter target terminal size to terminal_size.txt
- Replace line 7 of preprocess.py with:
video = VideoReader('<path to your video>')
and line 10 of generate_cpp.py with:
'<path to your video>').number_of_frames)()
(thanks @56independent for a comment!)
- Run:
python preprocess.py
python generate_cpp.py
- Run with buffering so that animation plays with original 30fps
g++ sources/badapple_*.cpp |& python buffer.py
- Or just play (this doesn't keep up speed and passes very fast)
g++ sources/badapple_*.cpp
Yeah the terminal_size.txt had the default width and height of konsole app for Linux
if you are going to use any other app you have to change the size in there with your sizes