AI no jimaku gumi (AIの字幕組), a subtitle maker for video using AI.
AI no jimaku gumi (AIの字幕組), a subtitle maker for video using AI.
AI no jimaku gumi is a cli utility to facilitate the translation and subtitle making of video.
To get started with AI no jimaku gumi, follow these steps:
git clone https://github.com/Inokinoki/ai-no-jimaku-gumi.gitcd ai-no-jimaku-gumiUsing Homebrew:
brew install cmake ffmpegUbuntu:
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 Fedora:
dnf install clang cmake ffmpeg-free-devel make pkgconf-pkg-configArch Linux:
pacman -S clang cmake ffmpeg make pkgconfPlease look for clang, cmake, make, pkgconfig and ffmpeg packages in your distribution, if it's not one of above.
You might need to install some other packages to enable GPU/NPU acceleration.
TODO
Build with cargo:
cargo buildDownload whisper model(you can also download other models refer: https://huggingface.co/ggerganov/whisper.cpp):
wget https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-tiny.binRun it with your video path after --input-video-path and target language after -t.
To use AI no jimaku gumi, refer this help:
…We are currently supporting only deepl, llm, whisper translation and srt export.
You might need to follow the specific instructions to use a translator backend:
deepl (default): please provide your own DeepL API key in DEEPL_API_KEY env, and DEEPL_API_URL=https://api.deepl.com if you are using the paid API version.llm: if you are using llm translate, please refer the repo rust-genai for more detail. An example here:export CUSTOM_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxx
./target/debug/ainojimakugumi --input-video-path one.webm \
--translator-backend llm \
--llm-api-base https://sssss.com/v1/ \
--llm-prompt 'translate this to English' \
--llm-model-name 'gpt-4o-mini'
--ggml-model-path ggml-small.binwhisper (experimental): use Whisper.cpp to directly output translated subtitles from audio (audio only, English only).No open issues yet, or sync has not completed.