#1180 content=''

157.254* Posted at: 5 days ago 👁25

翻译字幕阶段出错:[OpenAI ChatGPT] 运行时错误:The srt subtitles were not read. The file may be empty or the format does not conform to the SRT specification
:srtfile='G:/修复/RJ247511/tinpoko/アニメ/_video_out/01本編/ja.srt'
content='':
Traceback (most recent call last):
File "videotrans\task\job.py", line 146, in run
File "videotrans\task\trans_create.py", line 371, in trans
File "videotrans\util\help_srt.py", line 231, in get_subtitle_from_srt
RuntimeError: The srt subtitles were not read. The file may be empty or the format does not conform to the SRT specification
:srtfile='G:/修复/RJ247511/tinpoko/アニメ/_video_out/01本編/ja.srt'
content=''


=
system:Windows-10-10.0.19045-SP0
version:v3.82
frozen:True
language:zh
root_dir:F:/long/win-videotrans-v3.82_20251019_125144

1 Replies

这个错误表明在翻译字幕阶段,软件无法读取指定的SRT文件。错误信息显示文件 ja.srt 为空或格式不符合SRT规范。

请按以下步骤排查:

  1. 检查SRT文件内容

    • 用记事本打开 G:/修复/RJ247511/tinpoko/アニメ/_video_out/01本編/ja.srt 文件
    • 确认文件是否为空,或者内容格式是否正确
    • 正确的SRT格式应包含序号、时间戳和字幕文本,例如:

      1
      00:00:01,000 --> 00:00:04,000
      这是第一行字幕
      
      2
      00:00:05,000 --> 00:00:08,000
      这是第二行字幕
  2. 重新生成SRT文件

    • 如果文件确实为空或格式错误,请返回到"音视频转字幕"功能
    • 重新对视频进行语音识别,生成新的SRT文件
  3. 检查文件编码

    • 确保SRT文件使用UTF-8编码保存
    • 避免使用特殊字符或不兼容的编码格式
  4. 检查文件路径

    • 确认文件路径 G:/修复/RJ247511/tinpoko/アニメ/_video_out/01本編/ja.srt 确实存在且可访问

如果问题仍然存在,请提供SRT文件的前几行内容以便进一步分析。

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.

Donate: https://ko-fi.com/jianchang512

Similar issues already exist

Trending Questions