Skip to content
Generate Colorline Image of given Video with Rust and OpenCV
Rust
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
Cargo.toml
LICENSE
README.md
colorline.png

README.md

colorline

Generate Colorline Image of given Video with Rust and OpenCV

You may refer to my blog post for more details.

Compile

cargo build --release

screenshot

Colorline of LoveLive μ's 3rd Anniversary Live

screenshot

Usage

Generate Colorline with default settings

the height of result image is 120 pixels

1 colorline per second and the width of colorline is 1 pixel

using number_of_cpus threads

the output image will be colorline.png

colorline -v /PATH/TO/A/VIDEO

Generate Colorline with customized settings

the height of result image is 240 pixels

1 colorline per 5 seconds and the width of colorline is 3 pixels

using 4 threads

the output image will be result.png

colorline -v /PATH/TO/A/VIDEO \
    --height 240 \
    --interval 5 \
    --width 3 \
    --thread 4 \
    --output result.png
You can’t perform that action at this time.