#4704 videotrans.configure.excepts.VideoTransError: 最后一步字幕配音嵌入时出错[Errno 2] No such file or directory: '5月23日 (1)-mp4/end.ass'

166.0* Posted at: 8 hours ago

最后一步字幕配音嵌入时出错[Errno 2] No such file or directory: '5月23日 (1)-mp4/end.ass'
Traceback (most recent call last):
File "videotrans\task\trans_create.py", line 1383, in _join_video_audio_srt
File "shutil.py", line 434, in copy2
File "shutil.py", line 256, in copyfile
FileNotFoundError: [Errno 2] No such file or directory: '5月23日 (1)-mp4/end.ass'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 112, in run
File "videotrans\task\trans_create.py", line 707, in assembling
File "videotrans\task\trans_create.py", line 1385, in _join_video_audio_srt
videotrans.configure.excepts.VideoTransError: 最后一步字幕配音嵌入时出错[Errno 2] No such file or directory: '5月23日 (1)-mp4/end.ass'


=
system:Windows-10-10.0.19045-SP0
version:v4.00
frozen:True
language:zh
root_dir:D:/win-pyvideotrans-v4.00-522_20260523_161351

1 Replies

这个错误是因为你的视频文件名或所在路径包含了中文、空格、特殊符号(如“5月23日 (1)”中的中文、括号和空格),导致 ffmpeg 在合成最后一步时无法找到或创建字幕文件 end.ass

解决方法:

  1. 重命名视频文件:将视频文件名改为纯英文字母和数字,例如 test.mp4
  2. 移动视频到浅层目录:将视频放到不含中文、空格、特殊符号的简单目录下,例如 D:\videos\
  3. 重新载入处理:在软件主界面重新选择这个视频文件后再次运行。

如果问题依旧,请提供软件根目录下 logs/ 文件夹中最新日志文件的后 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

Similar issues already exist