#6231 The srt subtitles were not read. The file may be empty or the format does not conform to the SRT specification:srtfile='

2409:8a5e* Posted at: 1 day ago

The srt subtitles were not read. The file may be empty or the format does not conform to the SRT specification
:srtfile='D:/360Downloads/_video_out/24時前編-動画(1)-mp4/ja.srt'
content=''
Traceback (most recent call last):
File "videotrans\task\only_one.py", line 148, in run
File "videotrans\task\_stage_assemble.py", line 26, in assembling
File "videotrans\task\_stage_assemble.py", line 153, in _join_video_audio_srt
File "videotrans\task\_stage_subtitle.py", line 30, in _process_subtitles
File "videotrans\util\_srt_parse.py", line 187, 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='D:/360Downloads/_video_out/24時前編-動画(1)-mp4/ja.srt'
content=''

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: D:/360Downloads/24時前編-動画(1).mp4,
输出结果保存到文件夹: D:/360Downloads/_video_out/24時前編-動画(1)-mp4,
临时文件夹: D:/360Downloads/tmp/20156/3d8d857dd5
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), model_name: large-v3-turbo, 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:Google(免费),原始语言:简体中文,目标语言:日语, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入硬字幕
代理地址:


=
system:Windows-10-10.0.26200-SP0
version:v4.08
frozen:True
language:zh
root_dir:D:/360Downloads

1 Replies

这是 v4.08 早期构建版本的已知 Bug:当未选择配音角色时,最终合并阶段可能产生空的或无法读取的目标语言字幕文件(这里即 ja.srt 内容为空),导致报错 "The srt subtitles were not read... content=''"。你的配置中显示 未选 配音角色,不进行配音,情况完全吻合。

解决方案:

  1. 请升级到 v4.08-0802(更新日期 2026-08-02)。注意:升级后软件左上角版本号仍显示 v4.08,请以更新日期为准。

    • 如果你用的是 Windows 预打包版,到官网下载最新的完整包或补丁包覆盖即可。
    • 如果是源码部署,请重新拉取源码覆盖。
  2. 另外,当前输出路径 D:/360Downloads/_video_out/24時前編-動画(1)-mp4 含有日文和括号等特殊字符,也可能增加 FFmpeg 处理的不稳定性。若升级后仍复现,建议将视频文件重命名为纯英文数字路径(如 D:/video24.mp4)后重试。

请查阅相关文档:

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