/terminal-player

Play videos and render images in the terminal as text.

Primary LanguagePythonMIT LicenseMIT

Terminal Player

Play videos and render images in the terminal as text. Written in pure Python, works on any platform.

bad_apple_demo.mp4

Requirements

Usage

First process a file.

# Image
python process.py path/to/image.png path/to/processed.dat
# Video
python process.py path/to/video.mp4 path/to/processed.dat --video

Use --width to set the frame width in columns, and --video to process videos.

Then render the file.

python render.py path/to/processed.dat

Use --fps to set the desired refresh rate for videos, and --loop to play a video on loop.

License

MIT License