#3800 FileNotFoundError: [Errno 2] No such file or directory: 'G:/阅文短剧/配音短剧/穿越女频当纨绔,娘子竟是重生者/%5BThai%5DMiniDrama%5BDownSub.com%

91.243* Posted at: 2 hours ago 👁4

Traceback (most recent call last):
File "videotrans\component\component.py", line 104, in dropEvent
FileNotFoundError: [Errno 2] No such file or directory: 'G:/阅文短剧/配音短剧/穿越女频当纨绔,娘子竟是重生者/%5BThai%5DMiniDrama%5BDownSub.com%5D.srt'


=
system:Windows-10-10.0.22631-SP0
version:v3.97
frozen:True
language:zh
root_dir:F:/sp

1 Replies

这是由于文件路径中包含特殊字符(如 %5B%5D)导致的文件读取错误。软件在处理包含URL编码字符(如方括号 [] 被编码为 %5B%5D)或特殊符号的文件路径时,可能无法正确识别。

解决方案:

  1. 重命名文件:将出错的SRT字幕文件([Thai]MiniDrama[DownSub.com].srt)重命名,移除所有特殊符号和空格。例如,重命名为 ThaiMiniDrama.srt
  2. 简化目录路径:确保视频和字幕文件所在的目录路径简短且仅包含英文或数字,避免使用中文、空格或特殊符号。建议将文件移动到类似 D:\video 这样的浅层目录。
  3. 重新操作:完成重命名和路径简化后,再次尝试在软件中导入或处理该文件。

根本原因:
软件内部依赖命令行工具(如 ffmpeg),Windows系统对命令行长度和特殊字符处理有严格限制。路径过长或包含特殊字符(尤其是从网络下载的文件常包含 []% 等)会导致文件无法被正确找到和读取。

请查阅相关文档:

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

Similar issues already exist