#4692 videotrans.configure.excepts.VideoTransError: 最后一步字幕配音嵌入时出错[Errno 2] No such file or directory: '动力、自律与度过艰难时期-mp4/shuang

113.26* Posted at: 1 day ago

最后一步字幕配音嵌入时出错[Errno 2] No such file or directory: '动力、自律与度过艰难时期-mp4/shuang.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: '动力、自律与度过艰难时期-mp4/shuang.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: '动力、自律与度过艰难时期-mp4/shuang.ass'


=
system:Windows-10-10.0.22631-SP0
version:v4.00
frozen:True
language:zh
root_dir:G:/videotrans zi mu/win-pyvideotrans-v4.00-522_20260523_161351

1 Replies

错误原因是路径包含中文和空格(如文件夹名 videotrans zi mu 和视频名 动力、自律与度过艰难时期),导致软件在最后合成阶段无法正确读取生成的 .ass 字幕文件。

解决办法:

  1. 将视频文件移动到纯英文数字路径,例如 D:\video,且文件夹名不要包含空格。
  2. 将视频文件重命名为简短英文字母,如 dili.mp4
  3. 在软件主界面中重新选择该视频,并勾选“清理已生成”,清除旧的缓存文件。
  4. 再次启动处理。

请查阅相关文档:

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