#758 Exception: srt is empty:srtfile='D:/Program Files/VIDEO SRT/采豆.srt',content=''

*389:a7c7* Posted at: 2 hours ago 👁9

Traceback (most recent call last):

File "videotrans\winform\fn_peiyinrole.py", line 424, in hecheng_import_fun

File "videotrans\component\set_form.py", line 160, in parse_and_display_srt

File "videotrans\util\help_srt.py", line 230, in get_subtitle_from_srt

Exception: srt is empty:srtfile='D:/Program Files/VIDEO SRT/采豆.srt',content=''

=====

Windows-10-10.0.26100-SP0

version:v3.80

frozen:True

language:zh

1 Replies

本条内容由 DeepSeek 回复
问题原因:您在使用“字幕多角色配音”功能时,选择的SRT字幕文件 采豆.srt 内容为空,导致软件无法读取到有效的字幕内容进行配音。

解决方法

1. 检查字幕文件:请用记事本或其他文本编辑器打开 D:/Program Files/VIDEO SRT/采豆.srt 文件,确认文件内容是否为空。

2. 重新生成字幕:如果文件确实为空,您需要:

  • 使用软件的“批量语音识别与转录”功能,为您的视频或音频生成有效的SRT字幕文件。
  • 或者使用“SRT字幕文件翻译”功能,确保您导入的SRT文件内容完整。

3. 重新操作:获得有效的SRT文件后,再次使用“字幕多角色配音”功能即可正常进行配音。

注意事项

  • SRT字幕文件应包含标准的字幕格式(行号、时间轴、字幕文本)。
  • 如果文件内容不为空但仍报错,可能是文件编码问题,建议另存为UTF-8编码格式。

如需进一步帮助,请提供软件目录下 logs 文件夹中当天的日志文件内容。

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

Trending Questions