Skip to content

ryan4yin/video2ascii-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

video2ascii-rs

yet another video2ascii in rust.

How to Build

download BadApple.mp4 into project root directory first: https://github.com/ryan4yin/video2chars/raw/master/tests/BadApple.mp4

then install dependencies:

for opensuse:

sudo zypper in libvpx-devel libopus-devel
sudo zypper in opencv opencv-devel
sudo zypper in clang clang-devel
cargo build

# use mpv to play audio
sudo zypper in mpv

for macOS:

brew install opencv
# macOS can't find libclang.dylib dynamic library because it resides in a non-standard path
# specify the path of libclang.dylib manually here
export DYLD_FALLBACK_LIBRARY_PATH="$(xcode-select --print-path)/usr/lib/"
cargo build

# use mpv to play audio
brew install mpv

see opencv-rust's docs for dependencies on other system.

How to Run

run the program via cargo:

cargo run

Demo

Related Projects

About

yet another video2chars in rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages