Go to file
2020-11-03 15:42:53 +03:00
.github/workflows Update build.yml 2020-11-03 15:42:08 +03:00
cmd/range-gen fixed incorrect symbols in the output file when using the --noise parameter 2020-11-02 20:41:21 +03:00
doc change project structure 2020-11-02 17:04:58 +03:00
internal/output add GPLv3 2020-11-02 17:18:44 +03:00
third_party/go-perceptualhash change project structure 2020-11-02 17:04:58 +03:00
.gitignore add gitignore 2020-11-02 05:20:23 +03:00
go.mod WIP 2020-11-02 11:29:11 +03:00
go.sum WIP 2020-11-02 11:29:11 +03:00
LICENSE add GPLv3 2020-11-02 17:18:44 +03:00
Makefile upd makefile 2020-11-03 10:59:47 +03:00
README.md Update README.md 2020-11-03 15:42:53 +03:00

Range-Gen

build GitHub top language GitHub GitHub release (latest by date)

range-gen creates a list of scene ranges based on a set of frames from the video. This program is used in the video2d-2x project.


Build & Install

Note: You can get the compiled version for your platform on the release page.

Dependencies:

  • linux distro
  • git
  • golang 1.13
  • make

Get the source:
git clone https://github.com/GenZmeY/range-gen

Build:
cd range-gen && make

Install:
make install

Build versions for all plaforms:
make -j $(nproc) compile
(executables will be in range-gen/bin folder)

Usage

Usage: range-gen [option]... <input_dir> <output_file> <threshold>
input_dir          Directory with png images
output_file        Range list file
threshold          Image similarity threshold (0-1024)

Options:
  -j, --jobs N     Allow N jobs at once
  -n, --noise      Default noise level for each range (0-3)
  -h, --help       Show this page
  -v, --version    Show version

License

Range-gen is licensed under the GNU GPLv3, but uses a go-perceptualhash (BSD 3-Clause License) to calculate hashes of images.