- 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
is this still working , am having error with installing pyvideopalyer ?