==准备要嵌入的字幕:self.cfg.subtitle_type=2
=
[ERROR] 单视频模式翻译失败The srt subtitles were not read. The file may be empty or the format does not conform to the SRT specification
:srtfile='D:/desktop/2-mp4/zh-cn.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:/desktop/2-mp4/zh-cn.srt'
content=''
[DEBUG] [TransCreate]最终配置信息:self=TransCreate(uuid='49f7cc35cc', proxy_str=None, last_down_time=0, precent=1, hasend=False, should_recogn=True, should_trans=True, should_dubbing=False, should_separate=Fa
......
t': '', 'beam_size': 5, 'best_of': 5, 'temperature': '', 'repetition_penalty': 1.0, 'compression_ratio_threshold': 2.4, 'max_speech_ms': 5000, 'subtitle_srt': 'D:/pyvideotrans/tmp/faster-20260802-09_52_19.srt'}
[DEBUG] 开始加载 faster-whisper模型large-v3-turbo,数据类型:default
[DEBUG] [faster_whisper]加载模型large-v3-turbo: is_cuda=False,_compute_type='default'
[DEBUG] 直接传递完整音频,由faster-whisper内部VAD处理,返回字级时间戳数据
[DEBUG] faster-whisper模式下,对large-v3-turbo模型返回的字级时间戳进行断句
[DEBUG] 断句完毕返回结果
[DEBUG] faster-whisper下已临时保存识别结果到 D:/pyvideotrans/tmp/faster-20260802-09_52_19.srt,防止进程崩溃后永久等待
[DEBUG] [新进程任务 title='Model: large-v3-turbo'] 已返回
[DEBUG] [新进程任务 结束:title='Model: large-v3-turbo'],耗时16.11011028289795s
[DEBUG] 移除无效字幕行
[DEBUG] 修正重叠时间轴
[DEBUG] 开始移除每条字幕末尾标点
[DEBUG] 以纯文本行形式翻译,每次翻译10行,翻译后暂停0.0s
[INFO] Starting call to 'videotrans.translator._tencent.Tencent._item_task', this is the 1st time calling it.
[DEBUG] [腾讯]返回:resp={"TargetText": "(注)(注)\n这是个好主意。", "Source": "ja", "Target": "zh", "RequestId": "11ba1f29-ce05-4202-b477-a41c630dc6ba"}
[DEBUG] 原始行数:2,翻译后行数:2
[DEBUG] 原始语言字幕和目标语言字幕行数一致,均为 source_len=2
[DEBUG]
==准备要嵌入的字幕:self.cfg.subtitle_type=2
=
[ERROR] 单视频模式翻译失败The srt subtitles were not read. The file may be empty or the format does not conform to the SRT specification
:srtfile='D:/desktop/2-mp4/zh-cn.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:/desktop/2-mp4/zh-cn.srt'
content=''