Crates.io | classi-cine |
lib.rs | classi-cine |
version | 0.1.4 |
source | src |
created_at | 2023-11-01 08:22:18.644091 |
updated_at | 2024-02-22 09:19:11.785689 |
description | A filename based interactive video tagging tool. |
homepage | |
repository | https://github.com/mason-larobina/classi-cine |
max_upload_size | |
id | 1020720 |
size | 844,976 |
Classi-Cine is a Rust-based tool that utilizes a Naive Bayes classifier for filename-based video tagging. It offers a user-directed classification approach by interacting with VLC's playback states via its http interface.
The first iteration of this tool is being used to help find and tag videos for deletion based on learned features (words, tokens, ngrams) in the video filepaths. The tag names "keep" and "delete" are arbitrary and can be overridden. For example, you could use this as a video recommendation engine for local video files. Stopping playback will train and recommend other similar video files.
VLC is required for video playback.
Ensure you have Rust and Cargo installed. If not, you can install them using rustup.
# Build from the cargo.io crate registry.
$ cargo install classi-cine
# Clone this repository
$ git clone https://github.com/mason-larobina/classi-cine.git
# Go into the repository
$ cd classi-cine
# Build and install it locally
$ cargo install --path=.
Usage: classi-cine [OPTIONS] <PATHS>...
Arguments:
<PATHS>...
Options:
--tokenize <TOKENIZE>
The tokenizer to use [default: chars] [possible values: words, chars]
--windows <WINDOWS>
Create ngrams (windows of tokens) from 1 to N [default: 20]
--delete <DELETE>
The text file containing the files to delete [default: delete.txt]
--keep <KEEP>
The text file containing the files to keep [default: keep.txt]
--log-level <LOG_LEVEL>
[default: info]
-f, --fullscreen
Fullscreen VLC playback
--file-size-log-base <FILE_SIZE_LOG_BASE>
The log base for the file size which is mixed into the classifier score to preference larger files over smaller files. Recommended values are close to 1.0, for example 1.1, 1.01, 1.001, and so on
--vlc-port <VLC_PORT>
[default: 9010]
--video-exts <VIDEO_EXTS>
[default: avi,flv,mov,f4v,flv,m2ts,m4v,mkv,mpg,webm,wmv,mp4]
-h, --help
Print help
We're open to contributions! Enhancements, bug fixes, documentation improvements, and more are all welcome.
This project is licensed under the MIT License. See LICENSE for details.
Made with ❤️ and Rust.