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

2a09:bac5* Posted at: 15 hours ago

The srt subtitles were not read. The file may be empty or the format does not conform to the SRT specification
:srtfile='/Users/xiaohuo/Downloads/_video_out/ENGLISH SPEECH | SAMANTHA RUTH PRABHU- You Can Do It (English Subtitles)-mp4/zh-cn.srt'
content=''
Traceback (most recent call last):
File "/Users/xiaohuo/pyvideotrans-v4.08/videotrans/task/only_one.py", line 148, in run

trk.assembling()

File "/Users/xiaohuo/pyvideotrans-v4.08/videotrans/task/_stage_assemble.py", line 26, in assembling

self._join_video_audio_srt()

File "/Users/xiaohuo/pyvideotrans-v4.08/videotrans/task/_stage_assemble.py", line 153, in _join_video_audio_srt

subtitles_file, subtitle_langcode = self._process_subtitles()

File "/Users/xiaohuo/pyvideotrans-v4.08/videotrans/task/_stage_subtitle.py", line 30, in _process_subtitles

target_sub_list = get_subtitle_from_srt(self.cfg.target_sub)

File "/Users/xiaohuo/pyvideotrans-v4.08/videotrans/util/_srt_parse.py", line 187, in get_subtitle_from_srt

raise RuntimeError(

RuntimeError: The srt subtitles were not read. The file may be empty or the format does not conform to the SRT specification
:srtfile='/Users/xiaohuo/Downloads/_video_out/ENGLISH SPEECH | SAMANTHA RUTH PRABHU- You Can Do It (English Subtitles)-mp4/zh-cn.srt'
content=''

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: /Users/xiaohuo/Downloads/ENGLISH SPEECH | SAMANTHA RUTH PRABHU- You Can Do It (English Subtitles).mp4,
输出结果保存到文件夹: /Users/xiaohuo/Downloads/_video_out/ENGLISH SPEECH | SAMANTHA RUTH PRABHU- You Can Do It (English Subtitles)-mp4,
临时文件夹: /Users/xiaohuo/pyvideotrans-v4.08/tmp/9566/26d91b2bce
未选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), model_name: small, 发音语言: 英语, 断句方式:默认断句
翻译渠道:硅基流动,原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入软字幕
代理地址:http://127.0.0.1:7892


=
system:macOS-26.6-arm64-i386-64bit
version:v4.08
frozen:False
language:zh
root_dir:/Users/xiaohuo/pyvideotrans-v4.08
Python: 3.10.19 (main, Feb 12 2026, 00:36:33) [Clang 21.1.4 ]

1 Replies

这是 v4.08 版本的已知 bug:当未选择配音角色、仅嵌入软字幕时,目标语言字幕文件可能生成空文件,导致最后合成阶段报错“The srt subtitles were not read”。

解决方案:

  1. 升级到 v4.08-0802 版本(2026-08-02 发布,软件左上角仍显示 v4.08,需重新下载完整包或补丁包覆盖)。
  2. 下载地址:官方文档站 https://pyvideotrans.com/downpackage
  3. 升级后重新执行任务;若仍想暂时绕过,可手动确认目标字幕文件 zh-cn.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.

Dondate via ko-fi.com

Dondate via PayPal

Related resource