# video2ascii [ENGLISH](./README.md) [简体中文](./README_CN.md) ![Issues](https://img.shields.io/github/issues/jwnhy/video2ascii) ![Forks](https://img.shields.io/github/forks/jwnhy/video2ascii) ![Stars](https://img.shields.io/github/stars/jwnhy/video2ascii) ![License](https://img.shields.io/github/license/jwnhy/video2ascii) Yet another video to ASCII tool (in Rust) ## Requirements - `opencv` ## Installation ```bash cargo install video2ascii ``` > You may also want to add `cargo` path to your `$PATH` environment variables. ## Demo ![Demo](https://github.com/jwnhy/video2ascii/raw/main/demo.apng) ## How to use It comes with a self-explain help file. ```bash $ ./video2ascii --help video2ascii 0.1.0 Simple program to encode video into ascii animation USAGE: video2ascii [OPTIONS] OPTIONS: -c, --colored Colorized or not -h, --height Height of output animation --help Print help information -i, --input Video input, either a path "~/test.avi" or a camera id "0/1/..." [default: 0] -s, --scale Brightness scale represented with a ASCII string [default: " .:=+*#%@"] -V, --version Print version information -w, --width Width of output animation ``` ### Options `-i --input` specifies the source of input video. It can be either a path to a video file `~/test.avi` or a camera installed in your computer. In Linux, the camera is listed in `/dev/videoX`, where `X` is the number to be input here. `-c --colored` specifies whether to output colored ASCII animation. `-s --scale` specifies the *brightness* of the ASCII anime, which should looks like `.:=+*#%@`. `-w --width` specifies the height of the ASCII anime, only one of width or height is needed. As `video2ascii` respect the original ratio of the video.