#5848 opening input: Invalid data found when processing input opening input file G:\1.srt. opening input files: Invalid data f

103.219* Posted at: 11 hours ago

opening input: Invalid data found when processing input opening input file G:\1.srt. opening input files: Invalid data found when processing input


=
system:Windows-10-10.0.26200-SP0
version:v4.03
frozen:True
language:zh
root_dir:E:/py/win-pyvideotrans-v4.02-0615

1 Replies

这是由于 SRT 字幕文件格式不符合标准或编码问题,导致 FFmpeg 解析失败。

解决方法:

  1. 检查 SRT 文件格式:确保文件符合标准 SRT 格式(行号、时间轴、字幕文本之间严格保留空行),且时间轴使用英文逗号分隔毫秒(如 00:00:01,000)。
  2. 重新保存为 UTF-8 编码:用记事本打开 SRT 文件,另存为时选择“UTF-8”编码,覆盖原文件。
  3. 尝试将文件移出根目录:将 SRT 文件复制到不含特殊字符的路径(如 D:\myvideo.srt)再导入。

如果仍然报错,请提供软件安装目录下的 logs/ 文件夹中最新日志文件的末尾 30 行内容,以及 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