From cace0ab95e961292af2adbc2fbe03cd6632811c9 Mon Sep 17 00:00:00 2001 From: Inoki Date: Mon, 6 Jan 2025 15:09:43 +0100 Subject: [PATCH 1/2] chore: refine README with CI status and star history --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 4304e35..9bad355 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # AI no jimaku gumi (AIの字幕組) +[![Build and test on Linux](https://github.com/Inokinoki/ai-no-jimaku-gumi/actions/workflows/linux-rust.yml/badge.svg)](https://github.com/Inokinoki/ai-no-jimaku-gumi/actions/workflows/linux-rust.yml) + AI no jimaku gumi is a cli utility to facilitate the translation of video. ## Setup @@ -136,3 +138,13 @@ export CUSTOM_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxx --llm-model-name 'gpt-4o-mini' --ggml-model-path ggml-small.bin ``` + +## Star History + + + + + + Star History Chart + + From 06913959cae1f26f019da9e09aa381ae0417df32 Mon Sep 17 00:00:00 2001 From: Inoki Date: Mon, 6 Jan 2025 15:12:53 +0100 Subject: [PATCH 2/2] chore: refine input params and descriptions --- Cargo.toml | 2 +- README.md | 16 ++++++++-------- src/main.rs | 6 +++--- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 19f01bf..37cfebc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ainojimakugumi" -description = "aI NO jimaKu gumI, a sub-title maker using AI." +description = "aI NO jimaKu gumI, a subtitle maker using AI." version = "0.1.0" edition = "2021" diff --git a/README.md b/README.md index 9bad355..0aeab6b 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![Build and test on Linux](https://github.com/Inokinoki/ai-no-jimaku-gumi/actions/workflows/linux-rust.yml/badge.svg)](https://github.com/Inokinoki/ai-no-jimaku-gumi/actions/workflows/linux-rust.yml) -AI no jimaku gumi is a cli utility to facilitate the translation of video. +AI no jimaku gumi is a cli utility to facilitate the translation and subtitle making of video. ## Setup @@ -30,7 +30,7 @@ brew install cmake ffmpeg Ubuntu: -``` +```bash apt-get install -y clang cmake make pkg-config \ libavcodec-dev libavdevice-dev libavfilter-dev libavformat-dev \ libavutil-dev libpostproc-dev libswresample-dev libswscale-dev @@ -38,13 +38,13 @@ apt-get install -y clang cmake make pkg-config \ Fedora: -``` +```bash dnf install clang cmake ffmpeg-free-devel make pkgconf-pkg-config ``` Arch Linux: -``` +```bash pacman -S clang cmake ffmpeg make pkgconf ``` @@ -76,21 +76,21 @@ Run it with your video path after `--input-video-path` and target language after To use AI no jimaku gumi, refer this help: ``` -aI NO jimaKu gumI, a sub-title maker using AI. +aI NO jimaKu gumI, a subtitle maker using AI. Usage: ainojimakugumi [OPTIONS] --input-video-path Options: -i, --input-video-path - Name of the person to greet + Path to the input video --source-language Which language to translate from (default: "ja") (possible values: "en", "es", "fr", "de", "it", "ja", "ko", "pt", "ru", "zh") (example: "ja") [default: ja] --target-language Which language to translate to (default: "en") (possible values: "en", "es", "fr", "de", "it", "ja", "ko", "pt", "ru", "zh") (example: "en") [default: en] --start-time - Video start time [default: 0] + Video start time (not used yet) [default: 0] --end-time - Video end time [default: 0] + Video end time (not used yet) [default: 0] --subtitle-source Subtitle source (default: "audio") (possible values: "audio", "container", "ocr") (example: "audio") (long_about: "Subtitle source to use") [default: audio] --ggml-model-path diff --git a/src/main.rs b/src/main.rs index ef7170c..bd60284 100644 --- a/src/main.rs +++ b/src/main.rs @@ -16,7 +16,7 @@ use tempfile::TempDir; #[derive(Parser, Debug)] #[command(version, about, long_about = None)] struct Args { - /// Name of the person to greet + /// Path to the input video #[arg(short, long)] input_video_path: String, @@ -34,11 +34,11 @@ struct Args { #[arg(long, default_value = "en")] target_language: String, - /// Video start time + /// Video start time (not used yet) #[arg(long, default_value = "0")] start_time: usize, - /// Video end time + /// Video end time (not used yet) #[arg(long, default_value = "0")] end_time: usize,