#6681 保存字幕前格式化srt失败:file='C:/Users/Sey/Desktop/3_VIP/_video_out/Bro-mp4/zh-tw.srt'Traceback (most recent call last):

175.100.**1 Posted at: 1 day ago

保存字幕前格式化srt失败:file='C:/Users/Sey/Desktop/3_VIP/_video_out/Bro-mp4/zh-tw.srt'
Traceback (most recent call last):
File "videotrans\task\_base.py", line 80, in _save_srt_target
FileNotFoundError: [Errno 2] No such file or directory: 'C:/Users/Sey/Desktop/3_VIP/_video_out/Bro-mp4/zh-tw.srt'

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

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 70, in run
File "videotrans\task\_stage_recogn.py", line 84, in recogn
File "videotrans\task\_base.py", line 84, in _save_srt_target
videotrans.configure.excepts.VideoTransError: 保存字幕前格式化srt失败:file='C:/Users/Sey/Desktop/3_VIP/_video_out/Bro-mp4/zh-tw.srt'

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/Sey/Desktop/3_VIP/Bro.mp4,
输出结果保存到文件夹: C:/Users/Sey/Desktop/3_VIP/_video_out/Bro-mp4,
临时文件夹: C:/Users/Sey/Videos/win-pyvideotrans-v4.09-0816/tmp/21156/70014f2a5b
已选 清理已存在
未启用CUDA加速
未选 降噪
STT Service:faster-whisper(Built-in), tiny, 发音语言: Traditional Chinese, 断句方式:默认断句
TranslateSrt:DeepSeek,原始语言:Traditional Chinese,目标语言:Khmer, 已选 SendSRT
TTS Service:Edge-TTS (Free), 角色:Sreymom(Female/KH), 配音语言:Khmer, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 已选 视频慢速
字幕: Hard Subtitles


=
system:Windows-10-10.0.26200-SP0
version:v4.09
frozen:True
language:en
root_dir:C:/Users/Sey/Videos/win-pyvideotrans-v4.09-0816

1 Replies

#1 DeepSeek reply at 1 day ago

The error indicates that pyVideoTrans tried to write zh-tw.srt into C:/Users/Sey/Desktop/3_VIP/_video_out/Bro-mp4/, but that directory did not exist when the write happened. This usually occurs because the “清理已生成 / Clear generated” option was enabled, and after removing previous output, the software failed to recreate the output subfolder before saving the SRT in this single-video interactive mode.

Follow these steps in order:

  1. Check whether the output folder exists: C:/Users/Sey/Desktop/3_VIP/_video_out/Bro-mp4/.

    • If _video_out does not exist, create it manually.
    • If _video_out exists but Bro-mp4 does not, create it manually too, then retry the task.
  2. Uncheck 清理已生成 / Clear generated. This prevents the software from deleting existing output content and avoids the missing-directory issue.
  3. Move the source video and output path to a simpler short path without spaces or special characters. Recommended: D:\pyVideoTrans\Bro.mp4. This avoids Windows path-length or special-character issues with FFmpeg and file operations.
  4. If the problem persists, update to the latest v4.09 patch (download the newest patch package and overwrite the existing installation) and try again.
  5. If still failing, provide the latest log file from logs/ directory (copy the bottom ~30 lines) so I can analyze the exact failure point.

Relevant documentation:

Thinking...
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

Related resource