PotPlayer_ollama_Translate  by yxyxyz6

PotPlayer extension for real-time subtitle translation

created 8 months ago
316 stars

Top 86.7% on sourcepulse

GitHubView on GitHub
Project Summary

This project provides a PotPlayer extension for real-time subtitle translation using Ollama-hosted language models. It targets users who watch foreign language videos and desire on-the-fly translation within PotPlayer, leveraging local LLMs for privacy and customization.

How It Works

The extension integrates with PotPlayer to capture subtitle text and send it to a locally running Ollama instance for translation. It utilizes a Lua script (SubtitleTranslate - ollama.as) to manage the communication between PotPlayer and the Ollama API, enabling subtitle translation without relying on external cloud services.

Quick Start & Requirements

  • Download the release zip and extract to potplayer\Extension\Subtitle\Translate.
  • Requires PotPlayer and a running Ollama instance with a compatible model (e.g., wangshenzhi/gemma2-9b-chinese-chat:latest).
  • Modify the SubtitleTranslate - ollama.as file to point to your desired Ollama model.
  • Video tutorials available on Bilibili:

Highlighted Details

  • Real-time subtitle translation directly within PotPlayer.
  • Leverages local Ollama for model hosting, enhancing privacy and offline capability.
  • Offers English-to-Chinese translation with optimized prompts and context awareness.
  • Addresses variable name conflicts with other PotPlayer translation plugins.

Maintenance & Community

The project references modifications based on the Felix3322/PotPlayer_Chatgpt_Translate repository. No specific community channels or active maintainer information are provided in the README.

Licensing & Compatibility

The licensing is not explicitly stated in the provided README. Compatibility with commercial or closed-source applications is undetermined.

Limitations & Caveats

The project is presented as a modification of another's work, and its long-term maintenance status is unclear. Users must manage their Ollama setup and model selection independently.

Health Check
Last commit

5 months ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
46 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.