Crates.io | video2ascii |
lib.rs | video2ascii |
version | 0.1.1 |
source | src |
created_at | 2022-03-13 05:52:42.761775 |
updated_at | 2022-03-13 05:57:11.068298 |
description | A tool to encode video into ASCII animation |
homepage | https://github.com/jwnhy/video2ascii |
repository | https://github.com/jwnhy/video2ascii |
max_upload_size | |
id | 549059 |
size | 16,894 |
Yet another video to ASCII tool (in Rust)
opencv
cargo install video2ascii
It comes with a self-explain help file.
$ ./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> Height of output animation
--help Print help information
-i, --input <INPUT> Video input, either a path "~/test.avi" or a camera id "0/1/..."
[default: 0]
-s, --scale <SCALE> Brightness scale represented with a ASCII string [default: " .:=+*#%@"]
-V, --version Print version information
-w, --width <WIDTH> Width of output animation
-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.