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. It solves the problem of poor translation quality in media players, where traditional tools often fail to capture idioms, jokes, cultural references, and the context of a conversation.

How it works

The plugin connects PotPlayer to any OpenAI-compatible API endpoint. It sends the current subtitle text to an AI model and displays the translated result in real-time. It offers two operational modes:

  • With context: Sends previous subtitles to the AI to help it understand pronouns and references, resulting in higher accuracy.
  • Without context: Translates each line independently for faster response times and lower token costs.

Who it’s for

Users of PotPlayer who want higher-quality, context-aware subtitles for movies, TV shows, and anime, and those who have access to AI API keys (OpenAI, DeepSeek, Gemini, etc.) or run local LLMs.

Highlights

  • Broad Compatibility: Supports any service following the chat/completions API format, including local deployments.
  • Context-Awareness: Ability to use previous subtitles to resolve ambiguity in dialogue.
  • Customizable Request Logic: Includes options for request delays, retry behaviors, and hallucination checks (retrying if output is too long).
  • Flexible Configuration: Supports custom API base URLs and endpoints that do not require API keys.
  • Detailed Model Control: Includes a "small-model prompt mode" optimized for smaller LLMs and specific thinking-mode toggles for DeepSeek models.

Related

  • Project
  • Project
  • Project
  • Project
  • Project