#4396 LLM重新断句怎么这么慢了

103.172* Posted at: 7 hours ago 👁13

LLM重新断句怎么这么慢了,之前版本都挺快

3 Replies

导致 LLM 重新断句速度变慢的可能原因较多,包括模型服务的并发限制、网络延迟增加、默认断句参数变化或系统资源竞争等,暂无法直接定位。建议先后尝试以下排查步骤:

  1. 调整高级选项:将“LLM重新断句每批字幕行数”增大(如 50 或 100)以减少请求次数,同时确认“最大进程数”未被过低限制。
  2. 检查网络代理:确保 AI 渠道的 API 地址和代理设定正常,可临时关闭代理测试。
  3. 切换翻译渠道:某些 AI 模型在高负载时会主动限速,可换用 DeepSeek、OpenAI 等不同渠道对比。
  4. 关闭其他 GPU 任务:避免同时运行多个 CUDA 任务抢占显存或带宽。

若问题依旧,请提供软件安装目录下 logs/ 文件夹中最新的日志文件(复制底部约 30 行报错信息)以便进一步分析。

请查阅相关文档:

[DEBUG] 视频定格应延长1553ms,实际向上取整秒延长1.553s,操作成功。
[DEBUG] 原始hw_type='h264_nvenc'
[DEBUG] 整理后hw_type='nvenc'
[DEBUG] [尝试硬件编解码执行命令]
-y -progress compose1777783095.6557298.txt -i novoice.mp4 -i origin_audio.m4a -filter_complex [0:v]subtitles=filename='shuang.ass'[v_out] -map [v_out] -map 1:a -c:v h264_nvenc -c:a copy -cq 23 -preset p4 -movflags +faststart -t 47.083000 laste_target.mp4

[DEBUG] 最终配置信息:self.cfg=TaskCfgVTT(is_cuda=True, uuid='debc807f97', cache_folder='E:/win-pyvideotrans-v3.99-428/tmp/25336/debc807f97', target_dir='F:/Youtube/Tubedown Download/2026-04-26/PolyPaint/_video_out/00-mp4', source_language='英语', source_language_code='en', source_sub='F:/Youtube/Tubedown Download/2026-04-26/PolyPaint/_video_out/00-mp4/en.srt', source_wav='E:/win-pyvideotrans-v3.99-428/tmp/25336/debc807f97/en.wav', source_wav_output='F:/Youtube/Tubedown Download/2026-04-26/PolyPaint/_video_out/00-mp4/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='F:/Youtube/Tubedown Downl
......
ions': 0, 'film_grain': 0, 'has_b_frames': 1, 'sample_aspect_ratio': '1:1', 'display_aspect_ratio': '16:9', 'pix_fmt': 'yuv420p', 'level': 40, 'color_range': 'tv', 'color_space': 'bt709', 'color_transfer': 'bt709', 'color_primaries': 'bt709', 'chroma_location': 'left', 'field_order': 'progressive', 'refs': 1, 'is_avc': 'true', 'nal_length_size': '4', 'id': '0x1', 'r_frame_rate': '24/1', 'avg_frame_rate': '24/1', 'time_base': '1/12288', 'start_pts': 0, 'start_time': '0.000000', 'duration_ts': 559616, 'duration': '45.541667', 'bit_rate': '2132108', 'bits_per_raw_sample': '8', 'nb_frames': '1093', 'extradata_size': 45, 'disposition': {'default': 1, 'dub': 0, 'original': 0, 'comment': 0, 'lyrics': 0, 'karaoke': 0, 'forced': 0, 'hearing_impaired': 0, 'visual_impaired': 0, 'clean_effects': 0, 'attached_pic': 0, 'timed_thumbnails': 0, 'non_diegetic': 0, 'captions': 0, 'descriptions': 0, 'metadata': 0, 'dependent': 0, 'still_image': 0, 'multilayer': 0}, 'tags': {'language': 'und', 'handler_name': 'ISO Media file produced by Google Inc.', 'vendor_id': '00'}}, {'index': 1, 'codec_name': 'aac', 'codec_long_name': 'AAC (Advanced Audio Coding)', 'profile': 'LC', 'codec_type': 'audio', 'codec_tag_string': 'mp4a', 'codec_tag': '0x6134706d', 'sample_fmt': 'fltp', 'sample_rate': '44100', 'channels': 2, 'channel_layout': 'stereo', 'bits_per_sample': 0, 'initial_padding': 0, 'id': '0x2', 'r_frame_rate': '0/0', 'avg_frame_rate': '0/0', 'time_base': '1/44100', 'start_pts': 0, 'start_time': '0.000000', 'duration_ts': 2011136, 'duration': '45.603991', 'bit_rate': '127999', 'nb_frames': '1964', 'extradata_size': 16, 'disposition': {'default': 1, 'dub': 0, 'original': 0, 'comment': 0, 'lyrics': 0, 'karaoke': 0, 'forced': 0, 'hearing_impaired': 0, 'visual_impaired': 0, 'clean_effects': 0, 'attached_pic': 0, 'timed_thumbnails': 0, 'non_diegetic': 0, 'captions': 0, 'descriptions': 0, 'metadata': 0, 'dependent': 0, 'still_image': 0, 'multilayer': 0}, 'tags': {'language': 'und', 'handler_name': 'ISO Media file produced by Google Inc.', 'vendor_id': '00'}}], 'format': {'filename': 'F:/Youtube/Tubedown Download/2026-04-26/PolyPaint/00.mp4', 'nb_streams': 2, 'nb_programs': 0, 'nb_stream_groups': 0, 'format_name': 'mov,mp4,m4a,3gp,3g2,mj2', 'format_long_name': 'QuickTime / MOV', 'start_time': '0.000000', 'duration': '45.603991', 'size': '12899342', 'bit_rate': '2262844', 'probe_score': 100, 'tags': {'major_brand': 'isom', 'minor_version': '512', 'compatible_brands': 'isomiso2avc1mp41', 'encoder': 'Lavf59.27.100'}}}
[DEBUG] The file info after process:result={'video_fps': 24.0, 'r_frame_rate': '24/1', 'video_codec_name': 'h264', 'audio_codec_name': 'aac', 'width': 1920, 'height': 1080, 'time': 45541, 'streams_len': 2, 'streams_audio': 1, 'video_streams': 1, 'color': 'yuv420p'}
[DEBUG] [FFMPEG-CMD]:
ffmpeg -hide_banner -nostdin -ignore_unknown -threads 0 -y -fflags +genpts -i F:/Youtube/Tubedown Download/2026-04-26/PolyPaint/00.mp4 -an -c:v copy novoice.mp4

提供的日志属于视频合成阶段的调试信息,不包含 LLM 重新断句过程。若需诊断断句速度异常,请取出软件根目录 logs/ 文件夹下涉及 LLM 调用的相关日志(通常会打印类似 LLM rephrase 或调用 AI 接口的超时/完成时间等记录),复制底部约 30 行内容以便分析。

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.

Related resource