#5947 翻译字幕阶段出错 [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]当前工作模式: 转录并翻译字幕
原始输入文件名: 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,
输出结果保存到文件夹: 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/22e966d870
未选 清理已存在
已选 启用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 260 字符路径长度限制,导致 FileNotFoundError

解决方法:

  1. 将原始视频移动到一个浅层、纯英文、无空格、无特殊符号的目录下,例如 D:\videos\lecture032.mp4
    (当前路径 E:/课程/土神翻译/... 中中文和方括号都是问题来源。)
  2. 重新启动软件,导入移动后的视频,重新执行翻译任务。
    注意:一定不要勾选「清理已生成」,否则会清除可能已有的缓存数据。
  3. 如果仍需保持原目录结构,可以将输出目录通过主界面「输出到...」按钮手动指定为一个简短路径(如 D:\output\),避免自动生成过深的嵌套目录。
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