Felix3322/PotPlayer_ChatGPT_Translate

[support ollama/other model]【兼容ollama和其他模型】将任何具有OpenAI API调用方法的模型集成到PotPlayer中。它使你在观看视频时能够实时翻译字幕,从而打破语言障碍,提升你的观看体验。 This real-time subtitle translation plugin integrates OpenAI's ChatGPT API (or any model with the same API calling method) into PotPlayer. It enables you to translate subtitles on-the-fly while watching videos.

What it solves

PotPlayer_ChatGPT_Translate provides a way to replace traditional, literal subtitle translation in PotPlayer with AI-powered translation. This solves the problem of poor translation quality where traditional tools often fail to understand idioms, cultural references, jokes, and ambiguous dialogue.

How it works

The plugin sends subtitle text to an AI model via an OpenAI-compatible API endpoint. It offers two primary modes of operation:

  • With context: The plugin sends previous subtitles as context to the AI, allowing the model to better understand pronouns and references, resulting in higher accuracy but higher token usage.
  • Without context: Each subtitle is translated independently for faster response times and lower costs.

Who it’s for

Users of PotPlayer who want higher quality, context-aware translations for movies, TV shows, and other video content, and who have access to an OpenAI-compatible API key or a local LLM deployment.

Highlights

  • OpenAI-Compatible: Supports any model or service following the chat/completions API format, including local deployments (e.g., via Ollama).
  • Context-Aware: Can use a configurable number of recent subtitle entries to improve translation accuracy.
  • Flexible Configuration: Includes options for request delays, retry logic, and a "small-model" prompt mode optimized for smaller LLMs.
  • Hallucination Check: An optional feature that retries the request if the translated output is abnormally long compared to the source.
  • Automatic Installer: Provides an installer for easy setup without manual file copying.

Related

  • Project
  • Project
  • Project
  • Project
  • Project