video2ascii

Crates.iovideo2ascii
lib.rsvideo2ascii
version0.1.1
sourcesrc
created_at2022-03-13 05:52:42.761775
updated_at2022-03-13 05:57:11.068298
descriptionA tool to encode video into ASCII animation
homepagehttps://github.com/jwnhy/video2ascii
repositoryhttps://github.com/jwnhy/video2ascii
max_upload_size
id549059
size16,894
jwnhy (jwnhy)

documentation

README

video2ascii

Issues Forks Stars License

Yet another video to ASCII tool (in Rust)

Requirements

  • opencv

Installation

cargo install video2ascii

Demo

Demo

How to use

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

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.

Commit count: 14

cargo fmt