#5948 翻译字幕阶段出错 [Gemini AI] 保存字幕前格式化srt失败:file='E:/课程/土神翻译/Lecture 032 - BPR - Balanced Price Range - RALLY STARTER/BEST ORDER

2a12:f8c4* Posted at: 1 day ago

翻译字幕阶段出错 [Gemini AI] 保存字幕前格式化srt失败:file='E:/课程/土神翻译/Lecture 032 - BPR - Balanced Price Range - RALLY STARTER/BEST ORDER BLOCK! Using ICT Order Blocks with Market Structure and Smart Money Concepts for Scalpers [Yby0ieHw2bw]-mp4/BEST ORDER BLOCK! Using ICT Order Blocks with Market Structure and Smart Money Concepts for Scalpers [Yby0ieHw2bw]-en.srt'
Traceback (most recent call last):

File "videotrans\task\_base.py", line 82, in _save_srt_target

FileNotFoundError: [Errno 2] No such file or directory: 'E:/课程/土神翻译/Lecture 032 - BPR - Balanced Price Range - RALLY STARTER/BEST ORDER BLOCK! Using ICT Order Blocks with Market Structure and Smart Money Concepts for Scalpers [Yby0ieHw2bw]-mp4/BEST ORDER BLOCK! Using ICT Order Blocks with Market Structure and Smart Money Concepts for Scalpers [Yby0ieHw2bw]-en.srt'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 135, in process_task

File "videotrans\task\_stage_translate.py", line 52, in trans

File "videotrans\task\_base.py", line 86, in _save_srt_target

videotrans.configure.excepts.VideoTransError: 保存字幕前格式化srt失败:file='E:/课程/土神翻译/Lecture 032 - BPR - Balanced Price Range - RALLY STARTER/BEST ORDER BLOCK! Using ICT Order Blocks with Market Structure and Smart Money Concepts for Scalpers [Yby0ieHw2bw]-mp4/BEST ORDER BLOCK! Using ICT Order Blocks with Market Structure and Smart Money Concepts for Scalpers [Yby0ieHw2bw]-en.srt'
cfg=[TaskCfgVTT]当前工作模式: 转录并翻译字幕
原始输入文件名: C:/Users/28591/Desktop/BEST ORDER BLOCK! Using ICT Order Blocks with Market Structure and Smart Money Concepts for Scalpers [Yby0ieHw2bw].mp4,
输出结果保存到文件夹: E:/课程/土神翻译/Lecture 032 - BPR - Balanced Price Range - RALLY STARTER/BEST ORDER BLOCK! Using ICT Order Blocks with Market Structure and Smart Money Concepts for Scalpers [Yby0ieHw2bw]-mp4,
临时文件夹: D:/win-pyvideotrans-v4.05-0711/tmp/2464/6ec3b124cc
未选 清理已存在
已选 启用CUDA加速
未选 降噪
语音识别:faster-whisper(本地内置), model_name: large-v3, 发音语言: 英语, 断句方式:LLM重新断句
翻译渠道:Gemini AI,原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
输出字幕格式: 目标语言在上双字幕
代理地址:http://127.0.0.1:7890


=
system:Windows-10-10.0.26200-SP0
version:v4.05
frozen:True
language:zh
root_dir:D:/win-pyvideotrans-v4.05-0711

1 Replies

这是由于输出路径过长且包含空格、中文、特殊符号(如[]!),导致Windows系统无法创建或访问目标字幕文件。

解决方法:

  1. 将原始视频文件移动至浅层目录,例如拷贝到 D:\ 根目录下,并重命名为纯英文数字的组合,例如 video.mp4
  2. 重新运行翻译任务,不要勾选“清理已生成”,软件会按新的短路径重新执行。
Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Dondate via ko-fi.com

Dondate via PayPal

Related resource