PotPlayer安装AI翻译插件 实时翻译视频字幕

2026-06-11 - 488

使用PotPlayer实时字幕翻译功能,安装Felix3322开发的ChatGPT Translate翻译插件,可实时翻译外文字幕为中文。整合了 ChatGPT API,虽然叫ChatGPT但支持的AI很广泛,支持的AI有:OpenAI/Gemini/Deepseek/通义千问/硅基流动/文心一言/ChatGLM/LLaMA/Code LLaMA/Claude/Mistral Large/Groq Llama/Perplexity Sonar Large/Fireworks Mixtral/Moonshot/Yi 34B Chat,以及本地部署的AI。

下载安装翻译插件

首先下载翻译插件SubtitleTranslate - ChatGPT.zip

PotPlayer右键 - 字幕 - 实时字幕翻译 - 实时字幕翻译设置。

点击“打开文件夹”,例如D:\Program Files\DAUM\PotPlayer\Extension\Subtitle\Translate,将下载的压缩包解压到该文件夹。

该翻译插件有两个版本,SubtitleTranslate - ChatGPT 和 SubtitleTranslate - ChatGPT - Without Context,即"有上下文"和"无上下文"。有上下文能够考虑上下文、惯用语和文化差异,从而提供更准确的翻译。

设置翻译插件

PotPlayer右键 - 字幕 - 实时字幕翻译,选中为“ChatGPT翻译”。

再次打开“实时字幕翻译设置”。

设置使用条件:总是使用;翻译位置:上面显示翻译;目标语言:简体中文。

点击“设置”,填写AI的API。支持的模型以及填写规范:

OpenAI GPT-5: gpt-5|https://api.openai.com/v1/chat/completions
OpenAI GPT-5 Mini: gpt-5-mini|https://api.openai.com/v1/chat/completions
OpenAI GPT-5 Nano: gpt-5-nano|https://api.openai.com/v1/chat/completions
OpenAI GPT-4.1: gpt-4.1|https://api.openai.com/v1/chat/completions
OpenAI GPT-4.1 Mini: gpt-4.1-mini|https://api.openai.com/v1/chat/completions
Gemini Flash: gemini-3-flash-preview|https://generativelanguage.googleapis.com/v1beta/openai/chat/completions
Deepseek: deepseek-v4-flash|https://api.deepseek.com/chat/completions
通义千问: qwen-plus|https://dashscope-intl.aliyuncs.com/compatible-mode/v1/chat/completions
硅基流动: siliconflow-chat|https://api.siliconflow.cn/v1/chat/completions
文心一言: ernie-4.0-turbo-8k|https://qianfan.baidubce.com/v2/chat/completions
Gemini: gemini-2.0-flash|https://generativelanguage.googleapis.com/v1beta/openai/chat/completions
ChatGLM: chatglm-6b|https://api.chatglm.cn/v1/chat/completions
LLaMA: llama-13b|https://api.llama.ai/v1/chat/completions
Code LLaMA: code-llama-34b|https://api.llama.ai/v1/code/completions
OpenAI GPT-4o: gpt-4o|https://api.openai.com/v1/chat/completions
OpenAI GPT-4 Turbo: gpt-4-turbo|https://api.openai.com/v1/chat/completions
OpenAI GPT-3.5 Turbo: gpt-3.5-turbo|https://api.openai.com/v1/chat/completions
Claude 3 Sonnet: claude-3-sonnet-20240229|https://api.anthropic.com/v1/messages
Mistral Large: mistral-large|https://api.mistral.ai/v1/chat/completions
Groq Llama 3: llama3-70b-8192|https://api.groq.com/openai/v1/chat/completions
Perplexity Sonar Large: pplx-70b-online|https://api.perplexity.ai/chat/completions
Fireworks Mixtral: accounts/fireworks/models/mixtral-8x7b-instruct|https://api.fireworks.ai/inference/v1/chat/completions
Moonshot v1: moonshot-v1-128k|https://api.moonshot.cn/v1/chat/completions
Yi 34B Chat: yi-34b-chat|https://api.lingyi.ai/v1/chat/completions
本地部署(无需 API Key):模型名称|http://127.0.0.1:端口/v1/chat/completions|nullkey 示例 qwen2.5:7b|http://127.0.0.1:11434/v1/chat/completions|nullkey

以DeepSeek为例:

到DeepSeek官网创建API:https://platform.deepseek.com/api_keys

名称随便填写,复制随后出现的API key。(使用DeepSeek API需付费,充值1元即可)

模型名称API地址:deepseek-v4-flash|https://api.deepseek.com/chat/completions
API密钥为刚才复制的API key内容。
“确定”保存。

点击“测试”,将测试文字翻译为了中文,代表可以使用了。

翻译效果

播放一个带有英文字幕的电影,翻译效果非常准确流畅。

无上下文和有上下文对比:

无上下文,NO.被翻译为“编号”。

有上下文,结合上下文NO.被正确翻译为“不”。

“无上下文”消耗的Token少,费用便宜;“有上下文”消耗的Token较多,费用贵但效果好。

搭配PotPlayer声音生成字幕功能,还可将无字幕的英文电影显示中文字幕效果。