#4341 FileNotFoundError: [WinError 206] 文件名或扩展名太长。: 'C:\\Users\\hasee\\Downloads\\_video_out\\2 X 上的 Filecoin:“Cardano s @IOHK

64.186* Posted at: 3 hours ago 👁9

Traceback (most recent call last):
File "pathlib.py", line 1175, in mkdir
FileNotFoundError: [WinError 206] 文件名或扩展名太长。: 'C:\Users\hasee\Downloads\_video_out\2 X 上的 Filecoin:“Cardano s @IOHK_Charles and @FilFoundation President @MartaBelcher chat about how @Cardano utilizes Filecoin s EiB-scale infrastructure how the Filecoin Onchain Cloud brings a programmable storage -mp4'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\_mult_video.py", line 31, in run
File "pathlib.py", line 1180, in mkdir
File "pathlib.py", line 1175, in mkdir
FileNotFoundError: [WinError 206] 文件名或扩展名太长。: 'C:\Users\hasee\Downloads\_video_out\2 X 上的 Filecoin:“Cardano s @IOHK_Charles and @FilFoundation President @MartaBelcher chat about how @Cardano utilizes Filecoin s EiB-scale infrastructure how the Filecoin Onchain Cloud brings a programmable storage -mp4'


=
system:Windows-10-10.0.26200-SP0
version:v3.97
frozen:True
language:zh
root_dir:C:/Program Files/Creative/win-pyvideotrans-v3.97-226

1 Replies

原因是 Windows 系统对文件路径有最大长度限制(通常为 260 个字符),你的原视频文件名太长,导致自动生成的输出目录完整路径超出了系统限制。

解决方法:

  1. 将原视频文件移动到一个浅层目录(如 D:\videos),并将视频重命名为简短英文或数字名称(例如 video1.mp4)。避免文件名中含中文、特殊符号或过长字符。
  2. 在软件主界面点击“输出到..”按钮,将输出目录设置为一个同样较浅且无特殊符号的文件夹(如 D:\output)。不建议使用默认的原始目录,因其可能与长文件名叠加。
  3. 确保软件本身安装路径也较短(如 D:\pyVideoTrans),不要放在类似 C:\Program Files\... 等深层或需管理员权限的目录中。

如果仍报错,可进一步在“高级选项”中查找是否有相关限制,但主要问题就是路径长度。

请查阅相关文档:

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