#4172 RuntimeError: 72891e6fe0 split no voice error:opening input: No such file or directory opening input file -hwaccel. open

182.107* Posted at: 2 hours ago 👁8

72891e6fe0 split no voice error:opening input: No such file or directory opening input file -hwaccel. opening input files: No such file or directory
Traceback (most recent call last):
File "videotrans\task\_only_one.py", line 113, in run
File "videotrans\task\trans_create.py", line 736, in align
File "videotrans\util\help_misc.py", line 299, in is_novoice_mp4
RuntimeError: 72891e6fe0 split no voice error:opening input: No such file or directory opening input file -hwaccel. opening input files: No such file or directory


=
system:Windows-10-10.0.19045-SP0
version:v3.99
frozen:True
language:zh
root_dir:D:/videotrans

1 Replies

这是由于视频文件路径过长或包含特殊符号,导致 ffmpeg 无法正确识别和处理文件。

解决方案:

  1. 缩短路径和文件名:将待处理的视频文件移动到更浅的目录(例如 D:\videos),并重命名为一个简短的英文或数字名称(例如 video.mp4)。
  2. 检查特殊字符:确保文件名和路径中不包含 ?*、表情符号等特殊字符。
  3. 检查软件安装路径:确保 pyVideoTrans 软件本身也安装在路径较短且不含中文或特殊符号的目录下(例如 D:\pyVideoTrans)。

根本原因:
Windows 系统对命令行长度有严格限制。当文件路径(从盘符到文件名)过长或包含特殊符号时,软件内部调用的 ffmpeg 命令会因路径问题而失败,从而报错 No such file or directory

请查阅相关文档:

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